Transformers Are Universally Consistent
Sagar Ghosh, Kushal Bose, and Swagatam Das

TL;DR
This paper proves that Transformers with softmax attention are statistically consistent for functional regression tasks in hyperbolic space, providing convergence rates and empirical validation on real-world data.
Contribution
It establishes the first theoretical guarantee of Transformers performing consistent regression in hyperbolic space, extending understanding beyond idealized models.
Findings
Transformers with softmax attention are uniformly consistent for OLS regression in hyperbolic space.
Empirical results support the theoretical convergence rates on real-world datasets.
The analysis generalizes Euclidean results to non-Euclidean geometries, including hyperbolic space.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Memory and Neural Computing
MethodsSoftmax · Attention Is All You Need
