Stochastic resetting mitigates latent gradient bias of SGD from label noise

Youngkyoung Bae, Yeongwoo Song, Hawoong Jeong · DOI

TL;DR

Starting over isn't always a waste of time. This paper introduces Stochastic Resetting, a technique inspired by statistical physics that periodically resets a neural network's parameters to a previous "best" checkpoint during training. This simple intervention effectively prevents models from memorizing noisy labels, significantly boosting generalization performance with almost zero computational overhead.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) have a well-documented "memorization effect": they tend to learn general, clean patterns early in training but eventually succumb to memorizing corrupted or "noisy" labels in the dataset. This leads to overfitting and poor performance on real-world data.

The authors identify the root cause as a latent gradient bias. In the presence of label noise, the Stochastic Gradient Descent (SGD) update is pulled in two directions: one toward the true optimum (clean data) and another toward a false optimum (noisy data). As training progresses, the "wrong" direction often becomes dominant, steering the model away from a good solution.

Schematic of SGD dynamics with stochastic resetting. The model resets to a checkpoint $\theta_c$ to avoid falling into the false optimum caused by corrupted data.

Methods

The authors propose a remarkably simple algorithm: SGD with Stochastic Resetting.

  1. Checkpointing: During training, the model keeps track of the parameters $\theta_c$ that achieved the lowest validation loss so far.
  2. The Reset: At every iteration, with a very small probability $r$ (e.g., 0.001), the current model parameters are discarded and replaced with the checkpoint $\theta_c$.
  3. Physics Mapping: To understand why this works, the authors map SGD dynamics onto Langevin dynamics (a framework from physics describing particles moving with drift and diffusion).

By treating the training process as a "search" for an optimal parameter configuration, they use the concept of Mean First Passage Time (MFPT) to prove that resetting can make the search for the "target" (the true optimum) much more efficient.

Datasets

The method was evaluated across a wide range of benchmarks:

  • Synthetic Noise: ciFAIR-10, CIFAR-10, and CIFAR-100 with varying levels of symmetric and asymmetric label noise.
  • Real-World Noise: CIFAR-10N/100N (which contain actual human annotation errors) and ANIMAL-10N (a dataset of visually similar animals prone to mislabeling).
  • Architectures: The study tested standard CNNs (VCNN, ResNet-34) and Vision Transformers (ViT).

Key Insights and Ideas

  • The Orthogonality of Error: One of the most striking findings is that the gradient component from clean data and the component from noisy data are nearly orthogonal (at a 90-degree angle) to each other. This means the noise doesn't just "blur" the signal; it actively pushes the model in an entirely different, unhelpful direction.
Deconstruction of the gradient bias. As noise ($\tau$) increases, the "wrong" drift component becomes increasingly dominant.
  • The Péclet Number Connection: In physics, the Péclet number (Pe) relates the rate of "drift" to "diffusion." The authors show that resetting is most beneficial when stochasticity (diffusion) is high relative to the drift toward the target. In deep learning terms, this means resetting is a powerhouse when you have small batch sizes and high noise rates.
  • Partial Resetting: The authors found that resetting only the later layers (like the final linear layers) can sometimes be even more effective than resetting the whole network. This suggests that the "memorization" of noise happens more aggressively in the deeper parts of the architecture.

Key Results

The results show that Stochastic Resetting acts as a powerful "safeguard" for training:

  • Massive Accuracy Gains: On CIFAR-100 with 60% noise, adding resetting to standard Cross-Entropy training improved test accuracy from 32.9% to 44.1%.
  • Compatibility: It plays well with others. When combined with existing robust methods like Early Learning Regularization (ELR), it consistently provided a performance floor, preventing those methods from failing when hyperparameters weren't perfectly tuned.
  • Efficiency: For a ResNet-34 model, the memory overhead is just the cost of storing one extra copy of the weights (~85MB), and the impact on training time is negligible.
Impact of batch size and noise rate. The benefits of resetting (lower validation loss, higher accuracy) become more pronounced as batch size decreases and noise increases.

Limitations and Future Work

While powerful, the authors note a few caveats:

  • Double Descent: The method might be less effective in regimes where "double descent" occurs (where models eventually improve again after a period of overfitting).
  • Optimal Probability: Finding the perfect reset probability $r$ currently requires some trial and error, though the authors suggest it follows a U-shaped curve.
  • Future Directions: The team suggests exploring more complex resetting strategies, such as "non-Poissonian" resets or adjusting the reset probability dynamically based on the model's recent performance.

This work successfully bridges the gap between abstract statistical physics and practical machine learning, offering a new, "low-stakes" tool for anyone dealing with messy, real-world data.

Summary updated

BibTeX
@article{bae2025stochastic,
  author = {Youngkyoung Bae and Yeongwoo Song and Hawoong Jeong},
  title = {{Stochastic resetting mitigates latent gradient bias of SGD from label noise}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2025},
  doi = {10.1088/2632-2153/adbc46},
}
Figure