Are Transformers universal approximators of sequence-to-sequence functions?
Not on the map. Why?
Cited by 20 in LLM reasoning, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Despite the widespread adoption of Transformer models for NLP tasks, the expressive power of these models is not well-understood. In this paper, we establish that Transformer models are universal approximators of continuous permutation equivariant sequence-to-sequence functions with compact support, which is quite surprising given the amount of shared parameters in these models. Furthermore, using positional encodings, we circumvent the restriction of permutation equivariance, and show that Transformer models can universally approximate arbitrary continuous sequence-to-sequence functions on a compact domain. Interestingly, our proof techniques clearly highlight the different roles of the self-attention and the feed-forward layers in Transformers. In particular, we prove that fixed width self-attention layers can compute contextual mappings of the input sequences, playing a key role in the universal approximation property of Transformers. Based on this insight from our analysis, we consider other simpler alternatives to self-attention layers and empirically evaluate them.
Key facts. Cited by 406 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Dec 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 37; 2022: 25; 2023: 64; 2024: 97; 2025: 94; 2026: 89.
406 papers.
Sort:
By area:
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2022Transformers in Time Series: A Surveycited by 497
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2021Choose a Transformer: Fourier or Galerkincited by 343
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2021Thinking Like Transformerscited by 184
38 more
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2023A mathematical perspective on Transformerscited by 164
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2023The emergence of clusters in self-attention dynamicscited by 140
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
- 2022On The Computational Complexity of Self-Attentioncited by 139
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2023Teaching Arithmetic to Small Transformerscited by 123
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
- 2024Large Language Models for Time Series: A Surveycited by 114
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 102
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2023The Expressive Power of Low-Rank Adaptationcited by 102
- 2023REaLTabFormer: Generating Realistic Relational and Tabular Data using Transformerscited by 94
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2022How Mask Matters: Towards Theoretical Understandings of Masked Autoencoderscited by 86
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 83
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2025Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thoughtcited by 77
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 67
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2024Polynormer: Polynomial-Expressive Graph Transformer in Linear Timecited by 65
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 63
- 2025On the Emergence of Position Bias in Transformerscited by 59
- 2023Max-Margin Token Selection in Attention Mechanismcited by 58
- 2022Your Transformer May Not be as Powerful as You Expectcited by 55
- 2021MATE: Multi-view Attention for Table Transformer Efficiencycited by 54
- 2023JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attentioncited by 52
- 2023On the Role of Attention in Prompt-tuningcited by 50
50 most cited of 406 All 406 (JSON)
- 2026Autoregressive Differentiable Method for Integer Programming1 Oct 2026
- 2026Universal interpolation for deep residual self-attention networks1 Oct 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026Information-Theoretic Analysis of Next-Token Prediction under Markovian Data28 Sep 2026
- 2026Xeno-Interpretability: Investigating the Alien Minds of LLMs17 Sep 2026
- 2026Deep operator learning for efficient sampling from invariant measures of stochastic differential equations10 Sep 2026
- 2026A Theoretical Framework for Masked Pretraining (MPT)6 Sep 2026
- 2026Unlearning on Spatio-Temporal Graphs through Subgraph Virtual Edge Reconstruction29 Aug 2026
- 2026Decoupled Temporal Encoding for Generative Recommendation17 Aug 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
38 more
- 2026MoLGE: Mixture of Language Group Experts for Efficient Scaling of Massively Multilingual Speech Recognition27 Jul 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
- 2026Vector Search As Nearest Neighbor Matching: RAG-based Policy Learning in Causal Inference20 Jul 2026
- 2026Mathematics of Data Science11 Jul 2026
- 2026Any-Dimensional Learning by Sampling8 Jul 2026
- 2026On Explicit Super-Expressive Approximation for Neural Networks7 Jul 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026Extreme Meta-Classification for Large-Scale Zero-Shot Retrieval23 Jun 2026
- 2026Asymptotic Signal Subspace Recovery in Softmax Attention Models21 Jun 2026
- 2026On the Expressive Power of Weight Quantization in Large Language Models20 Jun 2026
- 2026Tight Sample Complexity of Transformers8 Jun 2026
- 2026LongMoE: Longitudinal Multimodal Learning via Trajectory-Aware Mixture-of-Experts6 Jun 2026
- 2026Imbuing Large Language Models with Bidirectional Logic for Robust Chain Repair3 Jun 2026
- 2026Reachability and asymptotics of Gaussian Transformer dynamics29 May 2026
- 2026The Variance Brain Foundation Models Forgot: Third-Order Statistics Predict Cognition Where Billion-Parameter Models Fail29 May 2026
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Fixed Universal Transformers29 May 2026
- 2026Foundation-Preserving Optimization in Generalized Eigenspace28 May 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026Expressive Power of Floating-Point Neural Networks with Arbitrary Reduction Orders and Inexact Activation Implementations27 May 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026CAffNet: Hard Constraint-Affine Neural Networks23 May 2026
- 2026Characterizing the Representational Capacity of Neural Processes22 May 2026
- 2026Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers21 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026A Two-Phase Adaptive Balanced Penalty Method for Controllable Pareto Front Learning under Split Feasibility Conditions19 May 2026
- 2026InfoFlow: A Framework for Multi-Layer Transformer Analysis18 May 2026
- 2026Language Acquisition Device in Large Language Models16 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
- 2026Universal Approximation of Nonlinear Operators and Their Derivatives14 May 2026
- 2026Position: Agentic AI System Is a Foreseeable Pathway to AGI13 May 2026
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity9 May 2026
- 2026Convergent Stochastic Training of Multi-Headed Attention and Understanding LoRA8 May 2026
- 2026Approximation Error Upper and Lower Bounds for H"older Class with Transformers8 May 2026
- 2026How Does Attention Help? Insights from Random Matrices on Signal Recovery from Sequence Models7 May 2026
- 2026Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer6 May 2026
50 newest of 406 All 406 (JSON)
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
- 2025Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thoughtcited by 77
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 67
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2024Towards a Theoretical Understanding of the 'Reversal Curse' via Training Dynamicscited by 27
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learningcited by 19
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigmscited by 12
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thoughtcited by 6
- 2025Rethinking Causal Mask Attention for Vision-Language Inferencecited by 6
- 2024Principled Understanding of Generalization for Generative Transformer Models in Arithmetic Reasoning Taskscited by 5
12 most cited of 20 All 20 (JSON)
- 2026Imbuing Large Language Models with Bidirectional Logic for Robust Chain Repair3 Jun 2026
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2026Understanding LLM Failures: A Multi-Tape Turing Machine Analysis of Systematic Errors in Language Model Reasoning27 Jan 2026
- 2025Rectifying LLM Thought from Lens of Optimization1 Dec 2025
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling22 Aug 2025
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigms5 Jun 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Deciphering Trajectory-Aided LLM Reasoning: An Optimization Perspective26 May 2025
- 2025Rethinking Causal Mask Attention for Vision-Language Inference24 May 2025
- 2025Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought18 May 2025
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thought3 Mar 2025
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encoding1 Jan 2025
12 newest of 20 All 20 (JSON)
- 2023The Expressive Power of Low-Rank Adaptationcited by 102
- 2024Convergence Analysis of Flow Matching in Latent Space with Transformerscited by 16
- 2025A Theoretical Analysis of Discrete Flow Matching Generative Modelscited by 14
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
- 2024PoM: Efficient Image and Video Generation with the Polynomial Mixercited by 1
- 2025A Theoretical Analysis of Discrete Flow Matching Generative Models26 Sep 2025
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024PoM: Efficient Image and Video Generation with the Polynomial Mixer19 Nov 2024
- 2024Convergence Analysis of Flow Matching in Latent Space with Transformers3 Apr 2024
- 2023The Expressive Power of Low-Rank Adaptation26 Oct 2023
- 2023Learning multi-modal generative models with permutation-invariant encoders and tighter variational objectivescited by 4
- 2024Approximation Rates and VC-Dimension Bounds for (P)ReLU MLP Mixture of Expertscited by 2
- 2026Generalization and Scaling Laws for Mixture-of-Experts Transformerscited by 0
- 2026LongMoE: Longitudinal Multimodal Learning via Trajectory-Aware Mixture-of-Expertscited by 0
- 2026MoLGE: Mixture of Language Group Experts for Efficient Scaling of Massively Multilingual Speech Recognitioncited by 0
- 2026MoLGE: Mixture of Language Group Experts for Efficient Scaling of Massively Multilingual Speech Recognition27 Jul 2026
- 2026LongMoE: Longitudinal Multimodal Learning via Trajectory-Aware Mixture-of-Experts6 Jun 2026
- 2026Generalization and Scaling Laws for Mixture-of-Experts Transformers10 Apr 2026
- 2024Approximation Rates and VC-Dimension Bounds for (P)ReLU MLP Mixture of Experts5 Feb 2024
- 2023Learning multi-modal generative models with permutation-invariant encoders and tighter variational objectives1 Sep 2023
- 2023Finding and Editing Multi-Modal Neurons in Pre-Trained Transformerscited by 36
- 2024TULIP: Token-length Upgraded CLIPcited by 19
- 2024TULIP: Token-length Upgraded CLIP13 Oct 2024
- 2023Finding and Editing Multi-Modal Neurons in Pre-Trained Transformers13 Nov 2023
- 2026Position: Agentic AI System Is a Foreseeable Pathway to AGI13 May 2026
- 2024Learning to Play Atari in a World of Tokenscited by 6
- 2024Learning to Play Atari in a World of Tokens3 Jun 2024
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2022Transformers in Time Series: A Surveycited by 497
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2021Choose a Transformer: Fourier or Galerkincited by 343
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2021Thinking Like Transformerscited by 184
- 2023Exphormer: Sparse Transformers for Graphscited by 170
12 most cited of 357 All 357 (JSON)
- 2026Autoregressive Differentiable Method for Integer Programming1 Oct 2026
- 2026Universal interpolation for deep residual self-attention networks1 Oct 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026Information-Theoretic Analysis of Next-Token Prediction under Markovian Data28 Sep 2026
- 2026Xeno-Interpretability: Investigating the Alien Minds of LLMs17 Sep 2026
- 2026Deep operator learning for efficient sampling from invariant measures of stochastic differential equations10 Sep 2026
- 2026A Theoretical Framework for Masked Pretraining (MPT)6 Sep 2026
- 2026Decoupled Temporal Encoding for Generative Recommendation17 Aug 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
12 newest of 357 All 357 (JSON)