mlsanityData to 14 Oct 2026

Transformers Are Universally Consistent

arXiv 2505.24531 ↗First posted 30 May 2025cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Despite their central role in the success of foundational models and large-scale language modeling, the theoretical foundations governing the operation of Transformers remain only partially understood. Contemporary research has largely focused on their representational capacity for language comprehension and their prowess in in-context learning, frequently under idealized assumptions such as linearized attention mechanisms. Initially conceived to model sequence-to-sequence transformations, a fundamental and unresolved question is whether Transformers can robustly perform functional regression over sequences of input tokens. This question assumes heightened importance given the inherently non-Euclidean geometry underlying real-world data distributions. In this work, we establish that Transformers equipped with softmax-based nonlinear attention are uniformly consistent when tasked with executing Ordinary Least Squares (OLS) regression, provided both the inputs and outputs are embedded in hyperbolic space. We derive deterministic upper bounds on the empirical error which, in the asymptotic regime, decay at a provable rate of O(t-1/2d), where t denotes the number of input tokens and d the embedding dimensionality. Notably, our analysis subsumes the Euclidean setting as a special case, recovering analogous convergence guarantees parameterized by the intrinsic dimensionality of the data manifold. These theoretical insights are corroborated through empirical evaluations on real-world datasets involving both continuous and categorical response variables.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 38 references that are in the map. First posted on arXiv 30 May 2025.

Builds on

24 of 38 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2020Longformer: The Long-Document Transformercited by 3,413
  4. 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,863
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  7. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  9. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
  10. 2021A Survey of Transformerscited by 401
  11. 2019Axial Attention in Multidimensional Transformerscited by 358
  12. 2017The Expressive Power of Neural Networks: A View from the Widthcited by 320
12 more
  1. 2017Nearly-tight VC-dimension and pseudodimension bounds for piecewise linear neural networkscited by 311
  2. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  3. 2020Sparse Sinkhorn Attentioncited by 251
  4. 2018Molecular Transformer - A Model for Uncertainty-Calibrated Chemical Reaction Predictioncited by 229
  5. 2018Universality of Deep Convolutional Neural Networkscited by 176
  6. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 129
  7. 2019Star-Transformercited by 94
  8. 2018ResNet with one-neuron hidden layers is a Universal Approximatorcited by 79
  9. 2019Universal approximations of permutation invariant/equivariant functions by deep neural networkscited by 29
  10. 2021Universal Consistency of Deep Convolutional Neural Networkscited by 16
  11. 2019Improving Multi-Head Attention with Capsule Networkscited by 6
  12. 2024On the Universal Statistical Consistency of Expansive Hyperbolic Deep Convolutional Neural Networkscited by 2

Built on by

Not cited yet.