A Sharper Picture of Generalization in Transformers
Not on the map. Why?
Abstract (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 derived generalization bounds from Rademacher complexity, we investigate the feasibility of obtaining generalization bounds via PAC-Bayes theory. We show that sparse spectra concentrated on low-degree components enable low-sharpness constructions with good generalization properties. Our idea is to show the existence of flat minima implementing any boolean function of sparsity no greater than the context length, and then apply a PAC-Bayes bound to an idealized low-sharpness learner, resulting in a non-vacuous generalization bound. We use this to give a formal account of why chain-of-thought improves generalization for high-degree target functions, and show that the complexity parameters in our bound can be efficiently estimated via property testing. We evaluate predictions empirically and conduct a mechanistic interpretability study to support the realism of our theoretical construction in real transformers.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 27 references that are in the map. First posted on arXiv 20 May 2026.
Builds on
5 of 27 references.
References · 5
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2017Exploring Generalization in Deep Learningcited by 600
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Universal Transformers for Circuit Computations: Perfect Length Generalization in Tiny Transformers
- 2022Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers
- 2025Ehrenfeucht-Haussler Rank and Chain of Thought
- 2025A Theoretical Framework for OOD Robustness in Transformers using Gevrey Classes
- 2026Tight Sample Complexity of Transformers
- 2025Exact Expressive Power of Transformers with Padding
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers
- 2026Generalization Bounds on Optimal Control for Transformer Training and Wasserstein Distributional Robustness