arXiv Machine Learning

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.

arXiv Machine Learning
Oct 3

Universal interpolation for deep residual self-attention networks

The paper proves that deep residual self‑attention networks can universally interpolate between any two collections of sequences using only two fixed single‑head attention blocks with Gaussian‑initialized projections. The interpolation is achieved by varying the order, signs, and durations of these blocks, independent of the specific input and output sequences. The result holds for both continuous and finite depth, and the authors also extend the analysis to causal‑masked settings.

By Sibylle Marcotte, Joan Bruna
arXiv Machine Learning
Sep 25

Transformers as Cross-Task Learners: Shared Structure Drives Sample Efficiency in In-Context Learning

Transformers can learn broad families of tasks during pretraining and adapt to unseen tasks from a short prompt, but a rigorous understanding of this capability is limited. This paper studies how shared cross‑task structure influences the sample complexity of in‑context learning (ICL) by characterizing task‑space complexity through covering numbers, yielding a set of anchor functions that localize unseen tasks and predict responses. The authors construct a Transformer with Softmax attention to approximate this procedure and derive an error bound that separates the effects of pretraining tasks and prompt length, showing that once enough tasks are available the dependence on prompt length becomes dimension‑free.

By Zhongjie Shi, Rongjie Lai, Alexander Cloninger, Wenjing Liao
arXiv Statistics ML
Oct 1

Grokking through the Lens of Minimum-Norm Interpolation

The paper develops a statistical theory for minimum‑norm interpolation in high‑dimensional regression, showing how regularization geometry and signal sparsity affect generalization. It identifies regimes where sparsity‑promoting regularizers yield exact interpolation that is far more accurate than approximate fitting, and proves a zero–one generalization law for strongly overparameterized noiseless problems. The authors also characterize training and generalization errors along ρ‑regularization paths when feature dimension and sample size are proportional, demonstrating that generalization improves with more sparsity‑promoting norms and sparser targets, and that small changes in regularization strength can cause large shifts in generalization. whyItMatters":"The work provides a quantitative understanding of delayed generalization (grokking) and reveals a statistical instability in minimum‑norm interpolation, offering insights that could guide the design of regularizers for better generalization in overparameterized models."

By Gil Kur, Ileana Rugina, Cl\'ementine Carla Juliette Domin\'e, Marco Mondelli
arXiv Machine Learning
Sep 2

Performance-Efficiency Tradeoffs in Transformers: An Approximation Theory Perspective

The paper examines how to allocate attention heads and head dimensions across Transformer layers to balance expressivity and efficiency. It provides a mathematical analysis of early layers’ role in information extraction and characterizes the trade‑off between head count and dimension under a fixed parameter budget. The authors prove a saturation effect of softmax activations, showing that increasing head dimensions yields diminishing returns, especially for long sequences, and propose strategies for efficient parameter allocation across layers.

By Ruoxi Yu, Haotian Jiang, Jingpu Cheng, Penghao Yu, Qianxiao Li, Zhong 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 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