arXiv Statistics ML

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.

arXiv Machine Learning
Nov 2

Spectral Condition for $\mu$P under Width-Depth Scaling

The paper introduces a unified spectral framework for maximal update parameterization (μP) that applies to models scaled in both width and depth. It shows that for deep residual networks, the scaling of weight norms and updates depends on the number of transformations per residual block (k), revealing a key transition from k = 1 to k ≥ 2. Experiments on GPT‑2 style language models confirm that the k ≥ 2 (CompleteP‑style) parameterization yields stable feature learning and robust hyperparameter transfer, whereas k = 1 or standard parameterizations often fail.

By Chenyu Zheng, Rongzhen Wang, Xinyu Zhang, Chongxuan Li
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 Machine Learning
Jun 2

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.

By Andy Yang, Pascal Bergstr\"a{\ss}er, Georg Zetzsche, David Chiang, Anthony W. Lin
arXiv Machine Learning
Sep 25

Pointwise Generalization in Deep Neural Networks

The paper introduces a pointwise generalization theory for fully connected deep neural networks, using a pointwise Riemannian Dimension derived from eigenvalues of learned feature representations across layers. This framework provides hypothesis-dependent, representation-aware generalization bounds that are significantly tighter than traditional size- or norm-based approaches, both theoretically and experimentally. The authors analytically identify structural properties that explain deep networks’ tractability and empirically show that the pointwise Riemannian Dimension captures feature compression, over‑parameterization effects, and optimizer bias.

By Shaojie Li, Yunbei Xu
arXiv Machine Learning
6d ago

Exact Sequence Interpolation with Transformers

The paper proves that transformer models can exactly interpolate any finite dataset of input sequences in ℝ^d (d ≥ 2) to output sequences of equal or smaller length. It constructs a transformer with O(∑m^j) blocks and O(d∑m^j) parameters, using alternating feed‑forward and self‑attention layers, low‑rank attention matrices, and a clustering effect to keep complexity independent of input length. The results are first shown for hardmax self‑attention, then extended to softmax, and the authors provide convergence guarantees to a global minimizer under regularized training, thereby explaining transformers’ strong performance on exact sequence‑to‑sequence interpolation tasks.

By Albert Alcalde, Giovanni Fantuzzi, Enrique Zuazua
arXiv Machine Learning
Oct 22

Generalization and Scaling Laws for Mixture-of-Experts Transformers

The paper presents a theoretical framework for understanding generalization and scaling in Mixture-of-Experts (MoE) Transformers. It derives a sup‑norm covering‑number bound that separates active per‑input capacity from routing combinatorics, leading to a generalization bound under a manifold data model. Additionally, a constructive approximation theorem shows how error can be reduced by scaling active capacity or increasing the number of experts, from which neural scaling laws and compute‑optimal tradeoffs are derived.

By Mansour Zoubeirou a Mayaki