Mechanism of clean-priority learning in early stopped neural networks of infinite width

Chaoyue Liu, Amirhesam Abedsoltan, Mikhail Belkin · Submission to ICLR 2024 · Rejected

TL;DR

When trained on data corrupted by random label noise, neural networks exhibit "clean-priority learning"—they learn true patterns first before memorizing noise, forming a classic U-shaped test error curve. By analyzing infinitely wide neural networks, this paper reveals the geometric mechanism behind this phenomenon: noisy gradients are directly canceled out by clean gradients in early training, but this protection gradually fades as clean residuals shrink.

What Problem Does This Paper Address?

In deep learning with noisy labels, early stopping is widely used to prevent overfitting. Practitioners and researchers have repeatedly observed that test error initially drops to levels significantly better than the training noise rate before eventually deteriorating.

Prior work hypothesized that clean samples represent "simpler" patterns that networks naturally learn first. However, a fundamental mystery remained: How does gradient descent distinguish clean samples from noisy ones without access to ground-truth labels, and why does this immunity eventually collapse? This paper provides a theoretical and geometric explanation for this phenomenon.

Methods

The authors analyze the learning dynamics in the infinite-width limit ($m \to \infty$), where the network enters the "transition to linearity" (Neural Tangent Kernel regime) and input derivatives $\nabla h(w; x)$ remain constant throughout training:

  1. Gradient Direction Decomposition: The sample-wise gradient factors into a residual scalar and an architectural derivative: $$\nabla l_i(w) = (f(w; x_i) - y_i) \nabla h(w; x_i)$$ The authors prove that inputs from the same class produce aligned derivative vectors $\nabla h$. Because label corruption flips the label $y$, it flips the sign of $(f(w; x) - y)$, causing noisy sample gradients to point in the opposite direction ($\approx 180^\circ$) relative to clean sample gradients.

  2. Cancellation and Effective Dynamics: Because clean samples outnumber noisy samples ($\delta < 0.5$), the sum of noisy gradients simply cancels out a fraction of the clean gradients. In early training, gradient descent behaves identically to training on ground-truth clean data, just with an effectively reduced step size.

  3. Multi-Class Generalization: The authors extend the theory to $C$-class problems by decomposing cross-entropy loss into single-logit gradients $\nabla l_c(w) = (f_c(w; x) - y_c) \nabla h_c(w; x)$. A sample corrupted to a wrong class is still "clean" (negative) for the remaining $C-2$ classes, strengthening clean dominance.

Datasets

The authors validate their theoretical insights using:

  • Synthetic 2D Data: Two well-separated 2D clusters used to visualize gradient angles and derivative alignments.
  • MNIST: Tested on binary subsets ("0" vs. "1", "7" vs. "9") with label noise $\delta \in [0.3, 0.4]$, as well as full 10-class classification with a CNN ($\delta = 0.3$).
  • CIFAR-10: Evaluated with a ResNet under 10-class classification with label noise $\delta = 0.4$.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Gradient Opposites: Label noise does not scatter gradients randomly; it directly inverts them. Gradients of noisy samples point almost exactly opposite to clean samples in the same ground-truth class.
  • Majority Veto via First-Order Info: The network doesn't "know" which samples are clean; the clean majority naturally overpowers and absorbs the opposing noisy gradients. The GD update direction strictly aligns with the clean data segment.
  • The Self-Defeating Engine of Early Learning:
  • As clean samples are fitted, their residuals $|f(w; x) - y|$ shrink, reducing the magnitude of clean gradients.
  • Simultaneously, noisy samples are pushed away from their corrupted targets toward their true labels, causing noisy residuals to grow.
  • The ratio of clean-to-noisy gradient magnitudes diminishes monotonically toward $1.0$, which coincides directly with the early stopping point. Once parity is reached, the model starts memorizing noisy samples, degrading test performance.

Key Results

  • Theoretical Guarantee: Lemma 4.2 proves that under gradient cancellation, parameter updates follow $w_{t+1} = w_t - \eta'_t \nabla L(w_t; \hat{\mathcal{D}})$, updating solely along the clean ground-truth gradient with $\eta'_t = \frac{1-\alpha_t}{1+\alpha_t} \eta$.
  • Monotonic Diminishment: Theorem 4.5 formally proves that the ratio $\alpha_t$ monotonically increases toward 1 during early training.
  • Multi-Class Amplification: At initialization, clean gradient dominance scales as: $$\frac{\|g_{\text{clean}}^{(c)}\|}{\|g_{\text{noise}}^{(c)}\|} \approx (C - 1) \frac{1 - \delta}{\delta}$$ Because $C > 2$ increases the ratio, multi-class classification provides even stronger initial protection against label noise than binary classification.

  • Empirical Validation: Experiments on MNIST and CIFAR-10 with standard CNNs and ResNets match the theoretical predictions: clean training error steadily drops while noisy error climbs to near $100\%$ before reversing precisely at the early stopping inflection point.

Limitations and Future Work

  • Infinite-Width Assumption: The rigorous proofs rely on static derivatives ($\nabla h(w_t) = \nabla h(w_0)$) from the infinite-width limit. While finite-width experiments align with the theory, formal finite-width bounds with evolving representations are left for future work.
  • Uniform Noise Distribution: The analysis assumes random, uniformly distributed label noise. Non-uniform, adversarial, or instance-dependent noise settings were not addressed.
  • Noise Threshold: The framework requires $\delta < 0.5$ (or $\delta < (C-1)/C$ in multi-class) so that clean samples retain the initial population advantage.

Summary updated

BibTeX
@misc{liu2023mechanism,
  author = {Chaoyue Liu and Amirhesam Abedsoltan and Mikhail Belkin},
  title = {{Mechanism of clean-priority learning in early stopped neural networks of infinite width}},
  year = {2023},
  eprint = {2306.02533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.02533},
}
Figure