Understanding how neural networks evolve during training is crucial for improving efficiency and robustness. Researchers often observe distinct learning regimes—such as "lazy training" or "grokking"—but lack a rigorous mathematical framework to determine when two training processes are fundamentally the same or different.
Standard metrics fall short for two main reasons. First, loss curves are too coarse; two models can exhibit identical loss trajectories while traversing the parameter space in completely different ways. Second, neural networks possess permutation symmetry. Swapping two neurons in a hidden layer leaves the network's function unchanged, but the raw parameter trajectories will look entirely different, making direct comparison impossible.
To address this, researchers have introduced a novel framework leveraging Koopman operator theory and topological conjugacy—a concept from dynamical systems theory—to formally define and identify dynamical equivalence in neural network training.
The Koopman Framework for Training Dynamics
Instead of analyzing the nonlinear and messy evolution of raw parameters, the authors utilize the Koopman operator to look at how functions of those parameters evolve.
As illustrated above, this approach "lifts" the nonlinear dynamics of the state space into an infinite-dimensional function space where the evolution becomes linear.
Using data-driven methods like Koopman Mode Decomposition (KMD), the framework approximates the eigenvalues of this linear operator. These eigenvalues represent the fundamental timescales and stability of the training process. Crucially, because these eigenvalues are invariant to permutations of the neurons, they serve as a unique "fingerprint" for the training dynamics. By comparing the eigenvalue distributions of different training runs using the Wasserstein distance, researchers can determine if the dynamics are topologically conjugate (equivalent).
Key Insights and Results
The authors validated their framework across several standard benchmarks, including MNIST, CIFAR-10, and modular arithmetic datasets, uncovering several critical insights into neural network training.
Validating Equivalence: OMD vs. OGD
To prove the framework works, the authors tested it on a known equivalence between Online Mirror Descent (OMD) and Online Gradient Descent (OGD).
Despite OMD and OGD exhibiting vastly different parameter trajectories and loss curves (Panels A and B), their Koopman eigenvalues perfectly overlap in the complex plane (Panel C, red triangles and black dots). In contrast, a non-equivalent baseline method (BM, blue pentagons) shows a distinctly different spectral signature. This confirms the framework's ability to see past superficial differences and identify true dynamical equivalence.
Width Changes the "Nature" of Learning
By focusing on the Koopman spectrum, the authors bypassed the "label switching" problem to compare models of different widths. In Fully Connected Networks (FCNs), they found that increasing the hidden layer size from 5 to 40 doesn't just improve performance—it fundamentally alters the training dynamics. The narrow ($h=5$) and wide ($h=40$) models were found to be non-conjugate, suggesting a phase transition in how the network navigates the loss landscape.
Architecture-Specific Timelines
When analyzing Convolutional Neural Networks (CNNs) like LeNet and ResNet-20, the framework revealed that the first 100 steps of training are the most dynamically unique. While both architectures show a transition in their dynamics around the same time (approximately 700 iterations), their internal dynamics remain non-conjugate. This implies that while the timing of learning phases might be universal across models, the underlying mechanisms are architecture-specific.
An Early Warning for Grokking
"Grokking" is a phenomenon where a model suddenly generalizes long after it has perfectly memorized the training data. In Transformers trained on modular arithmetic, the Koopman framework could distinguish between models that would eventually grok and those that wouldn't—based solely on the first 100 iterations. Models destined to grok exhibited complex conjugate pairs outside the unit circle, indicating unstable dynamics fundamentally different from the stable dynamics of non-grokking models.
Limitations and Future Directions
While powerful, the framework relies on numerical approximations (like KMD), meaning results depend on the choice of observable functions and hyperparameters. Additionally, computing the Koopman operator for massive modern models, such as Large Language Models (LLMs), remains computationally challenging due to the sheer number of parameters.
Despite these hurdles, this Koopman-based perspective opens exciting new doors. Future applications could include "meta-learning" optimizers, discovering entirely new classes of training algorithms by searching for specific spectral properties, or facilitating "model matching" to find smaller architectures that perfectly mimic the training dynamics of larger, successful models.
Summary updated