Introduction
Deep neural networks exhibit a remarkable property: when trained on datasets containing label noise, they prioritize learning clean, consistent patterns before eventually memorizing random noise. This "clean-priority" instinct results in a characteristic U-shaped test error curve, where performance improves initially but degrades as the model begins to overfit the noise. This behavior is the fundamental justification for early stopping, a ubiquitous regularization technique in modern machine learning.
While this phenomenon has been widely observed, its theoretical underpinnings have remained elusive. This paper provides a rigorous explanation by analyzing the dynamics of sample-wise gradients during the early stages of training.
The Mechanism of Gradient Alignment
The core of the paper's argument lies in how different types of data influence the model's weight updates. By examining two-layer linear and ReLU networks, the authors demonstrate two key effects:
- The Agreement Effect: At initialization, gradients from samples belonging to the same class naturally align. Because clean samples share underlying structural features, their gradients point in similar directions, reinforcing each other during the summation process of gradient descent.
- Noise Cancellation: In contrast, noisy labels—which are essentially random—produce gradients that do not align with the clean data or with each other. When these gradients are summed, they tend to cancel out, significantly reducing their impact on the early learning trajectory.
Dominance and Learning Dynamics
Assuming the noise level is below 50%, the sheer volume of aligned clean gradients overwhelms the scattered noisy ones. Consequently, the initial updates of the network are almost exclusively driven by the clean subset of the data. This is why the model essentially "sees" only the signal in the early stages.
However, this dominance is self-limiting. As the model successfully learns the clean patterns, the residual error for those samples decreases, causing their corresponding gradients to shrink. Meanwhile, the noisy samples, which the model has not yet learned, maintain large residuals and large gradients. Eventually, a "turning point" is reached where the noisy gradients become the dominant force, leading the model to memorize the noise and causing the test error to rise.
Experimental Validation
The authors validated these theoretical insights across synthetic datasets, MNIST, and CIFAR-10. A key piece of evidence is the distribution of angles between gradients, which confirms the alignment theory.
As shown in Figure 5, clean gradients consistently cluster at small angles, indicating high alignment. Noisy gradients, however, cluster at much larger angles, effectively "pulling" in the opposite direction or canceling out. This clear separation in gradient space explains why the model can effectively filter signal from noise during the early epochs.
Conclusion
This research clarifies why early stopping is so effective: neural networks are architecturally biased toward learning coherent patterns first. By mathematically formalizing the "agreement" and "cancellation" effects of gradients, the authors provide a robust framework for understanding the early-stage dynamics of deep learning. While the study focuses on random noise, it sets the stage for future research into systematic biases and feature learning in overparameterized models.
Summary updated