Attention Mechanism, Max-Affine Partition, and Universal Approximation
Not on the map. Why?
Abstract (arXiv)
We establish the universal approximation capability of single-layer, single-head self- and cross-attention mechanisms with minimal attached structures. Our key insight is to interpret single-head attention as an input domain-partition mechanism that assigns distinct values to subregions. This allows us to engineer the attention weights such that this assignment imitates the target function. Building on this, we prove that a single self-attention layer, preceded by sum-of-linear transformations, is capable of approximating any continuous function on a compact domain under the L_∞-norm. Furthermore, we extend this construction to approximate any Lebesgue integrable function under Lp-norm for 1≤ p <∞. Lastly, we also extend our techniques and show that, for the first time, single-head cross-attention achieves the same universal approximation guarantees.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Apr 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Countingcited by 17
- 2025Learning to Rank Chain-of-Thought: Using a Small Modelcited by 5
- 2025A unified framework for establishing the universal approximation of transformer-type architecturescited by 2
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0
- 2026Expressivity In Multimodal Contrastive Learningcited by 0
- 2026Deep operator learning for efficient sampling from invariant measures of stochastic differential equationscited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwardscited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Deep operator learning for efficient sampling from invariant measures of stochastic differential equations10 Sep 2026
- 2026Expressivity In Multimodal Contrastive Learning17 Aug 2026
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspective7 Oct 2025
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Counting6 Oct 2025
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025
- 2025Learning to Rank Chain-of-Thought: Using a Small Model21 May 2025