Abstract
Deep Neural Networks often memorize noisy labels in training data, leading to poor generalization. We present Stochastic Tailor-made Gradient Noise (STGN), a plug-and-play method that injects sample-specific noise into the learning process. By dynamically adjusting noise intensity based on model confidence and training behavior, STGN prevents the memorization of incorrect labels while facilitating effective learning from clean data. Our experiments across sentiment analysis, named entity recognition, and event reasoning demonstrate that STGN consistently outperforms state-of-the-art baselines, particularly in high-noise environments.
Introduction
Deep Neural Networks (DNNs) possess a remarkable capacity to fit complex data, but this strength becomes a liability when training sets contain noisy labels. In Natural Language Processing (NLP), label noise is pervasive due to the nuances of human language and the limitations of automated labeling. Standard training often leads to the memorization of these errors, which severely degrades generalization.
Existing approaches to mitigate this issue often rely on specialized architectures or expensive clean datasets. A more flexible alternative is implicit regularization through gradient noise. However, traditional methods apply uniform noise levels across all samples, creating a trade-off: insufficient noise fails to prevent error memorization, while excessive noise hinders learning from clean data.
Methodology: Stochastic Tailor-made Gradient Noise (STGN)
To address these limitations, we introduce Stochastic Tailor-made Gradient Noise (STGN). STGN is a plug-and-play training method that dynamically adjusts the intensity of gradient perturbations for each individual sample.
Confidence-Dependent Perturbation
The core of STGN is its "tailor-made" noise mechanism. Noise is injected into the gradient of the loss with respect to the model's output, scaled by the inverse of the model's confidence (softmax output). Theoretically, this targets "sharp minima" in the loss landscape—regions where the model is overconfident in potentially incorrect predictions. By increasing noise when confidence is high but the label is likely wrong, STGN forces the model to "back off" from memorizing the noise.
Sample Discrimination Guidelines
STGN employs two primary guidelines to identify noisy samples during training:
- The Small-Loss Principle: Clean samples typically exhibit lower loss values in the early stages of training. STGN monitors whether a sample's loss exceeds a specific percentile within its mini-batch.
- Forgetting Events: Noisy samples are more prone to "forgetting"—where the model's prediction switches from correct to incorrect—compared to clean samples.
The noise intensity ($\sigma$) for each sample is updated iteratively every epoch based on these guidelines, allowing the model to effectively filter the dataset as it learns.
Experimental Evaluation
STGN was evaluated across three diverse NLP tasks to prove its versatility:
- Sentiment Analysis (SST-5): Tested with synthetic symmetric noise at 20%, 40%, and 60% levels.
- Named Entity Recognition (NoisyNER): A real-world dataset for Estonian NER containing inherent, non-synthetic noise.
- Event Relation Reasoning (wikiHow): A complex reasoning task with significant real-world noise from automated generation.
Results and Discussion
STGN consistently outperformed state-of-the-art baselines, including standard Adam and Stochastic Label Noise (SLN). Its robustness is particularly evident in high-noise scenarios. For instance, on SST-5 with 60% noise, STGN achieved 39.10% accuracy, a significant jump from Adam's 30.61% and SLN's 35.77%.
The following figures illustrate the dual benefit of STGN: it accelerates the learning of correct samples while strictly limiting the memorization of incorrect ones.
As training progresses, STGN maintains a higher ratio of correctly learned samples compared to the SLN baseline. This indicates that the tailor-made noise does not interfere with the model's ability to extract signal from clean data.
Crucially, STGN prevents the sharp rise in noise memorization seen in the baseline. By keeping the ratio of memorized incorrect samples low, STGN ensures that the model focuses on the underlying patterns of the data rather than the errors, leading to better generalization on clean test sets.
Conclusion
STGN provides a robust, versatile, and easy-to-implement solution for training NLP models on noisy data. By aligning optimization goals with generalization through tailor-made gradient noise, it effectively combats the memorization of label errors. Future work will explore more diverse guidelines for sample discrimination and further refine hyperparameter tuning for broader applications.
Summary updated