Neural Mechanics: Symmetry and Broken Conservation Laws in Deep Learning Dynamics

Daniel Kunin, Javier Sagastuy-Breña, Surya Ganguli, Daniel L. K. Yamins, Hidenori Tanaka

Introduction

Understanding the evolution of neural network parameters during training remains a fundamental challenge in deep learning theory. The complexity arises from two primary obstacles: the high dimensionality of the parameter space, often involving millions of variables, and the inherent noise of Stochastic Gradient Descent (SGD) caused by finite batch sizes and discrete time steps. Traditional theoretical approaches often simplify these systems—assuming infinite width or linearity—to make them mathematically tractable. However, these simplifications often fail to capture the behavior of real-world architectures. This work introduces "Neural Mechanics," a framework that applies principles of symmetry and conservation laws from physics to analytically predict the training dynamics of finite, non-linear models like VGG-16.

Theoretical Framework: Symmetries and Conservation Laws

The core of the Neural Mechanics approach lies in identifying intrinsic symmetries within network architectures. A symmetry exists when the loss function remains invariant under specific parameter transformations. For instance, in a Softmax layer, shifting all weights by a constant does not change the output probabilities (Translation Symmetry). Similarly, Batch Normalization layers exhibit Scale Symmetry, and ReLU networks often possess Rescale Symmetry, where scaling weights in one layer can be offset by inversely scaling the next.

Vector fields illustrating the intrinsic symmetries of neural network architectures: (a) Translation, (b) Scale, and (c) Rescale.

By applying a version of Noether’s theorem to these symmetries, the authors prove that every symmetry leads to a "conservation law of learning" under ideal, continuous-time gradient flow. However, real-world training uses discrete steps, which "break" these laws. To bridge this gap, the authors utilize Modified Gradient Flow analysis. This technique derives differential equations that account for the discretization error, effectively modeling the "centrifugal" force that pushes parameters away from the origin and the "centripetal" force of weight decay that pulls them back.

Experimental Validation: Order in the Chaos

The framework was validated using standard VGG-16 architectures trained on the Tiny ImageNet dataset. A key insight of the study is that while individual parameter trajectories appear noisy and chaotic, the aggregate dynamics of specific parameter combinations are remarkably smooth. For example, the squared Euclidean norm of a layer's weights follows the derived analytic expressions with high precision.

Evolution of individual weights (left) versus squared layer norms (right) over training time.

In a VGG-16 model with Batch Normalization, the framework successfully identified and predicted the dynamics of 12,751 distinct parameter combinations. The results demonstrate that training can be viewed as a physical system, often behaving like a driven harmonic oscillator. Depending on hyperparameter settings like learning rate and momentum, the system can exhibit "overdamped" behavior (smooth decay) or "underdamped" behavior (oscillations). This provides a mathematical foundation for hyperparameter tuning, explaining why certain values lead to specific training trajectories.

Conclusion and Future Directions

Neural Mechanics provides a rigorous mathematical foundation for understanding the "black box" of neural network training. By focusing on meaningful parameter combinations rather than individual weights, it offers a way to quantitatively predict learning behavior in large-scale models without stripping away their inherent complexity. Future work aims to extend this framework to adaptive optimizers like Adam and to investigate the relationship between these conservation laws and the generalization capabilities of deep networks.

Summary updated

BibTeX
@inproceedings{kunin2021neural,
  author = {Daniel Kunin and Javier Sagastuy-Breña and Surya Ganguli and Daniel L. K. Yamins and Hidenori Tanaka},
  title = {{Neural Mechanics: Symmetry and Broken Conservation Laws in Deep Learning Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=91mJLuzodBE},
}
Figure