arXiv Machine Learning

Length Generalization Bounds for Transformers

arXiv:2603. 02238v2 Announce Type: replace Abstract: 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.

arXiv Machine Learning
Sep 10

Length Generalization for Transformers via Compression

arXiv:2609.08851v1 Announce Type: new Abstract: Recent advancements in transformer length generalization theory enable us to reliably predict when a transformer can learn to solve a task. In particul...

By Georg Zetzsche, Hongjian Jiang, Andy Yang, Pascal Bergstr\"a{\ss}er, Marco S\"alzer, David Chiang, Anthony W. Lin
arXiv AI
Oct 27

Quantitative Generalization Bounds for Multi-Layer Transformers: A Few Long Strings can Beat Many Short Ones

The paper presents quantitative generalization bounds for fixed‑precision transformer models, addressing both in‑distribution statistical generalization and length generalization. It derives guarantees based on model parameters, quantization space, and alphabet size, and shows how training length and sample size trade off, with longer training being exponentially more efficient. Experiments confirm the theoretical predictions.

By Marius Henry, Michael Rizvi-Martel, Michael Hahn
arXiv AI
Aug 14

Algebraic Decomposition Theory for Transformer Length Generalization

arXiv:2608. 13433v1 Announce Type: cross Abstract: Transformer-based language models are known to sometimes generalize to sequences longer than seen during training, but we lack a precise characterization of which tasks admit length generalization.

By Andy Yang, Blerta Veseli, Corentin Barloy, Micha\"el Cadilhac, Andreas Krebs, Charles Paperman, Howard Straubing, Michael Hahn
arXiv AI
Jul 7

On the Ability of Transformers to Verify Plans

arXiv:2603. 19954v2 Announce Type: replace Abstract: Transformers have shown inconsistent success in AI planning tasks, and theoretical understanding of when generalization should be expected has been limited.

By Yash Sarrof, Yupei Du, Katharina Stein, Alexander Koller, Sylvie Thi\'ebaux, Michael Hahn
arXiv Statistics ML
Nov 9

Spectrum-Adaptive Generalization Bounds for Trained Deep Transformers

The paper presents spectrum‑adaptive post‑hoc generalization bounds for multi‑layer Transformers, expressed in terms of layerwise Schatten quantities of the query‑key, value, and feedforward weight matrices. Unlike previous norm‑based bounds that impose fixed constraints and can grow exponentially with depth, these bounds allow the Schatten indices to be chosen after training, enabling an adaptive trade‑off between spectral complexity and dimension‑ or depth‑dependent factors based on the learned singular‑value profiles. Empirical comparisons with BERT‑adapted proxies show that the proposed bounds grow more slowly with depth and hidden dimension than corresponding norm‑based proxies, offering a new complexity‑based perspective on how trained Transformers generalize.

By Mana Sakai, Masaaki Imaizumi