In the world of deep learning, normalization layers like Batch Normalization (BN) are ubiquitous. They make neural networks scale-invariant, meaning if you multiply the weights by a constant, the network's output doesn't change. While this sounds like a mathematical curiosity, it fundamentally alters how these networks learn.
In a paper presented at NeurIPS 2022, researchers from HSE University and AIRI dive deep into the "intrinsic" geometry of these networks. By forcing training to happen directly on a unit sphere with a fixed step size, they discovered that training doesn't just "work" or "fail"—it exists in three distinct physical regimes.
The Problem: The Moving Target of Effective Learning Rate
When you train a network with Batch Normalization, the "norm" (length) of your weight vector grows or shrinks, which silently changes your Effective Learning Rate (ELR). If the weights grow large, the same gradient step becomes relatively smaller, slowing down training.
Most previous research studied this "moving target" of varying ELR. However, this complexity obscures the actual structure of the loss landscape. The authors ask: What happens if we strip away the changing norm and train with a constant ELR directly on the unit sphere? By isolating the "direction dynamics" from the "norm dynamics," they aim to uncover the fundamental properties of how normalized networks optimize.
Methodology
The authors employ Projected Stochastic Gradient Descent (SGD). After every gradient update, they project the weights back onto the unit sphere, ensuring the total norm remains constant. This allows them to fix the ELR throughout the entire training process.
To ground their empirical findings on standard image classification benchmarks (like CIFAR-10/100 with ConvNets and ResNets), they also developed a theoretical toy model. This allowed them to mathematically prove the existence of the regimes and derive "equilibrium values" for the learning process.
Key Results: The Three Regimes of Training
By training scale-invariant neural networks directly on a unit sphere with a fixed ELR, the researchers successfully categorized training into three distinct phases based on the ELR value ($\tilde{\eta}$).
- Regime 1: Convergence (Small ELR): The loss decays monotonically toward a global minimum. Crucially, higher ELRs in this regime result in flatter optima and lower test error, confirming the "large learning rate" advantage.
- Regime 2: Chaotic Equilibrium (Medium ELR): The loss never reaches zero; instead, it oscillates around a stable, non-trivial value. Here, the model "hops" along the walls of the loss landscape. The authors showed that in this state, the effective step sizes of all layers equalize.
- Regime 3: Divergence (High ELR): The step size is so large that the model cannot "see" the landscape features, resulting in behavior indistinguishable from a random walk.
Key Insights: Navigating the Loss Landscape
Understanding these regimes provides a new lens to understand how common tricks, like learning rate schedules, actually navigate the loss landscape.
- The Sharpness Peak: The transition between the convergence regime and the chaotic regime isn't smooth. There is a "bottleneck" of high sharpness (measured by the gradient norm). Only training with a sufficiently small ELR allows the model to "squeeze" through this bottleneck into the low-loss convergence region.
- Basin Hopping: In the convergence regime, different ELRs don't just lead to different points in the same valley; they lead to entirely different basins.
Higher ELRs allow the model to skip over sharp, narrow minima and land in flatter, more robust regions that generalize better to unseen data.
- The "Why" of Cosine Schedules: The paper suggests that successful learning rate schedules (like cosine decay) work by starting the model in the chaotic regime—where it "hops" along the walls of the landscape to find flat areas—and then lowering the LR to let it "drop" into the best available minimum.
- The Negative Feedback Principle: In the "Chaotic Equilibrium" regime, the system naturally balances itself. If one layer has a very high effective step size, its individual ELR tends to decrease in the next step, and vice versa.
Limitations and Future Work
While the paper provides a robust framework, it has a few limitations. The study primarily uses SGD, leaving a full analysis of adaptive optimizers (like Adam) on the sphere for future work. Additionally, the authors acknowledge they only consider scale-invariance, whereas neural networks may have other symmetries (like permutation invariance) that could further complicate the intrinsic domain.
Ultimately, by reframing training as a journey across a sphere, this paper provides a much-needed map for the often-counterintuitive world of deep learning optimization.
Summary updated