Concise One-Layer Transformers Can Do Function Evaluation (Sometimes)
Not on the map. Why?
Abstract (arXiv)
While transformers have proven enormously successful in a range of tasks, their fundamental properties as models of computation are not well understood. This paper contributes to the study of the expressive capacity of transformers, focusing on their ability to perform the fundamental computational task of evaluating an arbitrary function from [n] to [n] at a given argument. We prove that concise 1-layer transformers (i.e., with a polylog bound on the product of the number of heads, the embedding dimension, and precision) are capable of doing this task under some representations of the input, but not when the function's inputs and values are only encoded in different input positions. Concise 2-layer transformers can perform the task even with the more difficult input representation. Experimentally, we find a rough alignment between what we have proven can be computed by concise transformers and what can be practically learned.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 9 of its 10 references that are in the map. First posted on arXiv 28 Mar 2025.
Builds on
9 of 10 references.
References · 9
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2023What Formal Languages Can Transformers Express? A Surveycited by 121
- 2024On Limitations of the Transformer Architecturecited by 63
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2024Theoretical limitations of multi-layer Transformercited by 45
- 2024One-layer transformers fail to solve the induction heads taskcited by 30
- 2024Simulating Hard Attention Using Soft Attentioncited by 15
- 2025Strassen Attention, Split VC Dimension and Compositionality in Transformerscited by 12
Built on by
Citing papers per year: 2026: 3.
3 papers.