Modern deep learning architectures rely heavily on normalization techniques (like Batch Normalization) and Weight Decay (WD) to achieve state-of-the-art performance. Because normalized layers are "scale-invariant"—meaning that multiplying the weights by a constant doesn't change the network's output—the actual magnitude (or norm) of the weights theoretically shouldn't matter for the loss.
However, in practice, the weight norm does matter. It directly affects the "effective learning rate" of the model. While previous research has often assumed that weight norms eventually converge to a fixed "equilibrium" value during training, the underlying mechanics of why or how this happens have remained elusive.
This paper introduces Spherical Motion Dynamics (SMD), a novel framework that models this optimization process as a physical system, explaining exactly how normalized neural networks behave during training with Stochastic Gradient Descent (SGD) and Weight Decay.
The Tug-of-War on a Sphere
To understand the training dynamics of scale-invariant layers, the authors propose treating the optimization process as movement on a hypersphere. During training, there is a constant "tug-of-war" between two forces:
- The Gradient: Pushes the weight norm outward, attempting to grow the weights to minimize the immediate loss.
- Weight Decay: Pulls the weight norm inward, acting as a regularizer.
The authors formally define SMD to describe this movement. They prove that under standard conditions, optimizers like SGD and SGD with Momentum (SGDM) naturally reach a dynamic equilibrium. This equilibrium isn't a static point where weights stop changing; rather, it's a stable state where the weight norm oscillates predictably around a specific theoretical value dictated by the hyperparameters.
Redefining the Step Size: The Angular Update
One of the paper's most significant contributions is the introduction of the Angular Update ($\Delta_t$).
Traditionally, we measure optimization steps using Euclidean distance. However, for scale-invariant layers, Euclidean distance is misleading. Instead, the authors argue that the angle between the weight vector before and after an update ($\Delta_t$) represents the "true" step length on the loss landscape.
Remarkably, the authors demonstrate that in a state of equilibrium, this angular update depends almost entirely on your chosen hyperparameters (learning rate $\eta$, weight decay $\lambda$, and momentum $\alpha$), rather than the specific architecture of the layer. The relationship is approximated as:
$$\Delta_t \approx \sqrt{\frac{2\lambda\eta}{1+\alpha}}$$
Empirical measurements on large-scale benchmarks like ImageNet (using ResNet-50) perfectly align with these theoretical formulas. The angular updates quickly converge to the predicted horizontal asymptotes, proving that the "step length" on the sphere is fixed by the optimizer's configuration.
Momentum and the "Pseudo-Overfitting" Trap
The SMD framework also yields highly practical insights into everyday training phenomena:
- SGDM is drastically faster at stabilizing: The paper proves that SGDM reaches this dynamic equilibrium $\frac{1}{1-\alpha}$ times faster than standard SGD. For a typical momentum value of $\alpha = 0.9$, SGDM stabilizes roughly 10 times faster.
- Explaining "Pseudo-Overfitting": When practitioners drop the learning rate (LR decay) during multi-stage training, the weight norm takes time to adjust to its new, tighter equilibrium. During this transition phase, the angular update can actually increase temporarily. This causes the model to "jump out" of its current local minimum, leading to a sudden drop in test accuracy that looks exactly like overfitting.
To fix this "pseudo-overfitting" trap, the authors propose a simple weight rescaling strategy: when the learning rate is divided by a factor of $k$, the weight norm should simultaneously be divided by $\sqrt[4]{k}$. This trick eliminates the accuracy dip by keeping the angular update consistent with the theoretical ideal, maintaining optimal training dynamics.
Limitations and Future Directions
While SMD provides a robust explanation for SGD and SGDM, the authors note a few areas for future exploration:
- Theoretical Bounds: The mathematical bound for the bias term in the angular update is currently looser than what is observed empirically. Tightening this bound remains an open challenge.
- Adaptive Optimizers: The current framework focuses heavily on standard and momentum-based SGD. Extending SMD to fully explain the dynamics of adaptive optimizers like Adam is a natural and highly anticipated next step.
- Landscape Geometry: The analysis assumes the unit gradient norm changes smoothly. Investigating how "sharp" or "flat" regions of the loss landscape interact with Spherical Motion Dynamics could unlock deeper insights into model generalization.
Summary updated