mlsanityData to 14 Oct 2026

Transformative or Conservative? Conservation laws for ResNets and Transformers

arXiv 2506.06194 ↗First posted 6 Jun 2025cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

While conservation laws in gradient flow training dynamics are well understood for (mostly shallow) ReLU and linear networks, their study remains largely unexplored for more practical architectures. This paper bridges this gap by deriving and analyzing conservation laws for modern architectures, with a focus on convolutional ResNets and Transformer networks. For this, we first show that basic building blocks such as ReLU (or linear) shallow networks, with or without convolution, have easily expressed conservation laws, and no more than the known ones. In the case of a single attention layer, we also completely describe all conservation laws, and we show that residual blocks have the same conservation laws as the same block without a skip connection. We then introduce the notion of conservation laws that depend only on a subset of parameters (corresponding e.g. to a pair of consecutive layers, to a residual block, or to an attention layer). We demonstrate that the characterization of such laws can be reduced to the analysis of the corresponding building block in isolation. Finally, we examine how these newly discovered conservation principles, initially established in the continuous gradient flow regime, persist under discrete optimization dynamics, particularly in the context of Stochastic Gradient Descent (SGD).

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 23 of its 33 references that are in the map. First posted on arXiv 6 Jun 2025.

Builds on

23 of 33 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  6. 2018Neural Ordinary Differential Equationscited by 3,779
  7. 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 763
  8. 2017The Implicit Bias of Gradient Descent on Separable Datacited by 655
  9. 2019Making Convolutional Networks Shift-Invariant Againcited by 391
  10. 2018On the Optimization of Deep Networks: Implicit Acceleration by Overparameterizationcited by 284
  11. 2020Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Losscited by 268
  12. 2018A Convergence Analysis of Gradient Descent for Deep Linear Neural Networkscited by 184
11 more
  1. 2018Gradient descent aligns the layers of deep linear networkscited by 182
  2. 2018Algorithmic Regularization in Learning Deep Homogeneous Models: Layers are Automatically Balancedcited by 177
  3. 2023Handbook of Convergence Theorems for (Stochastic) Gradient Methodscited by 163
  4. 2017Dissecting Adam: The Sign, Magnitude and Variance of Stochastic Gradientscited by 139
  5. 2019Learning deep linear neural networks: Riemannian gradient flows and convergence to global minimizerscited by 61
  6. 2018Convergence and Dynamical Behavior of the ADAM Algorithm for Non-Convex Stochastic Optimizationcited by 49
  7. 2023Abide by the Law and Follow the Flow: Conservation Laws for Gradient Flowscited by 45
  8. 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
  9. 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
  10. 2019Equi-normalization of Neural Networkscited by 16
  11. 2024Keep the Momentum: Conservation Laws beyond Euclidean Gradient Flowscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.