mlsanityData to 14 Oct 2026

Transformers from an Optimization Perspective

arXiv 2205.13891 ↗First posted 27 May 2022cs.LGcited by 27

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2017Graph Attention Networkscited by 8,923
  4. 2020Reformer: The Efficient Transformercited by 1,668
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  6. 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,167
  7. 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
  8. 2020Simple and Deep Graph Convolutional Networkscited by 860
  9. 2019Deep Equilibrium Modelscited by 615
  10. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
  11. 2020Hopfield Networks is All You Needcited by 475
  12. 2016Input Convex Neural Networkscited by 414
23 more
  1. 2021Pay Attention to MLPscited by 368
  2. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  3. 2021Interpreting and Unifying Graph Neural Networks with An Optimization Frameworkcited by 131
  4. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  5. 2020A Unified View on Graph Neural Networks as Graph Signal Denoisingcited by 110
  6. 2021Dirichlet Energy Constrained Learning for Deep Graph Neural Networkscited by 97
  7. 2019Star-Transformercited by 94
  8. 2014A Proximal Stochastic Gradient Method with Progressive Variance Reductioncited by 78
  9. 2014Deep Unfolding: Model-Based Inspiration of Novel Deep Architecturescited by 77
  10. 2021Is Attention Better Than Matrix Decomposition?cited by 77
  11. 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 72
  12. 2021Elastic Graph Neural Networkscited by 67
  13. 2021Graph Neural Networks Inspired by Classical Iterative Algorithmscited by 60
  14. 2020Revisiting Over-smoothing in Deep GCNscited by 55
  15. 2018Deep Bilevel Learningcited by 49
  16. 2013Understanding Alternating Minimization for Matrix Completioncited by 32
  17. 2020Revisiting Graph Convolutional Network on Semi-Supervised Node Classification from an Optimization Perspectivecited by 17
  18. 2021Implicit vs Unfolded Graph Neural Networkscited by 13
  19. 2018Exploring Weight Symmetry in Deep Neural Networkscited by 12
  20. 2017From Bayesian Sparsity to Gated Recurrent Netscited by 7
  21. 2021IGLU: Efficient GCN Training via Lazy Updatescited by 7
  22. 2016Inexact Proximal Gradient Methods for Non-convex and Non-smooth Optimizationcited by 5
  23. 2021Optimization Induced Equilibrium Networkscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 2; 2023: 10; 2024: 5; 2025: 6; 2026: 4.

27 papers.

Sort:

  1. 2023Large Language Models in Law: A Surveycited by 128
  2. 2023White-Box Transformers via Sparse Rate Reductioncited by 80
  3. 2023Energy Transformercited by 71
  4. 2024ICLR: In-Context Learning of Representationscited by 50
  5. 2023On Sparse Modern Hopfield Modelcited by 42
  6. 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyondcited by 39
  7. 2024Graph Transformers: A Surveycited by 32
  8. 2023Emergence of Segmentation with Minimalistic White-Box Transformerscited by 24
  9. 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
  10. 2022Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networkscited by 9
  11. 2023Robust Stochastically-Descending Unrolled Networkscited by 9
  12. 2024STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecastingcited by 9
15 more
  1. 2025NRGPT: An Energy-based Alternative for GPTcited by 8
  2. 2022Optimization-Derived Learning with Essential Convergence Analysis of Training and Hyper-trainingcited by 5
  3. 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 5
  4. 2025Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobianscited by 5
  5. 2026Krause Synchronization Transformerscited by 5
  6. 2023Attention: Marginal Probability is All You Need?cited by 4
  7. 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
  8. 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixercited by 3
  9. 2025Provable Low-Frequency Bias of In-Context Learning of Representationscited by 3
  10. 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
  11. 2025FedLoDrop: Federated LoRA with Dropout for Generalized LLM Fine-tuningcited by 2
  12. 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
  13. 2025A Framework for Quantifying How Pre-Training and Context Benefit In-Context Learningcited by 0
  14. 2026A Constrained Optimization Perspective of Unrolled Transformerscited by 0
  15. 2026Revisiting Transformer Layer Parameterization Through Causal Energy Minimizationcited by 0