跳到正文
arXiv cs.AI· Anil Kamber, Rahul Parhi·· 3 小时前AI 评分39

大学习率会损害序列模型的长度泛化能力

Large Learning Rates Impair Length Generalization

AI 导读

一项 arXiv 研究通过单层线性循环神经网络实验发现,足够大的学习率会引发 edge-of-stability 动力学,收敛到的全局最优解在长度泛化上差于较小学习率下的结果;在进入该机制的运行中,学习率越大,长度泛化越差,与“大学习率改善泛化”的常见观点相反。

正文 · 原文

View PDF HTML (experimental)

Abstract:Length generalization is the ability of sequence models to effectively process sequences longer than those seen during training. While the quadratic cost of attention prohibits transformers from processing arbitrarily long sequences, their most promising subquadratic alternatives, such as linear recurrent models, often fail beyond the training horizon. Despite its significance, our general understanding of length generalization remains limited. In this paper, we investigate how the learning rate determines which global minimum gradient descent converges to when these minima differ in their ability to generalize to arbitrarily long sequences. To this end, we study a single-layer linear recurrent neural network whose hidden dimension is large enough to realize any sequence of Markov parameters over a fixed training horizon. Our experiments show that sufficiently large learning rates induce edge-of-stability dynamics, and the resulting global minima exhibit worse length generalization than those reached at smaller learning rates, for which the dynamics remain outside this regime. Among runs that enter the edge-of-stability regime, larger learning rates further degrade length generalization, in contrast to the common view that large learning rates improve generalization. We observe that, among these runs, larger learning rates favor global minima whose recurrent weight matrices have a larger spectral radius restricted to the controllable and observable modes. To understand this phenomenon, we derive a closed-form expression for the maximum Hessian eigenvalue of the training loss at any global minimum.
Comments: 39 pages, 4 figures
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.35584 [cs.LG]
  (or arXiv:2611.35584v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.35584

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Anıl Kamber [view email]
[v1] Thu, 26 Nov 2026 05:43:30 UTC (2,267 KB)

来源:arXiv cs.AI · arxiv.org