Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
33 more
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 379
- 2021Pay Attention to MLPscited by 367
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2017Implicit Regularization in Matrix Factorizationcited by 318
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2021Global Filter Networks for Image Classificationcited by 257
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
- 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
- 2020The Lipschitz Constant of Self-Attentioncited by 171
- 2019How do infinite width bounded norm networks look in function space?cited by 105
- 2020Neural Networks are Convex Regularizers: Exact Polynomial-time Convex Optimization Formulations for Two-layer Networkscited by 96
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2020Revealing the Structure of Deep Neural Networks via Convex Dualitycited by 54
- 2020Convex Geometry and Duality of Over-parameterized Neural Networkscited by 49
- 2021Sparse Attention with Linear Unitscited by 41
- 2020Vector-output ReLU Neural Network Problems are Copositive Programs: Convex Analysis of Two Layer Networks and Polynomial-time Algorithmscited by 33
- 2022Fast Convex Optimization for Two-Layer ReLU Networks: Equivalent Model Classes and Cone Decompositionscited by 31
- 2020The Hidden Convex Optimization Landscape of Two-Layer ReLU Neural Networks: an Exact Characterization of the Optimal Solutionscited by 30
- 2021Global Optimality Beyond Two Layers: Training Deep ReLU Networks via Convex Programscited by 25
- 2021Demystifying Batch Normalization in ReLU Networks: Equivalent Convex Optimization Models and Implicit Regularizationcited by 21
- 2014Subspace Learning and Imputation for Streaming Big Data Matrices and Tensorscited by 15
- 2020Convex Regularization Behind Neural Reconstructioncited by 15
- 2022Efficient Global Optimization of Two-Layer ReLU Networks: Quadratic-Time Algorithms and Adversarial Trainingcited by 15
- 2021Neural Spectrahedra and Semidefinite Lifts: Global Convex Optimization of Polynomial Activation Neural Networks in Fully Polynomial-Timecited by 14
- 2021Hidden Convexity of Wasserstein GANs: Interpretable Generative Models with Closed-Form Solutionscited by 14
- 2019Decoupling Gating from Linearitycited by 13
- 2020Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inferencecited by 13
- 2021Training Quantized Neural Networks to Global Optimality via Semidefinite Programmingcited by 6
Built on by
Citing papers per year: 2022: 4; 2023: 11; 2024: 10; 2025: 2; 2026: 3.
30 papers.
Sort:
- 2023Transformers as Support Vector Machinescited by 67
- 2023Max-Margin Token Selection in Attention Mechanismcited by 57
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
- 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 16
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2022Convexifying Transformers: Improving optimization and understanding of transformer networkscited by 12
- 2024Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Timecited by 11
18 more
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
- 2023Globally Optimal Training of Neural Networks with Threshold Activation Functionscited by 9
- 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformerscited 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
- 2023On the Global Convergence of Natural Actor-Critic with Two-layer Neural Network Parametrizationcited by 5
- 2024A Primal-Dual Framework for Transformers and Neural Networkscited by 4
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2022Overparameterized ReLU Neural Networks Learn the Simplest Models: Neural Isometry and Exact Recoverycited by 3
- 2022On the Global Convergence of Fitted Q-Iteration with Two-layer Neural Network Parametrizationcited by 3
- 2023Multiscale Attention via Wavelet Neural Operators for Vision Transformerscited by 3
- 2023Understanding MLP-Mixer as a Wide and Sparse MLPcited by 3
- 2025SpiLiFormer: Enhancing Spiking Transformers with Lateral Inhibitioncited by 3
- 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
- 2026Resource-Efficient Gesture Recognition through Convexified Attentioncited by 0
- 2026How Does Attention Help? Insights from Random Matrices on Signal Recovery from Sequence Modelscited by 0
- 2026Exact Convex Reformulations of Linear Neural Networks via Completely Positive Liftingcited by 0
- 2026Exact Convex Reformulations of Linear Neural Networks via Completely Positive Lifting17 May 2026
- 2026How Does Attention Help? Insights from Random Matrices on Signal Recovery from Sequence Models7 May 2026
- 2026Resource-Efficient Gesture Recognition through Convexified Attention13 Feb 2026
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2025SpiLiFormer: Enhancing Spiking Transformers with Lateral Inhibition20 Mar 2025
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Selective Attention: Enhancing Transformer through Principled Context Control19 Nov 2024
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection18 Oct 2024
- 2024Convex Distillation: Efficient Compression of Deep Networks via Convex Optimization9 Oct 2024
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers24 May 2024
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Models28 Feb 2024
18 more
- 2024Implicit Bias and Fast Convergence Rates for Self-attention8 Feb 2024
- 2024A phase transition between positional and semantic learning in a solvable model of dot-product attention6 Feb 2024
- 2024Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Time6 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 Global Convergence of Natural Actor-Critic with Two-layer Neural Network Parametrization18 Jun 2023
- 2023On the Role of Attention in Prompt-tuning6 Jun 2023
- 2023Memorization Capacity of Multi-Head Attention in Transformers3 Jun 2023
- 2023Understanding MLP-Mixer as a Wide and Sparse MLP2 Jun 2023
- 2023Multiscale Attention via Wavelet Neural Operators for Vision Transformers22 Mar 2023
- 2023Globally Optimal Training of Neural Networks with Threshold Activation Functions6 Mar 2023
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformers7 Dec 2022
- 2022Convexifying Transformers: Improving optimization and understanding of transformer networks20 Nov 2022
- 2022On the Global Convergence of Fitted Q-Iteration with Two-layer Neural Network Parametrization14 Nov 2022
- 2022Overparameterized ReLU Neural Networks Learn the Simplest Models: Neural Isometry and Exact Recovery30 Sep 2022
- 2023Transformers as Support Vector Machinescited by 67
- 2023Max-Margin Token Selection in Attention Mechanismcited by 57
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
- 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 16
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2022Convexifying Transformers: Improving optimization and understanding of transformer networkscited by 12
- 2024Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Timecited by 11
12 most cited of 30 All 30 (JSON)
- 2026Exact Convex Reformulations of Linear Neural Networks via Completely Positive Lifting17 May 2026
- 2026How Does Attention Help? Insights from Random Matrices on Signal Recovery from Sequence Models7 May 2026
- 2026Resource-Efficient Gesture Recognition through Convexified Attention13 Feb 2026
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2025SpiLiFormer: Enhancing Spiking Transformers with Lateral Inhibition20 Mar 2025
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Selective Attention: Enhancing Transformer through Principled Context Control19 Nov 2024
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection18 Oct 2024
- 2024Convex Distillation: Efficient Compression of Deep Networks via Convex Optimization9 Oct 2024
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers24 May 2024
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Models28 Feb 2024
12 newest of 30 All 30 (JSON)