Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity
Not on the map. Why?
Abstract (arXiv)
This paper investigates the learning theory of Transformer networks for regression tasks on the compact Euclidean domain [0,1]d and d-dimensional compact Riemannian manifolds. We propose a novel constructive approximation framework for Transformers that builds local approximations of the target function and aggregates them into a global approximation via softmax partition of unity. This approach leverages the attention mechanism to achieve spatial localization through affine transformations of the input. The softmax activation plays a crucial role in aggregating local approximations to a global output. From an approximation perspective, we prove that a dense Transformer equipped with only two encoder blocks and standard single-hidden-layer point-wise feed-forward networks can achieve a uniform varepsilon-approximation error for α-H"older continuous functions with α ∈ (0,1] using O(varepsilon-d/α) total parameters. Building upon this approximation guarantee, we establish a near minimax-optimal generalization error bound of order Obig(n^-frac2α2α+d log nbig) for the empirical risk minimizer, where n is the training data size. The Transformer architecture studied in this paper is dense, shallow and wide, and employs softmax activation and sinusoidal positional encodings, closely reflecting practical implementations.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 9 May 2026.
Builds on
32 of 51 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2013Speech Recognition with Deep Recurrent Neural Networkscited by 669
- 2016Error bounds for approximations with deep ReLU networkscited by 574
- 2017Nonparametric regression using deep neural networks with ReLU activation functioncited by 433
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
20 more
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2018Optimal approximation of continuous functions by very deep ReLU networkscited by 166
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 102
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 83
- 2019Nonparametric Regression on Low-Dimensional Manifolds using Deep ReLU Networks : Function Approximation and Statistical Recoverycited by 73
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 47
- 2021Besov Function Approximation and Binary Classification on Low-Dimensional Manifolds Using Convolutional Residual Networkscited by 32
- 2023Approximation and Estimation Ability of Transformers for Sequence-to-Sequence Functions with Infinite Dimensional Inputcited by 32
- 2024Understanding Scaling Laws with Statistical and Approximation Theory for Transformer Neural Networks on Intrinsically Low-dimensional Datacited by 30
- 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
- 2021Theory of Deep Convolutional Neural Networks III: Approximating Radial Functionscited by 22
- 2021On the rate of convergence of a classifier based on a Transformer encodercited by 16
- 2025Understanding In-Context Learning on Structured Manifolds: Bridging Attention to Kernel Methodscited by 15
- 2023On Deep Generative Models for Approximation and Estimation of Distributions on Manifoldscited by 13
- 2023Deep Nonparametric Estimation of Intrinsic Data Structures by Chart Autoencoders: Generalization Error and Robustnesscited by 10
- 2024Nonlinear functional regression by functional deep neural network with kernel embeddingcited by 7
- 2025Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspectivecited by 5
- 2023Learning Theory of Distribution Regression with Neural Networkscited by 3
- 2024Can overfitted deep neural networks in adversarial training generalize? -- An approximation viewpointcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.