mlsanityData to 7 Oct 2026

Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODE

arXiv 2402.02362 ↗First posted 4 Feb 2024cs.LG cs.AI hep-thcited by 6

Not on the map. Why?

Abstract (arXiv)

Understanding the inner workings of neural networks, including transformers, remains one of the most challenging puzzles in machine learning. This study introduces a novel approach by applying the principles of gauge symmetries, a key concept in physics, to neural network architectures. By regarding model functions as physical observables, we find that parametric redundancies of various machine learning models can be interpreted as gauge symmetries. We mathematically formulate the parametric redundancies in neural ODEs, and find that their gauge symmetries are given by spacetime diffeomorphisms, which play a fundamental role in Einstein's theory of gravity. Viewing neural ODEs as a continuum version of feedforward neural networks, we show that the parametric redundancies in feedforward neural networks are indeed lifted to diffeomorphisms in neural ODEs. We further extend our analysis to transformer models, finding natural correspondences with neural ODEs and their gauge symmetries. The concept of gauge symmetries sheds light on the complex behavior of deep learning models through physics and provides us with a unifying perspective for analyzing various machine learning architectures.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 27 of its 56 references that are in the map. First posted on arXiv 4 Feb 2024.

Builds on

27 of 56 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  4. 2018Neural Ordinary Differential Equationscited by 3,733
  5. 2020Rethinking Attention with Performerscited by 1,584
  6. 2017Sharp Minima Can Generalize For Deep Netscited by 462
  7. 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 285
  8. 2020How to train your neural ODE: the world of Jacobian and kinetic regularizationcited by 228
  9. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  10. 2017Beyond Finite Layer Neural Networks: Bridging Deep Architectures and Numerical Differential Equationscited by 203
  11. 2021Geometry of the Loss Landscape in Overparameterized Neural Networks: Symmetries and Invariancescited by 125
  12. 2015Path-SGD: Path-Normalized Optimization in Deep Neural Networkscited by 117
15 more
  1. 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 110
  2. 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
  3. 2020Neural Mechanics: Symmetry and Broken Conservation Laws in Deep Learning Dynamicscited by 93
  4. 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
  5. 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
  6. 2019Weight-space symmetry in deep networks gives rise to permutation saddles, connected by equal-loss valleys across the loss landscapecited by 61
  7. 2020STEER: Simple Temporal Regularization For Neural ODEscited by 58
  8. 2023A Study on ReLU and Softmax in Transformercited by 53
  9. 2021Noether's Learning Dynamics: Role of Symmetry Breaking in Neural Networkscited by 47
  10. 2021Sparse Attention with Linear Unitscited by 41
  11. 2015Understanding symmetries in deep networkscited by 17
  12. 2022Visualizing high-dimensional loss landscapes with Hessian directionscited by 16
  13. 2022A Neural ODE Interpretation of Transformer Layerscited by 13
  14. 2019Neural ODEs as the Deep Limit of ResNets with constant weightscited by 10
  15. 2020AdS/Deep-Learning made easy: simple examplescited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 2; 2026: 1.

6 papers.