Attention layers provably solve single-location regression
Not on the map. Why?
Abstract (arXiv)
Attention-based models, such as Transformer, excel across various tasks but lack a comprehensive theoretical understanding, especially regarding token-wise sparsity and internal linear representations. To address this gap, we introduce the single-location regression task, where only one token in a sequence determines the output, and its position is a latent random variable, retrievable via a linear projection of the input. To solve this task, we propose a dedicated predictor, which turns out to be a simplified version of a non-linear self-attention layer. We study its theoretical properties, by showing its asymptotic Bayes optimality and analyzing its training dynamics. In particular, despite the non-convex nature of the problem, the predictor effectively learns the underlying structure. This work highlights the capacity of attention mechanisms to handle sparse token information and internal linear structures.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 51 of its 67 references that are in the map. First posted on arXiv 2 Oct 2024.
Builds on
51 of 67 references.
References · 51
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2023Vision Transformers Need Registerscited by 871
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
38 more
- 2022Transformers learn in-context by gradient descentcited by 732
- 2018On Lazy Training in Differentiable Programmingcited by 675
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
- 2021A Survey of Transformerscited by 401
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2013Exploiting Similarities among Languages for Machine Translationcited by 191
- 2019BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysiscited by 176
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2019Adaptively Sparse Transformerscited by 155
- 2015End-to-End Attention-based Large Vocabulary Speech Recognitioncited by 151
- 2020A Two-Timescale Framework for Bilevel Optimization: Complexity Analysis and Application to Actor-Criticcited by 144
- 2021Learned Token Pruning for Transformerscited by 139
- 2019Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentencecited by 122
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 121
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2022A framework for bilevel optimization that enables stochastic and global variance reduction algorithmscited by 99
- 2021An Interpretability Illusion for BERTcited by 97
- 2022Vision Transformers provably learn spatial structurecited by 93
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2022Formal Algorithms for Transformerscited by 72
- 2024Theory, Analysis, and Best Practices for Sigmoid Self-Attentioncited by 64
- 2023Learning time-scales in two-layers neural networkscited by 57
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2019Attentional Encoder Network for Targeted Sentiment Classificationcited by 48
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 47
- 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 45
- 2023Replacing softmax with ReLU in Vision Transformerscited by 44
- 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 38
- 2023Simplifying Transformer Blockscited by 37
- 2024Implicit Diffusion: Efficient Optimization through Stochastic Samplingcited by 24
- 2024Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannotcited by 22
- 2023Leveraging the two timescale regime to demonstrate convergence of neural networkscited by 19
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 9; 2026: 7.
17 papers.
Sort:
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
- 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networkscited by 9
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regressioncited by 7
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameterscited by 3
- 2025Attention-based clusteringcited by 3
- 2025Bayes optimal learning of attention-indexed modelscited by 3
- 2024Learning with Hidden Factorial Structurecited by 2
- 2026Incremental Learning of Sparse Attention Patterns in Transformerscited by 2
- 2026Specialization of softmax attention heads: insights from the high-dimensional single-location modelcited by 2
- 2025Attention with Trained Embeddings Provably Selects Important Tokenscited by 1
- 2026Provably Learning Attention with Queriescited by 1
- 2025Ordinary Least Squares as an Attention Mechanismcited by 0
5 more
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Inductioncited by 0
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learningcited by 0
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contextscited by 0
- 2026Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learningcited by 0
- 2026Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning14 Oct 2026
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contexts30 Sep 2026
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning26 Sep 2026
- 2026Specialization of softmax attention heads: insights from the high-dimensional single-location model4 Mar 2026
- 2026Incremental Learning of Sparse Attention Patterns in Transformers22 Feb 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Provably Learning Attention with Queries23 Jan 2026
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regression26 Sep 2025
- 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networks3 Jun 2025
- 2025Bayes optimal learning of attention-indexed models2 Jun 2025
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetition23 May 2025
5 more
- 2025Attention with Trained Embeddings Provably Selects Important Tokens22 May 2025
- 2025Attention-based clustering19 May 2025
- 2025Ordinary Least Squares as an Attention Mechanism13 Apr 2025
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameters11 Feb 2025
- 2024Learning with Hidden Factorial Structure2 Nov 2024
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
- 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networkscited by 9
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regressioncited by 7
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameterscited by 3
- 2025Attention-based clusteringcited by 3
- 2025Bayes optimal learning of attention-indexed modelscited by 3
- 2024Learning with Hidden Factorial Structurecited by 2
- 2026Incremental Learning of Sparse Attention Patterns in Transformerscited by 2
- 2026Specialization of softmax attention heads: insights from the high-dimensional single-location modelcited by 2
- 2025Attention with Trained Embeddings Provably Selects Important Tokenscited by 1
- 2026Provably Learning Attention with Queriescited by 1
- 2025Ordinary Least Squares as an Attention Mechanismcited by 0
12 most cited of 17 All 17 (JSON)
- 2026Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning14 Oct 2026
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contexts30 Sep 2026
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning26 Sep 2026
- 2026Specialization of softmax attention heads: insights from the high-dimensional single-location model4 Mar 2026
- 2026Incremental Learning of Sparse Attention Patterns in Transformers22 Feb 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Provably Learning Attention with Queries23 Jan 2026
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regression26 Sep 2025
- 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networks3 Jun 2025
- 2025Bayes optimal learning of attention-indexed models2 Jun 2025
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetition23 May 2025
12 newest of 17 All 17 (JSON)