TL;DR
Practitioners routinely swear by weight decay for "stabilizing" neural network training, yet the exact physics behind this folklore has remained murky. By modeling gradient descent with weight decay as an underdamped harmonic oscillator, the authors discover that weight decay doesn't actually stop models from training on the ragged edge of instability—instead, it acts like a shock absorber in CNNs and triggers a dramatic phase transition in MLPs that forces the loss landscape to flatten out, ultimately taming how the network searches through function space.
What Problem Does This Paper Address?
Historically, weight decay was treated as a static $L_2$ penalty to keep weights small and prevent overfitting. Today, especially with AdamW, it is primarily used as a dynamic stabilizer during pretraining. Meanwhile, optimization researchers discovered that neural networks don't actually glide down smooth, convex valleys. Under full-batch gradient descent with learning rate $\eta$, the loss curvature—measured by sharpness (the largest eigenvalue of the loss Hessian)—steadily rises ("progressive sharpening") until it hits an instability ceiling of $2/\eta$. Here, training enters the Edge of Stability (EoS): weights bounce wildly back and forth across steep canyon walls while the overall loss somehow keeps dropping.
Naively, adding weight decay $\gamma$ should just shift this ceiling slightly down to $\frac{2}{\eta} - \gamma$. The authors ask: Is that actually what happens, and how does weight decay truly stabilize training?
Methods
To see what happens at the EoS, the authors build upon classical self-stabilization theory and derive a reduced two-dimensional dynamical system around a reference point in parameter space. They track two local directions: the steepest wall of the canyon (maximum sharpness eigenvector) and the direction along the canyon floor where walls get steeper (the gradient of sharpness, $\nabla S$).
What is novel here is how they incorporate weight decay $\gamma$ into this picture:
- Local Friction: Locally, weight decay transforms the chaotic EoS bouncing into an underdamped harmonic oscillator, introducing an exponential damping factor proportional to $\gamma$.
- Global Interaction: Because weight decay pulls parameters toward the origin rather than just acting locally, it introduces a non-local term: $c_y = \langle \theta^*, \nabla S \rangle$, measuring global alignment between the parameter vector itself and the direction of increasing sharpness.
- Function-Space Link: Using Weyl’s inequality, they mathematically connect this parameter-space curvature directly to the Neural Tangent Kernel (NTK)—the matrix governing how predictions evolve in function space.
Datasets
cifar10-5k: A 5,000-sample subset of CIFAR-10 used to train small ReLU MLPs and CNNs with full-batch gradient descent and MSE loss (a standard setup in EoS literature due to the heavy cost of computing exact Hessian eigenvalues).- Analytic Toy Objective: A dataset-free mathematical testbed from prior self-stabilization literature used to validate their oscillator equations against exact iterates.
- No new benchmarks are introduced.
Key Insights and Ideas
- Low curvature doesn't mean you've left the Edge of Stability: Even when weight decay pushes sharpness far below the classical $\frac{2}{\eta} - \gamma$ threshold, the network still exhibits non-monotonic loss steps and oscillating gradients. You cannot diagnose optimizer stability just by checking if sharpness is low!
- Global position dictates local geometry: Optimization is usually analyzed locally, yet the MLP phase transition happens because weight decay couples local curvature to where the parameter vector sits globally. When global alignment $c_y$ crosses a critical threshold ($c_y^{\text{crit}} = \frac{\alpha}{\gamma} + \gamma$), the EoS limit cycle collapses to a much flatter region.
- Why Normalization Changes the Game: In scale-invariant networks (or MLPs with LayerNorm), mathematical symmetries force $c_y$ to stay negative, preventing the limit-cycle collapse and allowing higher weight decay without sudden phase shifts.
- Parameter flatness buys function-space stability: As training error shrinks, the Hessian closely approximates the empirical NTK. Lowering the sharpness ceiling directly caps the NTK’s maximum eigenvalue, curbing wild swings in model predictions and encouraging better feature alignment.
Key Results
- Delayed EoS & Slower Sharpening: Across both MLPs and CNNs, increasing $\gamma$ from $10^{-5}$ to $0.02$ steadily slows progressive sharpening, delaying the onset of EoS from ~2,000 steps to over 10,000 steps in MLPs (and ~1,500 to >5,000 in CNNs).
- Architecture-Dependent Split:
- In CNNs ($\eta = 0.01$, theoretical ceiling $200$), $\gamma = 0.01$ and $0.02$ act purely as dampers, visiblydecaying sharpness oscillations right onto the expected $\approx 200$ line.
- In MLPs ($\eta = 0.02$), a benign phase transition occurs: instead of stabilizing at $\frac{2}{\eta} - \gamma = 99.98$ when $\gamma = 0.02$, sharpness plateaus way down at $\approx 80$ without hurting test loss.
- NTK Compression: Across a weight decay sweep on MLPs, the empirical NTK’s top eigenvalue drops in lockstep with sharpness—falling from ~95 at $\gamma = 10^{-5}$ to under 40 past $\gamma = 10^{-2}$.
- AdamW Extension: For full-batch AdamW ($\beta_1 = 0.9$) with a frozen preconditioner, they show the preconditioned sharpness boundary shifts to $\frac{38}{\eta} - 19\gamma$, matching small-$\gamma$ experiments and dropping below it at large $\gamma$.
Limitations and Future Work
- Small Scale: Computing exact top Hessian eigenvalues and third-order sharpness gradients requires expensive Hessian-vector products ($O(d \cdot n)$ per step), restricting experiments to small MLPs/CNNs and 5,000 data points.
- Full-Batch Only: Because the underlying mathematical framework for self-stabilization hasn't yet been solved for stochastic noise, the analysis is restricted to full-batch gradient descent.
- Future Directions: Extending this oscillator and global-alignment framework to mini-batch SGD and fully dynamic adaptive optimizers (like AdamW in the wild), alongside finding cheap sharpness proxies for large-scale pretraining.
Summary updated