Universal Approximation with Softmax Attention
Not on the map. Why?
Abstract (arXiv)
We prove that with linear transformations, both (i) two-layer self-attention and (ii) one-layer self-attention followed by a softmax function are universal approximators for continuous sequence-to-sequence functions on compact domains. Our main technique is a new interpolation-based method for analyzing attention's internal mechanism. This leads to our key insight: self-attention is able to approximate a generalized version of ReLU to arbitrary precision, and hence subsumes many known universal approximators. Building on these, we show that two-layer multi-head attention alone suffices as a sequence-to-sequence universal approximator. In contrast, prior works rely on feed-forward networks to establish universal approximation in Transformers. Furthermore, we extend our techniques to show that, (softmax-)attention-only layers are capable of approximating various statistical models in-context. We believe these techniques hold independent interest.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Apr 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025A unified framework for establishing the universal approximation of transformer-type architecturescited by 2
- 2026Accelerating Benchmarking of Functional Connectivity Modeling via Structure-aware Core-set Selectioncited by 1
- 2025Dynamic Relational Priming Improves Transformer in Multivariate Time Seriescited by 0
- 2025On the Universality of Transformer Architectures; How Much Attention Is Enough?cited by 0
- 2026Transformer Approximations from ReLUscited by 0
- 2026Universal interpolation for deep residual self-attention networkscited by 0
- 2026Universal interpolation for deep residual self-attention networks1 Oct 2026
- 2026Transformer Approximations from ReLUs27 Apr 2026
- 2026Accelerating Benchmarking of Functional Connectivity Modeling via Structure-aware Core-set Selection5 Feb 2026
- 2025On the Universality of Transformer Architectures; How Much Attention Is Enough?20 Dec 2025
- 2025Dynamic Relational Priming Improves Transformer in Multivariate Time Series15 Sep 2025
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025