Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspective

Yuling Jiao, Yanming Lai, Yang Wang, Bokai YanarXiv 2025 · DOI

Introduction

In numerical analysis and machine learning, the Curse of Dimensionality (CoD) describes the phenomenon where the complexity required to approximate a function grows exponentially with the number of input dimensions ($d$). For a target accuracy $\epsilon$, the parameter requirement typically scales as $O(\epsilon^{-d})$. While empirical evidence suggests Transformers handle high-dimensional data well, theoretical proofs have often relied on complex architectures or failed to circumvent the CoD. This study provides a constructive proof that a minimal Transformer architecture—consisting of one self-attention layer and a few feedforward layers—can overcome this curse.

Methodology

The authors bridge Transformer architecture with classical approximation theory using two primary mathematical tools:

  1. Kolmogorov-Arnold Representation Theorem (KST): This theorem posits that any multivariate continuous function can be represented as a superposition of univariate functions. The authors employ a modern, smoothness-preserving variant of KST to ensure the resulting approximation remains efficient.
  2. The Translation Technique: Standard Transformers apply the same feedforward network (FFN) to all tokens in a sequence. To allow for token-specific transformations, the authors developed a "translation technique" that shifts token values. This allows a single shared FFN to effectively perform distinct operations on different tokens by targeting different "neighborhoods" of its input space.

Key Insights

  • Attention as a Summation Engine: In this theoretical framework, the self-attention mechanism serves as the summation operator required by the KST to combine the outputs of univariate functions.
  • Minimal Architecture: A single-head, single-layer attention mechanism using standard softmax activation is theoretically sufficient to break the CoD. This challenges the notion that "deep" architectures are strictly necessary for high-dimensional approximation.
  • The Power of Activations: The choice of activation function in the feedforward layers significantly impacts efficiency. Using ReLU and floor functions allows for a network depth that scales logarithmically with precision ($O(\log \frac{1}{\epsilon})$). With specific non-polynomial activations, the required width can even be reduced to a constant, regardless of the target accuracy.

Results and Comparative Analysis

The study establishes concrete bounds for approximating Hölder continuous functions. Crucially, the number of parameters required scales polynomially with dimension $d$, rather than exponentially.

Comparison of the proposed theoretical results (Theorems 1 and 2) against prior literature. This work is unique in simultaneously employing softmax attention, achieving efficient approximation rates, and overcoming the curse of dimensionality.

As shown in the comparison table above, this work fills a critical gap in the literature. While previous studies either failed to overcome the CoD or relied on non-standard attention mechanisms, this research proves that standard Transformers (using softmax) are efficient universal approximators.

Conclusion and Limitations

This research provides a rigorous theoretical foundation for the success of Transformers in high-dimensional regimes. By proving that Transformers are efficient universal approximators, the authors move beyond the "contextual mapping" paradigm toward a more direct geometric understanding of Transformer capabilities.

However, the authors note that this is an existence proof; it does not guarantee that standard training algorithms like Stochastic Gradient Descent (SGD) will find these optimal configurations. Additionally, some results rely on non-standard activation functions like the "floor" function, which may present optimization challenges in practice. Future work will explore extending these results to other function spaces and real-world datasets.

Summary updated

BibTeX
@misc{jiao2025transformers,
  author = {Yuling Jiao and Yanming Lai and Yang Wang and Bokai Yan},
  title = {{Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspective}},
  year = {2025},
  eprint = {2504.13558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.13558},
}
Figure