VC Dimension and Expressivity of Real-Valued Transformers

šŸ“… 2026-09-25
šŸ“ˆ Citations: 0
✨ Influential: 0
šŸ“„ PDF
šŸ¤– AI Summary
This study investigates the theoretical expressivity and generalization bounds of assumption-free, real-valued Transformers. Overcoming the limitations of prior simplified models, it leverages real algebraic geometry to conduct VC dimension analysis and constructive model design, deriving tight upper and lower complexity bounds. The research demonstrates that the VC dimension of real-valued Transformers is O(n⁓), revealing their expressive limits regarding symmetric functions as well as the constraints imposed by finite numerical precision. This work establishes the first rigorous generalization theoretical framework for general real-valued Transformers, providing a precise quantitative characterization of their expressive capacity.
šŸ“ Abstract
Whereas previous results on abilities and limitations of transformers have restricted the definition of transformers in various ways, here we study softmax-attention, multi-layer transformers operating on real values, with very few additional assumptions. Applying results from real geometry, we obtain upper bounds on the VC dimension and split VC dimension of such transformers ($O(n^4)$ and $O(n^6)$, respectively, where $n$ is the input length). Conversely, we also construct specific transformers witnessing lower bounds on these quantities ($\Omega(n)$ in each case). These results have some notable consequences. For example, within the class of symmetric (permutation-invariant) functions, we show that transformers can uniformly express all functions over an alphabet of one symbol and non-uniformly express all functions over an alphabet of two symbols, but cannot (even non-uniformly) express some functions over an alphabet of six symbols. We also prove limitations on how many bits of a real number a transformer can access.
Problem

Research questions and friction points this paper is trying to address.

VC dimension
expressivity
real-valued transformers
softmax attention
symmetric functions
Innovation

Methods, ideas, or system contributions that make the work stand out.

VC Dimension
Expressivity
Real-Valued Transformers
Softmax Attention
Real Geometry
šŸ”Ž Similar Papers
No similar papers found.
šŸ’¼ Related Jobs
No related jobs found.
G
Gavin Dooley
University of Notre Dame
Andy Yang
Andy Yang
University of Notre Dame
Y
Yijia Jessica Zhu
University of Notre Dame
David Chiang
David Chiang
Associate Professor, University of Notre Dame
Natural Language ProcessingMachine Translation
P
Peter Cholak
University of Notre Dame
Anand Pillay
Anand Pillay
University of Notre Dame