arXiv AI

Transformer Architectures as Complete Bayes Processes: A Formal Proof in the Measure-Theoretic Kernel Framework

arXiv:2606. 30440v1 Announce Type: cross Abstract: We present a complete formal proof that transformer architectures, when their internal update mechanisms satisfy a Bayes joint-distribution condition, implement exact Bayesian posterior inference.

arXiv Statistics ML
Sep 28

On the Expressive Power of Transformers for Contextual Relations

The paper investigates the theoretical expressive power of Transformers in modeling contextual relations. By framing a text as a distribution of representations and attention as a probabilistic relation, it connects attention normalization to optimal transport: softmax yields conditional relations, while Sinkhorn yields joint relations with fixed marginals. The authors prove universal approximation results, showing that Transformers with Sinkhorn normalization can represent any joint probability relation, whereas standard softmax Transformers can represent any conditional probability relation.

By Demi\'an Fraiman
arXiv Machine Learning
Oct 7

Stability of Measure-to-Measure Transformers on Sub-Gaussian Data

This paper provides a mathematical analysis of measure-to-measure transformers, showing that they map sub‑Gaussian inputs to sub‑Gaussian outputs and are Hölder continuous with respect to the 1‑Wasserstein distance on suitable spaces. It establishes error‑propagation estimates for transformers applied to empirical approximations of sub‑Gaussian data and investigates a mean‑field analogue of cross‑attention, revealing distinct Hölder regularity and sample‑complexity for its two inputs. The results culminate in approximation guarantees for measure‑to‑measure transformers, offering a rigorous stability and finite‑sample theory for transformers on sub‑Gaussian data.

By Frank Cole, Nicholas H. Nelsen, Takashi Furuya
arXiv Machine Learning
Jul 7

Induction Heads Interpolate N-Grams

arXiv:2607. 02800v1 Announce Type: new Abstract: Induction heads are attention circuits believed to underlie in-context learning in transformers, yet a precise characterization of the estimators they implement remains elusive.

By Francesco D'Angelo, Oguz Kaan Yuksel, Swathi Shree Narashiman, Nicolas Flammarion
arXiv AI
Oct 31

Emergence of the transformer architecture as the score of entropic laws of random measures

The paper demonstrates that the transformer architecture naturally arises as the score of last‑token laws in a statistical model of language where sentences are treated as empirical measures of tokens. By applying the maximum‑entropy principle to a prior that assumes no inherent sentence structure, the authors derive a statistic capturing token interactions via Luce’s choice axiom, leading to the softmax choice rule and attention mechanisms. The resulting framework explains key transformer components—query‑key and value matrices as Lagrange multipliers, causal masking, multi‑head attention, and residual blocks—as consequences of entropic optimization.

By Giacomo Greco
arXiv Machine Learning
4d ago

When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers

The paper investigates when stacking multiple attention‑feedforward layers in transformers benefits in‑context learning. It develops a theory of distributed inference for generalized linear attention transformers, showing that deeper models can progressively refine latent context variables through internal representations called function vectors. Experiments on linear regression tasks confirm that one‑layer transformers are optimal for Gaussian priors, while multi‑layer transformers outperform them for non‑Gaussian, tree‑like priors, and causal key‑patching demonstrates that intermediate layers mediate adaptive information routing.

By Ravin Raj, Gautam Reddy
arXiv Machine Learning
Jun 11

Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking

arXiv:2602. 10743v2 Announce Type: replace Abstract: State-space language models such as Mamba and gated linear attention (GLA) offer linear-complexity, parallelisable alternatives to transformers, but their linear state updates limit expressivity and robust state tracking.

By Vaisakh Shaj, Cameron Barker, Aidan Scannell, Andras Szecsenyi, Elliot J. Crowley, Amos Storkey