Convexifying Transformers: Improving optimization and understanding of transformer networks
Not on the map. Why?
Abstract (arXiv)
Understanding the fundamental mechanism behind the success of transformer networks is still an open problem in the deep learning literature. Although their remarkable performance has been mostly attributed to the self-attention mechanism, the literature still lacks a solid analysis of these networks and interpretation of the functions learned by them. To this end, we study the training problem of attention/transformer networks and introduce a novel convex analytic approach to improve the understanding and optimization of these networks. Particularly, we first introduce a convex alternative to the self-attention mechanism and reformulate the regularized training problem of transformer networks with our alternative convex attention. Then, we cast the reformulation as a convex optimization problem that is interpretable and easier to optimize. Moreover, as a byproduct of our convex analysis, we reveal an implicit regularization mechanism, which promotes sparsity across tokens. Therefore, we not only improve the optimization of attention/transformer networks but also provide a solid theoretical understanding of the functions learned by them. We also demonstrate the effectiveness of our theory through several numerical experiments.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 31 of its 41 references that are in the map. First posted on arXiv 20 Nov 2022.
Builds on
31 of 41 references.
References · 31
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,908
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2021Convex optimizationcited by 2,515
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2018Neural Network Acceptability Judgmentscited by 958
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
19 more
- 2021MetaFormer Is Actually What You Need for Visioncited by 524
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2021Pay Attention to MLPscited by 368
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2014In Search of the Real Inductive Bias: On the Role of Implicit Regularization in Deep Learningcited by 342
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 339
- 2014Breaking the Curse of Dimensionality with Convex Neural Networkscited by 331
- 2021Global Filter Networks for Image Classificationcited by 260
- 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 248
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 187
- 2019How do infinite width bounded norm networks look in function space?cited by 106
- 2020Neural Networks are Convex Regularizers: Exact Polynomial-time Convex Optimization Formulations for Two-layer Networkscited by 98
- 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 94
- 2021Is Attention Better Than Matrix Decomposition?cited by 77
- 2019Attention Interpretability Across NLP Taskscited by 71
- 2020Convex Geometry and Duality of Over-parameterized Neural Networkscited by 49
- 2022Fast Convex Optimization for Two-Layer ReLU Networks: Equivalent Model Classes and Cone Decompositionscited by 31
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2022LM-Debugger: An Interactive Tool for Inspection and Intervention in Transformer-Based Language Modelscited by 28
Built on by
Citing papers per year: 2023: 7; 2024: 3; 2025: 1; 2026: 1.
12 papers.
- 2023Transformers as Support Vector Machinescited by 74
- 2023Max-Margin Token Selection in Attention Mechanismcited by 58
- 2023On the Role of Attention in Prompt-tuningcited by 50
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
- 2023Globally Optimal Training of Neural Networks with Threshold Activation Functionscited by 9
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selectioncited by 9
- 2023The Convex Landscape of Neural Networks: Characterizing Global Optima and Stationary Points via Lasso Modelscited by 7
- 2023Fixing the NTK: From Neural Network Linearizations to Exact Convex Programscited by 1
- 2024Convex Distillation: Efficient Compression of Deep Networks via Convex Optimizationcited by 0
- 2026Convex Optimization of Spiking Neural Networks with Global and Approximation Guaranteescited by 0
- 2026Convex Optimization of Spiking Neural Networks with Global and Approximation Guarantees8 May 2026
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection18 Oct 2024
- 2024Convex Distillation: Efficient Compression of Deep Networks via Convex Optimization9 Oct 2024
- 2024Implicit Bias and Fast Convergence Rates for Self-attention8 Feb 2024
- 2023The Convex Landscape of Neural Networks: Characterizing Global Optima and Stationary Points via Lasso Models19 Dec 2023
- 2023On the Optimization and Generalization of Multi-head Attention19 Oct 2023
- 2023Fixing the NTK: From Neural Network Linearizations to Exact Convex Programs26 Sep 2023
- 2023Transformers as Support Vector Machines31 Aug 2023
- 2023Max-Margin Token Selection in Attention Mechanism23 Jun 2023
- 2023On the Role of Attention in Prompt-tuning6 Jun 2023
- 2023Globally Optimal Training of Neural Networks with Threshold Activation Functions6 Mar 2023