Transformers from an Optimization Perspective
Not on the map. Why?
Abstract (arXiv)
Deep learning models such as the Transformer are often constructed by heuristics and experience. To provide a complementary foundation, in this work we study the following problem: Is it possible to find an energy function underlying the Transformer model, such that descent steps along this energy correspond with the Transformer forward pass? By finding such a function, we can view Transformers as the unfolding of an interpretable optimization process across iterations. This unfolding perspective has been frequently adopted in the past to elucidate more straightforward deep models such as MLPs and CNNs; however, it has thus far remained elusive obtaining a similar equivalence for more complex models with self-attention mechanisms like the Transformer. To this end, we first outline several major obstacles before providing companion techniques to at least partially address them, demonstrating for the first time a close association between energy function minimization and deep layers with self-attention. This interpretation contributes to our intuition and understanding of Transformers, while potentially laying the ground-work for new model designs.
Key facts. Cited by 27 papers in the map (data through 14 Oct 2026). Builds on 35 of its 64 references that are in the map. First posted on arXiv 27 May 2022.
Builds on
35 of 64 references.
References · 35
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2017Graph Attention Networkscited by 8,923
- 2020Reformer: The Efficient Transformercited by 1,668
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,167
- 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
- 2020Simple and Deep Graph Convolutional Networkscited by 860
- 2019Deep Equilibrium Modelscited by 615
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2020Hopfield Networks is All You Needcited by 475
- 2016Input Convex Neural Networkscited by 414
23 more
- 2021Pay Attention to MLPscited by 368
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2021Interpreting and Unifying Graph Neural Networks with An Optimization Frameworkcited by 131
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2020A Unified View on Graph Neural Networks as Graph Signal Denoisingcited by 110
- 2021Dirichlet Energy Constrained Learning for Deep Graph Neural Networkscited by 97
- 2019Star-Transformercited by 94
- 2014A Proximal Stochastic Gradient Method with Progressive Variance Reductioncited by 78
- 2014Deep Unfolding: Model-Based Inspiration of Novel Deep Architecturescited by 77
- 2021Is Attention Better Than Matrix Decomposition?cited by 77
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 72
- 2021Elastic Graph Neural Networkscited by 67
- 2021Graph Neural Networks Inspired by Classical Iterative Algorithmscited by 60
- 2020Revisiting Over-smoothing in Deep GCNscited by 55
- 2018Deep Bilevel Learningcited by 49
- 2013Understanding Alternating Minimization for Matrix Completioncited by 32
- 2020Revisiting Graph Convolutional Network on Semi-Supervised Node Classification from an Optimization Perspectivecited by 17
- 2021Implicit vs Unfolded Graph Neural Networkscited by 13
- 2018Exploring Weight Symmetry in Deep Neural Networkscited by 12
- 2017From Bayesian Sparsity to Gated Recurrent Netscited by 7
- 2021IGLU: Efficient GCN Training via Lazy Updatescited by 7
- 2016Inexact Proximal Gradient Methods for Non-convex and Non-smooth Optimizationcited by 5
- 2021Optimization Induced Equilibrium Networkscited by 5
Built on by
Citing papers per year: 2022: 2; 2023: 10; 2024: 5; 2025: 6; 2026: 4.
27 papers.
Sort:
- 2023Large Language Models in Law: A Surveycited by 128
- 2023White-Box Transformers via Sparse Rate Reductioncited by 80
- 2023Energy Transformercited by 71
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2023On Sparse Modern Hopfield Modelcited by 42
- 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyondcited by 39
- 2024Graph Transformers: A Surveycited by 32
- 2023Emergence of Segmentation with Minimalistic White-Box Transformerscited by 24
- 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
- 2022Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networkscited by 9
- 2023Robust Stochastically-Descending Unrolled Networkscited by 9
- 2024STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecastingcited by 9
15 more
- 2025NRGPT: An Energy-based Alternative for GPTcited by 8
- 2022Optimization-Derived Learning with Essential Convergence Analysis of Training and Hyper-trainingcited by 5
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 5
- 2025Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobianscited by 5
- 2026Krause Synchronization Transformerscited by 5
- 2023Attention: Marginal Probability is All You Need?cited by 4
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixercited by 3
- 2025Provable Low-Frequency Bias of In-Context Learning of Representationscited by 3
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
- 2025FedLoDrop: Federated LoRA with Dropout for Generalized LLM Fine-tuningcited by 2
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
- 2025A Framework for Quantifying How Pre-Training and Context Benefit In-Context Learningcited by 0
- 2026A Constrained Optimization Perspective of Unrolled Transformerscited by 0
- 2026Revisiting Transformer Layer Parameterization Through Causal Energy Minimizationcited by 0
- 2026Revisiting Transformer Layer Parameterization Through Causal Energy Minimization8 May 2026
- 2026Krause Synchronization Transformers12 Feb 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026A Constrained Optimization Perspective of Unrolled Transformers24 Jan 2026
- 2025NRGPT: An Energy-based Alternative for GPT18 Dec 2025
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principle2 Nov 2025
- 2025A Framework for Quantifying How Pre-Training and Context Benefit In-Context Learning26 Oct 2025
- 2025FedLoDrop: Federated LoRA with Dropout for Generalized LLM Fine-tuning14 Oct 2025
- 2025Provable Low-Frequency Bias of In-Context Learning of Representations17 Jul 2025
- 2025Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobians26 May 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
15 more
- 2024STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecasting1 Oct 2024
- 2024Graph Transformers: A Survey13 Jul 2024
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking18 Jun 2024
- 2023Robust Stochastically-Descending Unrolled Networks25 Dec 2023
- 2023Large Language Models in Law: A Survey26 Nov 2023
- 2023On the Convergence of Encoder-only Shallow Transformers2 Nov 2023
- 2023On Sparse Modern Hopfield Model22 Sep 2023
- 2023Emergence of Segmentation with Minimalistic White-Box Transformers30 Aug 2023
- 2023White-Box Transformers via Sparse Rate Reduction1 Jun 2023
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixer25 Apr 2023
- 2023Attention: Marginal Probability is All You Need?7 Apr 2023
- 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyond12 Mar 2023
- 2023Energy Transformer14 Feb 2023
- 2022Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networks22 Jun 2022
- 2022Optimization-Derived Learning with Essential Convergence Analysis of Training and Hyper-training16 Jun 2022
- 2023Large Language Models in Law: A Surveycited by 128
- 2023White-Box Transformers via Sparse Rate Reductioncited by 80
- 2023Energy Transformercited by 71
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2023On Sparse Modern Hopfield Modelcited by 42
- 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyondcited by 39
- 2024Graph Transformers: A Surveycited by 32
- 2023Emergence of Segmentation with Minimalistic White-Box Transformerscited by 24
- 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
- 2022Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networkscited by 9
- 2023Robust Stochastically-Descending Unrolled Networkscited by 9
- 2024STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecastingcited by 9
12 most cited of 27 All 27 (JSON)
- 2026Revisiting Transformer Layer Parameterization Through Causal Energy Minimization8 May 2026
- 2026Krause Synchronization Transformers12 Feb 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026A Constrained Optimization Perspective of Unrolled Transformers24 Jan 2026
- 2025NRGPT: An Energy-based Alternative for GPT18 Dec 2025
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principle2 Nov 2025
- 2025A Framework for Quantifying How Pre-Training and Context Benefit In-Context Learning26 Oct 2025
- 2025FedLoDrop: Federated LoRA with Dropout for Generalized LLM Fine-tuning14 Oct 2025
- 2025Provable Low-Frequency Bias of In-Context Learning of Representations17 Jul 2025
- 2025Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobians26 May 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
12 newest of 27 All 27 (JSON)