mlsanityData to 7 Oct 2026

Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformers

arXiv 2205.08078 ↗First posted 17 May 2022cs.LG cs.CV math.OCcited by 30

Not on the map. Why?

Abstract (arXiv)

Vision transformers using self-attention or its proposed alternatives have demonstrated promising results in many image related tasks. However, the underpinning inductive bias of attention is not well understood. To address this issue, this paper analyzes attention through the lens of convex duality. For the non-linear dot-product self-attention, and alternative mechanisms such as MLP-mixer and Fourier Neural Operator (FNO), we derive equivalent finite-dimensional convex problems that are interpretable and solvable to global optimality. The convex programs lead to it block nuclear-norm regularization that promotes low rank in the latent feature and token dimensions. In particular, we show how self-attention networks implicitly clusters the tokens, based on their latent similarity. We conduct experiments for transferring a pre-trained transformer backbone for CIFAR-100 classification by fine-tuning a variety of convex attention heads. The results indicate the merits of the bias induced by attention compared with the existing MLP or linear heads.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 45 of its 64 references that are in the map. First posted on arXiv 17 May 2022.

Builds on

45 of 64 references.

References · 45

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  5. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  6. 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
  7. 2020Reformer: The Efficient Transformercited by 1,658
  8. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  9. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  10. 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
  11. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  12. 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
33 more
  1. 2021MetaFormer Is Actually What You Need for Visioncited by 523
  2. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  3. 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 379
  4. 2021Pay Attention to MLPscited by 367
  5. 2018Efficient Attention: Attention with Linear Complexitiescited by 366
  6. 2021FNet: Mixing Tokens with Fourier Transformscited by 343
  7. 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
  8. 2017Implicit Regularization in Matrix Factorizationcited by 318
  9. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  10. 2021Global Filter Networks for Image Classificationcited by 257
  11. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
  12. 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
  13. 2020The Lipschitz Constant of Self-Attentioncited by 171
  14. 2019How do infinite width bounded norm networks look in function space?cited by 105
  15. 2020Neural Networks are Convex Regularizers: Exact Polynomial-time Convex Optimization Formulations for Two-layer Networkscited by 96
  16. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  17. 2021Is Attention Better Than Matrix Decomposition?cited by 75
  18. 2020Revealing the Structure of Deep Neural Networks via Convex Dualitycited by 54
  19. 2020Convex Geometry and Duality of Over-parameterized Neural Networkscited by 49
  20. 2021Sparse Attention with Linear Unitscited by 41
  21. 2020Vector-output ReLU Neural Network Problems are Copositive Programs: Convex Analysis of Two Layer Networks and Polynomial-time Algorithmscited by 33
  22. 2022Fast Convex Optimization for Two-Layer ReLU Networks: Equivalent Model Classes and Cone Decompositionscited by 31
  23. 2020The Hidden Convex Optimization Landscape of Two-Layer ReLU Neural Networks: an Exact Characterization of the Optimal Solutionscited by 30
  24. 2021Global Optimality Beyond Two Layers: Training Deep ReLU Networks via Convex Programscited by 25
  25. 2021Demystifying Batch Normalization in ReLU Networks: Equivalent Convex Optimization Models and Implicit Regularizationcited by 21
  26. 2014Subspace Learning and Imputation for Streaming Big Data Matrices and Tensorscited by 15
  27. 2020Convex Regularization Behind Neural Reconstructioncited by 15
  28. 2022Efficient Global Optimization of Two-Layer ReLU Networks: Quadratic-Time Algorithms and Adversarial Trainingcited by 15
  29. 2021Neural Spectrahedra and Semidefinite Lifts: Global Convex Optimization of Polynomial Activation Neural Networks in Fully Polynomial-Timecited by 14
  30. 2021Hidden Convexity of Wasserstein GANs: Interpretable Generative Models with Closed-Form Solutionscited by 14
  31. 2019Decoupling Gating from Linearitycited by 13
  32. 2020Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inferencecited by 13
  33. 2021Training Quantized Neural Networks to Global Optimality via Semidefinite Programmingcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 4; 2023: 11; 2024: 10; 2025: 2; 2026: 3.

30 papers.

Sort:

  1. 2023Transformers as Support Vector Machinescited by 67
  2. 2023Max-Margin Token Selection in Attention Mechanismcited by 57
  3. 2023On the Role of Attention in Prompt-tuningcited by 49
  4. 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
  5. 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
  6. 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
  7. 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
  8. 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
  9. 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 16
  10. 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
  11. 2022Convexifying Transformers: Improving optimization and understanding of transformer networkscited by 12
  12. 2024Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Timecited by 11
18 more
  1. 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
  2. 2023Globally Optimal Training of Neural Networks with Threshold Activation Functionscited by 9
  3. 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformerscited by 9
  4. 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selectioncited by 9
  5. 2023The Convex Landscape of Neural Networks: Characterizing Global Optima and Stationary Points via Lasso Modelscited by 7
  6. 2023On the Global Convergence of Natural Actor-Critic with Two-layer Neural Network Parametrizationcited by 5
  7. 2024A Primal-Dual Framework for Transformers and Neural Networkscited by 4
  8. 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
  9. 2022Overparameterized ReLU Neural Networks Learn the Simplest Models: Neural Isometry and Exact Recoverycited by 3
  10. 2022On the Global Convergence of Fitted Q-Iteration with Two-layer Neural Network Parametrizationcited by 3
  11. 2023Multiscale Attention via Wavelet Neural Operators for Vision Transformerscited by 3
  12. 2023Understanding MLP-Mixer as a Wide and Sparse MLPcited by 3
  13. 2025SpiLiFormer: Enhancing Spiking Transformers with Lateral Inhibitioncited by 3
  14. 2023Fixing the NTK: From Neural Network Linearizations to Exact Convex Programscited by 1
  15. 2024Convex Distillation: Efficient Compression of Deep Networks via Convex Optimizationcited by 0
  16. 2026Resource-Efficient Gesture Recognition through Convexified Attentioncited by 0
  17. 2026How Does Attention Help? Insights from Random Matrices on Signal Recovery from Sequence Modelscited by 0
  18. 2026Exact Convex Reformulations of Linear Neural Networks via Completely Positive Liftingcited by 0