[Paper Review] Neural Mechanics: Symmetry and Broken Conservation Laws in Deep Learning Dynamics
This paper introduces a symmetry-based theoretical framework that identifies conserved parameter combinations in deep neural networks under gradient flow, deriving exact analytic solutions for learning dynamics at finite learning rates. By modeling finite learning rates and stochasticity via modified gradient flow, it predicts and validates precise dynamics of layer-wise norms in VGG-16 on Tiny ImageNet, demonstrating that symmetries enable exact, dataset-agnostic analytical control over complex training dynamics without simplifying architectural assumptions.
Understanding the dynamics of neural network parameters during training is one of the key challenges in building a theoretical foundation for deep learning. A central obstacle is that the motion of a network in high-dimensional parameter space undergoes discrete finite steps along complex stochastic gradients derived from real-world datasets. We circumvent this obstacle through a unifying theoretical framework based on intrinsic symmetries embedded in a network's architecture that are present for any dataset. We show that any such symmetry imposes stringent geometric constraints on gradients and Hessians, leading to an associated conservation law in the continuous-time limit of stochastic gradient descent (SGD), akin to Noether's theorem in physics. We further show that finite learning rates used in practice can actually break these symmetry induced conservation laws. We apply tools from finite difference methods to derive modified gradient flow, a differential equation that better approximates the numerical trajectory taken by SGD at finite learning rates. We combine modified gradient flow with our framework of symmetries to derive exact integral expressions for the dynamics of certain parameter combinations. We empirically validate our analytic expressions for learning dynamics on VGG-16 trained on Tiny ImageNet. Overall, by exploiting symmetry, our work demonstrates that we can analytically describe the learning dynamics of various parameter combinations at finite learning rates and batch sizes for state of the art architectures trained on any dataset.
Motivation & Objective
- To develop a theoretical foundation for deep learning dynamics that avoids simplifying assumptions like infinite width or linear activations.
- To identify and exploit intrinsic symmetries in neural network architectures that impose geometric constraints on gradients and Hessians.
- To derive exact analytic expressions for the dynamics of specific parameter combinations under realistic training conditions, including finite learning rates and stochastic batches.
- To validate these analytic predictions empirically on state-of-the-art models like VGG-16 trained on real-world datasets such as Tiny ImageNet.
- To demonstrate that symmetry-induced conservation laws in gradient flow are broken by finite learning rates, leading to solvable ODEs for key dynamics.
Proposed method
- Identify continuous differentiable symmetries in the loss function that leave the network's output invariant under parameter transformations.
- Use Noether’s theorem analog to prove that each such symmetry implies a conservation law in the continuous-time limit of stochastic gradient descent (SGD).
- Construct a modified gradient flow model that incorporates finite learning rates, weight decay, momentum, and stochastic mini-batches to better approximate real SGD trajectories.
- Derive a system of ordinary differential equations (ODEs) for conserved parameter combinations under the modified flow, which break the original conservation laws.
- Solve these ODEs analytically to obtain exact integral expressions for dynamics such as layer-wise squared norms and their differences.
- Validate predictions against empirical training trajectories of VGG-16 on Tiny ImageNet under various hyperparameters (learning rate, weight decay, batch size, batch norm).
Experimental results
Research questions
- RQ1Which parameter combinations in deep neural networks exhibit simplified, analyzable dynamics due to architectural symmetries?
- RQ2How do finite learning rates and stochastic mini-batches break the conservation laws derived from continuous symmetries in gradient flow?
- RQ3Can a modified gradient flow model accurately capture the numerical trajectory of SGD with realistic hyperparameters?
- RQ4Can exact analytic solutions be derived for the dynamics of specific parameter combinations (e.g., layer norms) under finite learning rates?
- RQ5To what extent do the theoretical predictions match empirical training dynamics in large-scale models like VGG-16 on real datasets?
Key findings
- The paper identifies symmetries in deep networks that lead to exact conservation laws in the continuous-time limit of SGD, analogous to Noether’s theorem in physics.
- Finite learning rates break these conservation laws, transforming conserved quantities into solutions of solvable ODEs under a modified gradient flow model.
- Theoretical predictions for layer-wise squared norms and their differences match empirical training trajectories of VGG-16 on Tiny ImageNet with high accuracy across multiple learning rates and weight decay values.
- The framework successfully predicts dynamics for both SGD and Momentum optimizers, including per-neuron, spherical, and hyperbolic dynamics, across models with and without batch normalization.
- The derived ODEs for conserved combinations (e.g., |θ|², |θ₁|² - |θ₂|²) are validated empirically with black dashed lines in figures matching colored empirical curves across all tested hyperparameters.
- The approach enables exact analytical control over learning dynamics without assuming linear networks, infinite width, or simplified architectures, offering a new foundation for understanding deep learning dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.