TL;DR
This paper reveals that neural network training dynamics are heavily influenced by a small fraction of data outliers containing "opposing signals"—large-magnitude features that pull gradients in opposite directions. The authors show that the network's struggle to balance these conflicting signals naturally explains several mysterious deep learning phenomena, including progressive sharpening, the "edge of stability," and why optimizers like Adam outperform standard SGD.
The Problem: Unexplained Training Dynamics
Deep learning optimization exhibits several intriguing, poorly understood phenomena that defy classical optimization theory. For example, networks often undergo "progressive sharpening" (where the loss landscape becomes increasingly steep) until they reach the "edge of stability" (where the loss wildly oscillates but continues to globally decrease). Additionally, phenomena like "grokking" (generalizing long after overfitting) and the sheer superiority of adaptive optimizers like Adam over Stochastic Gradient Descent (SGD) remain active areas of research.
Typically, these phenomena are studied in isolation. This paper asks a unifying question: Is there a single, underlying structural cause in natural data that drives these bizarre neural network training dynamics?
Methodology
To investigate this, the authors track the loss of individual training points at every step of Gradient Descent (GD) and SGD.
- Empirical Tracking: Instead of just looking at average batch loss, they isolate the specific training examples that exhibit the most extreme positive and negative changes in loss from step to step.
- Theoretical Modeling: They complement their empirical findings with a mathematical analysis of a two-layer linear network trained on a simplified dataset containing opposing signals, proving that these signals inevitably lead to progressive sharpening.
- Optimizer Ablation: To prove their hypothesis about why Adam works so well, they design a proof-of-concept optimizer ("SplitSGD") that explicitly isolates and manages the gradients of these outlier signals, comparing its trajectory to Adam and standard SGD.
The experiments span vision (CIFAR-10 using ResNets, VGG, and ViTs), language (OpenWebText using GPT-2), and synthetic datasets designed to perfectly isolate specific features.
Key Insights and Ideas
- The "Opposing Signals" Phenomenon: Natural data contains heavy-tailed outliers with large, dominant features that correlate with multiple conflicting labels. For example, a bright blue sky is a massive visual feature. Early in training, the network uses "sky" as a crutch to predict "plane." However, this creates massive errors for images of "birds" that also have a sky background. These are opposing signals.
- The Narrow Valley: Because these features are so large, the network quickly falls into a narrow valley in the loss landscape where it tries to perfectly balance the opposing gradients (e.g., balancing the "sky = plane" and "sky = bird" updates).
- The Cause of the Edge of Stability: As the network amplifies its sensitivity to these features, the valley sharpens. The network begins to oscillate across the valley floor. Loss on the "plane" group spikes, the network corrects, and then loss on the "bird" group spikes. Eventually, this oscillation grows so violent that the overall training loss spikes, perfectly explaining the "edge of stability."
- Oscillation as a Feature, Not a Bug: This violent oscillation acts as a natural regularizer. It forces the network to eventually abandon "simple" spurious features (like background color) and learn more complex, generalizable features. This provides a mechanistic explanation for "simplicity bias" and "grokking."
- Why Adam Beats SGD: Adam succeeds because it is perfectly built to handle opposing signals. By normalizing step sizes by parameter-wise curvature, Adam takes smaller steps in these highly sensitive, oscillating directions. It intentionally avoids steepest descent (which would plunge it into the walls of the narrow valley) and uses dampening to smooth the trajectory.
Key Results
- Visualizing the Chaos: The authors successfully isolated pairs of opposing signals in both vision (e.g., wheels meaning "car" vs. "truck") and language (e.g., predicting whether punctuation comes before or after a quotation mark). They showed that the loss on these specific tiny subsets of data oscillates wildly, completely dominating the underlying gradient.
- Sharpness Concentrates Early: The paper demonstrates that this problematic sharpness (curvature) concentrates overwhelmingly in the very first layers of vision models (first convolutional layer) and the embedding layer of Transformers.
- SplitSGD Matches Adam: By creating a simple variant of SGD that applies a fixed step size only to the top 10-25% of gradients (the opposing signals) and standard SGD to the rest, the authors matched Adam's performance on ResNet-110 and GPT-2. This proves that managing this small fraction of outliers is the primary reason Adam succeeds where SGD fails.
- Theoretical Proof: The authors mathematically proved that in a simple linear model, opposing signals cause an initial decrease in sharpness, followed by a linear increase in sharpness, perfectly mirroring empirical observations of progressive sharpening.
Limitations and Future Work
The authors acknowledge that defining exactly what constitutes a "feature" or an "outlier" remains somewhat subjective and relies on visual inspection or heuristic thresholds (like max step-to-step loss change). Future directions include developing algorithmic approaches to automatically cluster and identify opposing signals (e.g., via gradient alignment).
A major unresolved question is whether mitigating the influence of these outliers is strictly necessary for better optimization, or if the instability they cause is actually a crucial mechanism that allows neural networks to escape bad minima and generalize so well.
Summary updated