Abstract
Modern neural networks frequently employ normalization layers, such as Batch Normalization, which induce scale-invariance in the model's parameters. This property creates a complex dependency between weight norm and direction, where the effective learning rate (ELR) is inversely proportional to the squared norm. To disentangle these dynamics, we study scale-invariant networks trained on a unit sphere with a fixed ELR. We identify three fundamental optimization regimes: convergence, chaotic equilibrium, and divergence. Our results show that these regimes characterize the intrinsic properties of the loss landscape and that navigating between them—specifically from chaotic exploration to stable convergence—is essential for achieving optimal generalization.
Introduction
The widespread use of normalization layers has made scale-invariance (SI) a hallmark of modern deep learning. In SI networks, the output remains unchanged if weights are scaled by a constant. However, standard training involves weight decay and gradient updates that cause the weight norm to evolve, thereby continuously shifting the optimization speed (the ELR). This "norm dynamics" often obscures the "direction dynamics," which represent the network's true movement across the loss landscape. By fixing the weight norm on a sphere and maintaining a constant ELR, we isolate the directional properties of the optimization process.
Methodology
We employ Projected Stochastic Gradient Descent (SGD), projecting parameters back onto a unit sphere after each update. By fixing the ELR ($\tilde{\eta}$), we eliminate the confounding effects of variable optimization speeds. We validate our theoretical framework using both a toy mathematical model and empirical tests on standard architectures like ConvNet and ResNet-18, modified to be fully scale-invariant. Experiments are conducted across multiple benchmarks, including CIFAR-10/100, MNIST, and AG News.
The Three Optimization Regimes
Our investigation reveals that optimization behavior is categorized into three distinct regimes based on the ELR value:
- Regime 1: Convergence (Small ELR): In this regime, the training loss decays monotonically toward a minimum. We observe that higher ELRs within this regime lead to flatter minima and improved generalization, supporting the widely held belief in the benefits of large learning rates.
- Regime 2: Chaotic Equilibrium (Medium ELR): The loss stabilizes at a non-zero value and exhibits persistent oscillations. We identify a "Negative Feedback" principle where layers that optimize too quickly experience a decrease in their individual ELR, while slower layers experience an increase. This leads to an equilibrium where all layers eventually move at a shared effective speed.
- Regime 3: Divergence (High ELR): Optimization becomes unstable, resembling a random walk. The model fails to learn features and performs no better than random guessing.
A notable finding is the connection to the "Double Descent" phenomenon: the peak in sharpness (gradient norm) occurs precisely at the transition between the convergence and chaotic equilibrium regimes.
Basin Hopping and Generalization
Regime 2 serves as a "hopping" phase, allowing the model to explore diverse regions of the loss landscape. Fine-tuning experiments demonstrate that starting in Regime 2 and subsequently lowering the ELR (transitioning to Regime 1) allows the model to "drop" into the flattest available basins. This strategy yields superior generalization compared to training entirely within Regime 1.
Discussion and Conclusion
Our work demonstrates that conventional training schedules, such as cosine annealing, implicitly traverse these regimes. The most effective models typically begin in the exploratory Regime 2 and conclude in the convergent Regime 1. While this study focuses on SGD, the principles of layer equilibration and regime transitions provide a robust theoretical intuition for the success of modern optimization practices. Future work will explore the impact of adaptive optimizers like Adam on these scale-invariant dynamics.
Summary updated