TL;DR
Loss spikes during deep network training are usually blamed on the learning rate hitting the "Edge of Stability." This paper reveals a hidden culprit: weight-norm criticality, an instability triggered when weight decay drives scale-invariant weights (like those before BatchNorm or LayerNorm) too close to zero, causing the loss landscape's sharpness to explode.
What Problem Does This Paper Address?
Training large neural networks—especially modern Large Language Models (LLMs) and deep residual networks—is notoriously plagued by sudden, catastrophic jumps in training loss known as loss spikes.
Most existing theories attribute these spikes to learning-rate criticality, popularized by the "Edge of Stability" (EoS) framework. EoS suggests that spikes occur when the optimizer's step size crosses a threshold dictated by the local sharpness of the loss landscape. However, this perspective doesn't fully explain why changing regularization parameters, like weight decay, can dramatically alter how often a model spikes.
This paper addresses this gap by investigating the joint dynamics of weight decay and normalization layers, uncovering a structural vulnerability in how these two ubiquitous components interact.
Methods
The authors combine rigorous theoretical analysis with empirical probes to map out this instability:
- Theoretical Homogeneity Analysis: The authors mathematically prove that for any scale-invariant component (where rescaling the weights doesn't change the loss—a property introduced by BatchNorm and LayerNorm), shrinking the weight norm by a factor of $\alpha$ amplifies the local Hessian eigenvalues (sharpness) on the order of $\alpha^{-2}$.
- Stability Boundaries ($c^*$ and $c^*_{spike}$): Using this curvature explosion property, they translate the standard EoS curvature threshold into a layer-wise weight-norm stability boundary ($c^*$) and a weight-norm spike boundary ($c^*_{spike}$). This allows researchers to predict instabilities simply by monitoring weight norms.
- PCA Trajectory Visualization: They project high-dimensional training paths onto a 2D principal component space to track how models physically drift toward high-curvature "zero-limit" regions under strong weight decay.
- Module-wise Hessian Decomposition: To find exactly where the instability originates in complex architectures like Transformers, they track the top eigenvector of the Hessian matrix and decompose its energy across different modules (e.g., Attention vs. MLP blocks).
Datasets
The authors validate their framework across a wide spectrum of tasks and datasets:
- A 100B-token corpus used for pretraining a 16-layer, 187M parameter LLaMA-style Transformer.
- CIFAR-100 for training a standard ResNet-50 image classification model.
- MNIST for a fully connected network (FNN) mechanistic probe.
- Synthetic Regression & Next-Token Data: Minimal, highly controlled datasets used to isolate the mathematical mechanics of the sharpness explosion without confounding architectural factors.
Key Insights and Ideas
- The Normalization-Weight Decay Trap: Normalization layers make the model's loss insensitive to the absolute scale of preceding weights. Weight decay, however, blindly penalizes weight magnitude, continuously shrinking these scale-invariant parameters toward zero because there is no gradient counter-force from the loss.
- Curvature Explosion: As these weight norms approach zero, the local loss landscape doesn't stay well-behaved; its sharpness explodes quadratically. The model is effectively dragged into a highly unstable, razor-thin canyon in the loss landscape.
- Localization in MLP Blocks: In Transformers, this sharpness explosion isn't uniform. The authors discovered that Multilayer Perceptron (MLP) blocks heavily dominate the top Hessian eigenvector right before and during a loss spike, meaning they are the primary engine of weight-norm instability.
Key Results
- Weight Decay Directly Induces Spikes: Increasing the weight decay coefficient directly accelerates the frequency and severity of loss spikes across both Transformers and ResNets, as shown in Figure 1.
- Predicting Spikes via Weight Norms: The derived weight-norm spike boundary ($c^*_{spike}$) accurately predicts the onset of training instability. In controlled experiments, whenever a layer's weight norm dipped below $c^*_{spike}$, a loss spike closely followed.
- A Practical Fix for Transformers: Armed with the insight that MLP blocks drive the instability, the authors ran an experiment disabling weight decay exclusively for MLP modules in a 187M Transformer. This simple change significantly stabilized training, reduced loss spikes, and allowed the model to achieve a lower final training loss (dropping from 2.720 to 2.548).
Limitations and Future Work
- Scaling to Frontier Models: While the authors validated their theories on a 187M parameter model, computing full Hessian dynamics and tracking these boundaries on multi-billion parameter frontier LLMs remains computationally prohibitive.
- The Generalization Mystery: Weight decay is primarily used to improve test-set generalization. The paper notes a classic tension: excessive decay causes weight-norm criticality and training spikes, but how these brief periods of instability fundamentally impact final downstream test performance remains an open question.
Summary updated