paper-with-me

Papers

Quantitative Bounds for Length Generalization in Transformers

2025-10-30 · Zachary Izzo, Eshaan Nichani, Jason D. Lee arxiv

We study the problem of length generalization (LG) in transformers: the ability of a model trained on shorter sequences to maintain performance when evaluated on much longer, previously unseen inputs. Prior work by Huang et al. (2025) established that transformers eventually achieve length generalization once the training sequence length exceeds some finite threshold, but left open the question of how large it must be. In this work, we provide the first quantitative bounds on the required training length for length generalization to occur. Motivated by previous empirical and theoretical work, we analyze LG in several distinct problem settings: $\ell_\infty$ error control vs. average error control over an input distribution, infinite-precision softmax attention vs. finite-precision attention (which reduces to an argmax) in the transformer, and one- vs. two-layer transformers. In all scenarios, we prove that LG occurs when the internal behavior of the transformer on longer sequences can be "simulated" by its behavior on shorter sequences seen during training. Our bounds give qualitative estimates for the length of training data required for a transformer to generalize, and we verify these insights empirically. These results sharpen our theoretical understanding of the mechanisms underlying extrapolation in transformers, and formalize the intuition that richer training data is required for generalization on more complex tasks.

📄 PDF Abstract BibTeX arXiv:2510.27015

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Length Generalization Bounds for Transformers

2026-02-13 · Andy Yang, Pascal Bergsträßer, Georg Zetzsche, David Chiang 외 arxiv

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 comput…

On Rank-Dependent Generalisation Error Bounds for Transformers

2024-10-15 · Lan V. Truong

In this paper, we introduce various covering number bounds for linear function classes, each subject to different constraints on input and matrix norms. These bounds are contingent on the rank of each class of matrices. …

Generalization Bounds

Sequence Length Independent Norm-Based Generalization Bounds for Transformers

2023-10-19 · Jacob Trauger, Ambuj Tewari

This paper provides norm-based generalization bounds for the Transformer architecture that do not depend on the input sequence length. We employ a covering number based approach to prove our bounds. We use three novel co…

Generalization Bounds

A Sharper Picture of Generalization in Transformers

2026-05-20 · Paul Lintilhac, Sair Shaikh arxiv

We study transformers' generalization behavior on boolean domains from the perspective of the Fourier spectra of their target functions. In contrast to prior work (Edelman et al., 2022; Trauger & Tosh, 2024), which deriv…

Towards Understanding Inductive Bias in Transformers: A View From Infinity

2024-02-07 · Itay Lavie, Guy Gur-Ari, Zohar Ringel

We study inductive bias in Transformers in the infinitely over-parameterized Gaussian process limit and argue transformers tend to be biased towards more permutation symmetric functions in sequence space. We show that th…

Inductive Bias