Abstract
Deep Neural Networks (DNNs) are prone to memorizing noisy labels, which degrades their generalization performance. While gradient clipping is a common technique to mitigate the impact of outliers, traditional fixed-threshold methods fail to account for the evolving distribution of gradients during training. We present Optimized Gradient Clipping (OGC), a framework that dynamically adjusts the clipping threshold by modeling the loss distribution of clean and noisy samples using a Gaussian Mixture Model (GMM). OGC effectively balances learning from informative samples and suppressing erroneous gradients, leading to significant performance gains across synthetic and real-world noisy datasets.
Introduction: The Challenge of Noisy Labels
In real-world scenarios, datasets often contain "noisy labels"—incorrect annotations resulting from human error or automated scraping. Standard loss functions, such as Cross Entropy (CE), are highly sensitive to these errors. When a model encounters a noisy label, it perceives a large discrepancy between its prediction and the target, generating a massive gradient that forces the network to "learn" the mistake.
Previous research suggested gradient clipping—capping the magnitude of gradients—to limit the damage from these outliers. However, these methods typically rely on a fixed threshold chosen a priori. This approach is fundamentally flawed because the distribution of gradients is not static; as a model learns, the statistical "gap" between clean and noisy samples shifts. A threshold that is effective at the start of training may become obsolete, either allowing too much noise to propagate or preventing the model from learning from difficult but legitimate samples.
Methodology: Optimized Gradient Clipping (OGC)
OGC treats the clipping threshold as a dynamic parameter that adapts to the current state of the model. The method operates in three primary stages:
- Distribution Modeling: At each training step, OGC fits a 2-component Gaussian Mixture Model (GMM) to the Cross Entropy losses of the current mini-batch. This leverages the "small-loss" hypothesis: clean samples generally exhibit lower loss than noisy ones, allowing the GMM to statistically distinguish between the two groups.
- Ratio Estimation: Using the parameters derived from the GMM, the algorithm estimates a "proxy ratio" ($r^{(t)}$) representing the expected influence of noisy gradients relative to clean gradients after clipping.
- Constrained Optimization: Instead of manual tuning, OGC solves an optimization problem to find the threshold $\tau$ that minimizes the influence of noisy gradients while ensuring the model maintains a predefined learning rate for clean data.
As shown in the figure above, the separation between clean (blue) and noisy (red) gradient distributions becomes more pronounced as training progresses, and the decision boundaries adapt accordingly to avoid overfitting the noise.
Experimental Evaluation
The authors evaluated OGC on several benchmarks, including CIFAR-10 and CIFAR-100 with synthetic noise (Symmetric, Asymmetric, and Instance-dependent), as well as real-world noisy datasets like WebVision 1.0.
Key Results
The results demonstrate that OGC significantly enhances the robustness of standard loss functions. On CIFAR-10 with real-world noise, adding OGC to standard Cross Entropy improved accuracy from 64.43% to 81.45%—a 17% absolute improvement.
Furthermore, OGC consistently outperforms specialized robust loss functions such as Generalized Cross Entropy (GCE) and Taylor-CE. For instance, in extreme noise scenarios (CIFAR-100 with 80% symmetric noise), standard CE collapses to 8.94% accuracy, whereas CE+OGC maintains a respectable 28.70%.
Discussion and Insights
The core strength of OGC lies in its ability to navigate the "Fitting vs. Suppression" trade-off. A high threshold allows for fitting complex data but fails to stop noise; a low threshold stops noise but stifles learning. OGC automates the search for the "Goldilocks" zone.
While OGC is highly effective, it does rely on the assumption that clean samples generally have lower losses. In cases of extreme dataset difficulty where clean samples are harder to learn than noise is to ignore, the GMM separation may become less reliable. Additionally, while it reduces threshold tuning, it introduces a hyperparameter $\epsilon$ (the target gradient ratio), though empirical evidence suggests this is more stable across tasks than a fixed clipping value.
Conclusion
Optimized Gradient Clipping provides a theoretically grounded and practically effective solution for training DNNs on corrupted data. By dynamically adapting to the training dynamics, OGC revitalizes standard loss functions and sets a new bar for performance in noisy label learning.
Summary updated