Do We Need to Penalize Variance of Losses for Learning with Label Noise?

Yexiong Lin, Yu Yao, Yuxuan Du, Jun Yu, Bo Han, Mingming Gong, Tongliang LiuarXiv 2022

Abstract

Deep neural networks are prone to memorizing noisy labels, which degrades their performance on clean test data. While standard optimization theory often suggests penalizing the variance of losses to stabilize empirical risk minimization, this paper proposes a counter-intuitive approach: increasing the variance of losses. We present VRNL (Losses Variance Regularization for label-Noise Learning), a method that subtracts a variance term from the standard loss objective. This encourages the model to maintain a large gap between the losses of clean and noisy samples, effectively suppressing the influence of mislabeled data. Our experiments on CIFAR and Clothing1M datasets demonstrate that VRNL consistently improves the robustness of state-of-the-art label-noise learning frameworks.

Introduction: The Challenge of Label Noise

Deep learning models are "universal approximators" with a high capacity for memorization. When trained on datasets containing label noise—incorrectly labeled instances—these models eventually learn to fit the noise, leading to poor generalization. Current strategies to mitigate this typically involve either selecting "small-loss" samples as clean data or using transition matrices to correct the loss function.

However, a fundamental question remains: how should the distribution of losses across a mini-batch be managed? Standard wisdom suggests that high variance in empirical risk leads to instability, implying that variance should be penalized. This paper challenges that assumption in the context of noisy labels.

Methodology: VRNL

The authors introduce VRNL, a simple yet effective regularizer. Instead of minimizing the average loss alone, the objective function is modified to: $$\mathcal{L}_{VRNL} = \text{Average Loss} - \alpha \cdot \text{Var}(\text{Losses})$$ where $\alpha > 0$ is a hyperparameter. By subtracting the variance, the optimization process is forced to increase the spread of losses.

Dynamic Weighting Mechanism

The theoretical contribution of this work shows that VRNL acts as a dynamic gradient weighting scheme. Samples with lower-than-average loss (likely clean) receive higher weights, while samples with higher-than-average loss (likely noisy) receive lower weights. This prevents the model from aggressively trying to minimize the loss of suspected noisy samples, thereby avoiding memorization.

Experimental Results

The researchers evaluated VRNL by integrating it into existing frameworks like Forward, Importance Reweighting, and VolMinNet. Testing was conducted on synthetic noise (MNIST, CIFAR-10/100) and real-world noise (Clothing1M).

Visualizing the Impact of Variance

The core intuition of VRNL is best captured by observing the loss trajectories of correctly vs. incorrectly labeled instances during training.

Comparison of loss variance strategies: (a) penalizing variance leads to lower accuracy as noisy samples are memorized; (b) original loss; (c) increasing variance (VRNL) maintains a high loss for noisy samples, achieving the best test accuracy.

As shown in the figure above, penalizing variance (a) causes the loss of incorrectly labeled instances (orange curve) to drop significantly, indicating that the model is memorizing the noise. In contrast, increasing the variance (c) keeps the loss of noisy samples high, allowing the model to focus on clean data and achieve superior test accuracy (90.04% vs 86.63%).

Performance Benchmarks

  • CIFAR-100: Under 50% symmetric noise, adding VRNL to the Forward method improved accuracy from 44.5% to 54.1%.
  • Clothing1M: The VolMinNet-VRNL combination achieved a state-of-the-art accuracy of 72.66%, outperforming complex methods like DivideMix.

Discussion and Limitations

VRNL exploits the "early learning" phenomenon, where networks learn simple patterns before memorizing noise. By widening the loss gap early on, it creates a self-reinforcing filter.

However, the method does have limitations:

  1. Hyperparameter Tuning: The optimal value for $\alpha$ varies by dataset and noise level, typically ranging between 0.01 and 0.1.
  2. Architectural Assumptions: The effectiveness relies on the specific memorization dynamics of deep architectures like CNNs. Its applicability to other model types remains an open question.

Conclusion

Contrary to standard optimization practices, increasing the variance of losses is a powerful tool for learning with noisy labels. VRNL provides a simple, plug-and-play way to enhance the robustness of deep learning models, proving that sometimes, a little more "instability" in the loss distribution is exactly what a model needs to ignore the noise.

Summary updated

BibTeX
@misc{lin2022do,
  author = {Yexiong Lin and Yu Yao and Yuxuan Du and Jun Yu and Bo Han and Mingming Gong and Tongliang Liu},
  title = {{Do We Need to Penalize Variance of Losses for Learning with Label Noise?}},
  year = {2022},
  eprint = {2201.12739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.12739},
}
Figure