Length Generalization Bounds for Transformers
Andy Yang, Pascal Bergsträßer, Georg Zetzsche, David Chiang, Anthony Lin
摘要
Length generalization is a key property of a learning algorithm that enables it to make correct predictions on inputs of any length, given finite training data. To provide such a guarantee, one needs to be able to compute a length generalization bound, beyond which the model is guaranteed to generalize. This paper concerns the open problem of the computability of such generalization bounds for -, a class of languages which is closely linked to transformers. A positive partial result was recently shown by Chen et al. for - with only one layer and, under some restrictions, also with two layers. We provide complete answers to the above open problem. Our main result is the non-existence of computable length generalization bounds for - (already with two layers) and hence for transformers. To complement this, we provide a computable bound for the positive fragment of -, which we show equivalent to fixed-precision transformers. For both positive - and fixed-precision transformers, we show that the length complexity is exponential, and prove optimality of the bounds.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- What Algorithms can Transformers Learn? A Study in Length Generalization 引用了 Thinking Like Transformers
- What Algorithms can Transformers Learn? A Study in Length Generalization 引用了 Exploring Length Generalization in Large Language Models
- The Counting Power of Transformers 引用了 What Algorithms can Transformers Learn? A Study in Length Generalization
- The Counting Power of Transformers 引用了 A Logic for Expressing Log-Precision Transformers
- The Counting Power of Transformers 引用了 Transformers are Inherently Succinct
- Transformers are Inherently Succinct 引用了 The Counting Power of Transformers
- The Counting Power of Transformers 引用了 Exploring Length Generalization in Large Language Models
- Transformers are Inherently Succinct 引用了 What Algorithms can Transformers Learn? A Study in Length Generalization
引用它的顶会 Paper2
它引用的 Paper18
- An empirical analysis of compute-optimal large language model trainingJordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya 等NeurIPS 2022 · 566 次引用
- Exploring Length Generalization in Large Language ModelsCem Anil, Yuhuai Wu, Anders Andreassen, Aitor Lewkowycz 等NeurIPS 2022 · 267 次引用
- What Algorithms can Transformers Learn? A Study in Length GeneralizationHattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin 等ICLR 2024 · 189 次引用
- Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 次引用
- A Logic for Expressing Log-Precision TransformersWilliam Merrill, Ashish SabharwalNeurIPS 2023 · 87 次引用
相关 Paper
- Non-Asymptotic Length GeneralizationThomas Chen, Tengyu Ma, Zhiyuan LiICML 2025
- On the Ability of Transformers to Verify PlansYash Sarrof, Yupei Du, Katharina Stein, Alexander Koller 等ICML 2026 · 1 次引用
- Knee-Deep in C-RASP: A Transformer Depth HierarchyAndy Yang, Michaël Cadilhac, David ChiangNeurIPS 2025 · 15 次引用
- Looped Transformers for Length GeneralizationYing Fan, Yilun Du, Kannan Ramchandran, Kangwook LeeICLR 2025
- Softmax Transformers are Turing-CompleteHongjian Jiang, Michael Hahn, Georg Zetzsche, Anthony W. LinICLR 2026 · 12 次引用
