TL;DR
This paper establishes the first explicit approximation bounds for standard, fixed-depth Transformer networks under the strict $L^\infty$-norm, matching the best-known parameter complexity of feed-forward and recurrent neural networks. It also provides theoretical convergence rates for Transformer-based nonparametric regression on sequential data with temporal dependencies ($\beta$-mixing), utilizing a novel proof strategy inspired by the Kolmogorov-Arnold representation theorem.
What Problem Does This Paper Address?
Despite the monumental success of Transformers in modern AI, their theoretical foundations remain incomplete. Specifically, two major gaps persist:
- Expressive Capacity under Uniform Metrics: Most existing expressivity studies for Transformers either rely on modified attention mechanisms (like replacing softmax with hardmax or polynomials) or require the network's depth to grow as the target error shrinks. Furthermore, few have successfully derived explicit approximation rates under the strict $L^\infty$-norm (uniform approximation) using standard softmax attention.
- Regression with Dependent Data: Traditional statistical analyses of neural network regression assume independent and identically distributed (i.i.d.) data. However, real-world sequential tasks (like time-series forecasting or language modeling) inherently exhibit temporal dependencies, where an observation depends heavily on past states.
This paper bridges these gaps by analyzing standard softmax Transformers on general smooth function spaces (Hölder and Sobolev spaces) and providing statistical guarantees for temporally dependent sequential data.
Methods
The authors employ several innovative mathematical frameworks to derive their bounds:
- Horizontal Shift Technique: To prevent network depth from blowing up under the $L^\infty$-norm, the authors adapt a "horizontal shift" method originally developed for ReLU feed-forward networks (FNNs). This allows a fixed-depth standard Transformer to achieve optimal approximation rates.
- Kolmogorov-Arnold Representation Theorem: For "generalized" Transformers, the authors introduce a novel proof strategy. They demonstrate that if self-attention layers simply compute column-wise averages, the network can exactly decompose a complex multi-dimensional function into structured summations of univariate inner and outer functions.
- Sliding Window Empirical Risk Minimization (ERM): To handle dependent data, the authors analyze a sliding window training approach under $\beta$-mixing conditions (where temporal dependence decays over time), bounding the excess risk without imposing artificial constraints on weight magnitudes.
Datasets
Not discussed in the paper. This is a purely theoretical paper focused on mathematical proofs of approximation and convergence rates; no empirical evaluations or datasets were used.
Key Insights and Ideas
- Fixed Depth Suffices: Contrary to prior literature suggesting that Transformer depth must scale logarithmically ($\mathcal{O}(\log \frac{1}{\varepsilon})$) to minimize error, this paper proves that a fixed-depth ($\mathcal{O}(1)$) standard Transformer is theoretically sufficient to achieve optimal approximation rates for Hölder and Sobolev functions.
- The Power of Column Averaging: Through the lens of the Kolmogorov-Arnold theorem, the complex nonlinear softmax mechanism doesn't always need to perform intricate token routing. Its ability to perform simple column-wise summation/averaging is mathematically sufficient to break the curse of dimensionality in sequence-to-sequence mappings.
- Unconstrained Weights: The regression bounds derived do not require artificial constraints on the magnitudes of the network weights, making the theory more aligned with practical training regimes where weights can grow freely.
Key Results
- Optimal Parameter Scaling: To achieve an approximation error $\varepsilon$ for a sequence-to-sequence mapping, the total number of parameters scales as $\mathcal{O}(\varepsilon^{-d_x n / \gamma})$ for Hölder functions with smoothness $\gamma$. This matches the best-known upper bounds previously established for fixed-depth FNNs and RNNs.
- Regression Convergence Rates: For a sample size $m$, the excess risk scales at a rate of $\widetilde{\mathcal{O}}(m^{-\frac{\gamma}{\gamma + d_x n}})$ for geometrically $\beta$-mixing and i.i.d. data, and $\widetilde{\mathcal{O}}(m^{-\frac{r\gamma}{(r+2)\gamma + (r+1)d_x n}})$ for algebraically $\beta$-mixing data (where $r$ controls dependency strength).
A comprehensive breakdown of how these rates compare to prior expressivity literature is illustrated in the paper's summary table:
Limitations and Future Work
- Suboptimal Regression Rates: The derived convergence rates for regression are technically suboptimal compared to the classical minimax optimal rate ($\mathcal{O}(m^{-2\gamma/(2\gamma+d)})$). The authors attribute this to a loose upper bound on the VC-dimension of Transformers caused by the exponential operations in softmax, which scale quadratically rather than linearly. Closing this gap remains an open problem.
- Smoothness Adaptivity: The current proofs assume a smoothness index $\gamma \in (0,1]$. Whether these methods can adapt to higher-order regularity or anisotropic smoothness is still unclear.
- Curse of Dimensionality: The parameter bounds still suffer from the curse of dimensionality ($d_x n$ sits in the exponent). Exploring structural assumptions—such as assuming the regression function lies on a low-dimensional manifold—to mitigate this is highlighted as a promising direction for future research.
Summary updated