NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Per-example gradient regularization improves learning signals from noisy data

Xuran Meng, Yuan Cao, Difan Zou

Abstract

Gradient regularization is a highly effective technique for promoting flat minima during gradient descent, enhancing robustness against noisy perturbations and reducing test error. This paper explores per-example gradient regularization (PEGR) and presents a theoretical analysis demonstrating its effectiveness in improving both test error and robustness. By adopting a signal-noise data model, we show that PEGR effectively learns signals while suppressing noise memorization. Our analysis reveals that PEGR penalizes the variance of pattern learning, effectively suppressing the memorization of noises from the training data. These findings underscore the importance of variance control in deep learning training.

Introduction

Deep learning models operating in the over-parameterized regime are notorious for their ability to memorize training data, including irrelevant, label-independent noise. When the signal-to-noise ratio (SNR) is low, standard training often results in the model fitting the noise rather than the actual features, leading to poor generalization and overfitting.

While techniques like Gradient Regularization (GR)—which penalizes the norm of the loss gradient to find "flatter" minima—are known to help, empirical evidence shows a significant performance gap between Full Gradient Regularization (FGR) and Per-Example Gradient Regularization (PEGR). PEGR works remarkably well in practice, yet the theoretical understanding of why this specific stochastic approximation alters training dynamics to favor signal over noise in non-convex neural networks has remained unclear. This work provides a rigorous theoretical explanation for PEGR's efficacy.

Methodology

The authors conduct a multi-stage dynamical analysis to track the competition between "signal learning" and "noise memorization" during training.

Model and Data

The analysis focuses on a two-layer Convolutional Neural Network (CNN) with a square ReLU activation function. The data follows a "signal-noise" model where each input consists of two patches:

  1. Signal Patch: Highly correlated with the ground-truth label.
  2. Noise Patch: Random Gaussian noise, orthogonal to the signal.

Per-Example Gradient Regularization (PEGR)

PEGR modifies the standard loss function by adding a penalty term based on the average of the squared $L_2$ norms of the gradients for individual training examples. This differs from Full Gradient Regularization (FGR), which penalizes the norm of the gradient of the total batch loss. The theoretical framework suggests that PEGR is most vital in the early stages of training; once the network has latched onto the signal, the regularization can be reduced to allow for final convergence.

Theoretical Insights: PEGR as Variance Control

The core contribution of this research is the mathematical revelation that PEGR acts as a variance controller.

  • Signal Consistency: Because the "signal" is shared across all data points of a specific class, the variance of the gradient regarding the signal is relatively small.
  • Noise Randomness: Conversely, because "noise" is random and unique to each example, its gradient variance across the dataset is high.

PEGR implicitly penalizes this variance across examples, effectively suppressing noise memorization. In contrast, standard Gradient Descent (GD) is "blind" to SNR; if noise is stronger than the signal, the network greedily fits the noise, causing training loss to drop rapidly and halting the learning process before the true signal is extracted.

Experimental Results

The theoretical findings were validated through both synthetic simulations and real-world benchmarks.

Synthetic Validation

In high-noise simulations, PEGR successfully learned the underlying signal and ignored the noise. Both standard training and FGR failed completely in these scenarios, resulting in models that memorized noise and achieved test errors equivalent to random guessing (~50%).

Real-world Robustness

The authors tested the algorithm on MNIST (using LeNet5) and CIFAR-10 (using ResNet18) by injecting varying levels of independent Gaussian noise into the training sets.

  • MNIST: With severe injected noise, standard training accuracy degraded significantly, while PEGR maintained high test accuracy.
  • CIFAR-10: PEGR demonstrated similar robustness on ResNet18, proving its ability to separate signal from noise even in standard, complex architectures.

Conclusion and Future Work

This paper demonstrates that PEGR provides a crucial variance control mechanism that prevents the memorization of random noise in favor of consistent signals. While the current theoretical proofs are limited to specific architectures like two-layer CNNs, they offer a foundational understanding of PEGR's empirical success. Future research aims to extend this dynamical analysis to deeper convolutional networks and incorporate mini-batch Stochastic Gradient Descent (SGD).

Summary updated

BibTeX
@article{meng2025per,
  author = {Xuran Meng and Yuan Cao and Difan Zou},
  title = {{Per-example gradient regularization improves learning signals from noisy data}},
  journal = {Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=dq4UeZkWl3},
}
Figure