An Equivariance Toolbox for Learning Dynamics

Yongyi Yang, Liu Ziyin

TL;DR

This paper introduces a unified "toolbox" for understanding how symmetries and equivariances in neural network architectures influence their learning dynamics. It extends classical physics-inspired methods to provide coupled first- and second-order constraints on gradients and Hessians, offering new insights into optimization geometry and implicit biases.

What Problem Does This Paper Address?

Deep learning theory often leverages symmetries and equivariances in neural networks to explain their behavior. However, existing analyses are typically problem-specific, focusing on first-order effects like conservation laws. The implications for second-order structure, such as the curvature of the loss landscape (Hessian), remain less understood. This paper aims to bridge this gap by developing a general framework that unifies and extends these analyses to capture both first- and second-order dynamics, and to handle a broader range of transformations beyond simple symmetries.

Methods

The core of the paper is a general equivariance framework that formalizes the relationship between parameter transformations and output transformations. Given a model $f$ and transformations $H$ (on parameters) and $G$ (on outputs), the framework defines an $(H,G)$-equivariance if $f(H(\theta, \lambda)) = G(f(\theta), \lambda)$.

The authors derive two key sets of identities:

  • First-order identities: These unify existing results like Noether's conservation laws (for symmetries) and implicit bias relations (for homogeneity) into a single identity. This identity relates the gradient of the loss to the characteristic directions induced by the transformations.
  • Second-order identities: These provide structural predictions about the Hessian of the loss. They constrain how the Hessian acts along transformation-induced directions, offering insights into curvature, sharpness, and the alignment of gradients with Hessian eigenspaces.

The framework is designed to handle both continuous (smoothly parameterized) and discrete transformations.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Unified Framework: The paper elegantly unifies disparate theoretical results (Noether's laws, homogeneity-based implicit bias) under a single, general equivariance framework. This provides a more coherent understanding of why these phenomena occur.
  • Beyond First-Order: The most significant contribution is the extension to second-order dynamics. This allows for direct predictions about the loss landscape's curvature, which is crucial for understanding modern deep learning phenomena like progressive sharpening and flat minima.
  • Discrete Transformations Matter: The framework explicitly handles discrete symmetries (like permutations or sign flips), which are common in neural networks but often overlooked in continuous symmetry analyses. This leads to algebraic constraints on fixed-point sets.
  • Equivariance as a Lens: The paper demonstrates how to translate abstract transformation structures (like homogeneity or mirror symmetry) into concrete, testable predictions about the gradient and Hessian, offering a powerful tool for analyzing model behavior.

Key Results

The paper presents theoretical identities (Theorem 1 for continuous, Theorem 2 for discrete equivariances) that constrain the gradient and Hessian of the loss function based on the model's equivariance properties.

  • First-Order: The framework recovers known conservation laws for symmetries and implicit bias relations for homogeneity. For example, for symmetries, it shows that the gradient is orthogonal to symmetry-generated directions. For homogeneity, it yields Euler-type relations.
  • Second-Order: The identities provide concrete structural predictions about the Hessian. For instance, in homogeneous networks, they predict that the gradient tends to align with dominant curvature directions, explaining why optimization often occurs in low-dimensional subspaces. For last-layer transformations, they connect parameter-space curvature to output-space geometry, potentially explaining phenomena like neural collapse. For discrete symmetries, they predict that the Hessian block-diagonalizes according to the symmetry's eigenspaces.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Training-Dependent Refinements: The current identities are largely agnostic to the specific training setting (optimizer, learning rate, data distribution). Future work should integrate these identities with concrete training models to derive more quantitative predictions about how training dynamics shape curvature and sharpness.
  • Local and Emergent Structure: The framework primarily focuses on global equivariances. However, realistic training might exhibit local or approximate equivariances, especially near specific solutions. Developing methods to characterize and validate these emergent equivariances would be valuable.
  • Practical Application: While the identities are universal, applying them to derive sharp predictions for specific learning problems requires additional modeling choices.

Summary updated

BibTeX
@inproceedings{yang2026equivariance,
  author = {Yongyi Yang and Liu Ziyin},
  title = {{An Equivariance Toolbox for Learning Dynamics}},
  booktitle = {DeLTa @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=056l1W1Rza},
}
Figure