Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection
Not on the map. Why?
Abstract (arXiv)
Attention mechanisms have revolutionized several domains of artificial intelligence, such as natural language processing and computer vision, by enabling models to selectively focus on relevant parts of the input data. While recent work has characterized the optimization dynamics of gradient descent (GD) in attention-based models and the structural properties of its preferred solutions, less is known about more general optimization algorithms such as mirror descent (MD). In this paper, we investigate the convergence properties and implicit biases of a family of MD algorithms tailored for softmax attention mechanisms, with the potential function chosen as the p-th power of the ℓp-norm. Specifically, we show that these algorithms converge in direction to a generalized hard-margin SVM with an ℓp-norm objective when applied to a classification problem using a softmax attention model. Notably, our theoretical results reveal that the convergence rate is comparable to that of traditional GD in simpler models, despite the highly nonlinear and nonconvex nature of the present problem. Additionally, we delve into the joint optimization dynamics of the key-query matrix and the decoder, establishing conditions under which this complex joint optimization converges to their respective hard-margin SVM solutions. Lastly, our numerical experiments on real data demonstrate that MD algorithms improve generalization over standard GD and excel in optimal token selection.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 57 of its 65 references that are in the map. First posted on arXiv 18 Oct 2024.
Builds on
57 of 65 references.
References · 57
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,037
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
- 2014Convex Optimization: Algorithms and Complexitycited by 569
38 more
- 2019Implicit Regularization in Deep Matrix Factorizationcited by 402
- 2019Gradient Descent Maximizes the Margin of Homogeneous Neural Networkscited by 308
- 2020Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Losscited by 267
- 2018Characterizing Implicit Bias in Terms of Optimization Geometrycited by 259
- 2020Directional convergence and alignment in deep learningcited by 172
- 2020Towards Resolving the Implicit Bias of Gradient Descent for Matrix Factorization: Greedy Low-Rank Learningcited by 148
- 2023In-Context Convergence of Transformerscited by 112
- 2018Convergence of Gradient Descent on Separable Datacited by 108
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2022On the Implicit Bias in Deep-Learning Algorithmscited by 84
- 2018Risk and parameter convergence of logistic regressioncited by 81
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 71
- 2023Transformers as Support Vector Machinescited by 67
- 2023Max-Margin Token Selection in Attention Mechanismcited by 57
- 2023JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attentioncited by 52
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 47
- 2022Implicit Bias in Leaky ReLU Networks Trained on High-Dimensional Datacited by 46
- 2020Implicit Regularization in ReLU Networks with the Square Losscited by 45
- 2019Stochastic Mirror Descent on Overparameterized Nonlinear Models: Convergence, Implicit Regularization, and Generalizationcited by 40
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 39
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2021Fast Margin Maximization via Dual Accelerationcited by 33
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2018Stochastic Gradient/Mirror Descent: Minimax Optimality and Implicit Regularizationcited by 29
- 2022Mirror Descent Maximizes Generalized Margin and Can Be Implemented Efficientlycited by 25
- 2024Implicit Geometry of Next-token Prediction: From Language Sparsity Patterns to Model Representationscited by 24
- 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
- 2024Provably learning a multi-head attention layercited by 21
- 2024Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannotcited by 21
- 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 16
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2025: 7; 2026: 2.
9 papers.
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
- 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Datacited by 33
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
- 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?cited by 10
- 2025Dynamics of Spontaneous Topic Changes in Next Token Prediction with Self-Attentioncited by 2
- 2025Diagonalizing the Softmax: Hadamard Initialization for Tractable Cross-Entropy Dynamicscited by 2
- 2025Attention with Trained Embeddings Provably Selects Important Tokenscited by 0
- 2026Implicit Bias of Mirror Flow in Homogeneous Neural Networks: Sparse and Dense Feature Learningcited by 0
- 2026The Implicit Bias of Depth: From Neural Collapse to Softmax Codescited by 0
- 2026The Implicit Bias of Depth: From Neural Collapse to Softmax Codes21 May 2026
- 2026Implicit Bias of Mirror Flow in Homogeneous Neural Networks: Sparse and Dense Feature Learning19 May 2026
- 2025Diagonalizing the Softmax: Hadamard Initialization for Tractable Cross-Entropy Dynamics3 Dec 2025
- 2025Attention with Trained Embeddings Provably Selects Important Tokens22 May 2025
- 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?17 Apr 2025
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Data7 Feb 2025
- 2025Training Dynamics of In-Context Learning in Linear Attention27 Jan 2025
- 2025Dynamics of Spontaneous Topic Changes in Next Token Prediction with Self-Attention10 Jan 2025