Does label smoothing mitigate label noise?

Michal Lukasik, Srinadh Bhojanapalli, Aditya Krishna Menon, Sanjiv KumararXiv 2020

Abstract

Label smoothing is a ubiquitous technique in deep learning, typically used to improve model calibration and predictive performance by mixing one-hot labels with a uniform distribution. This paper investigates whether label smoothing also serves as an effective defense against label noise. We demonstrate that label smoothing belongs to a broader family of loss-correction techniques. Through theoretical analysis, we show that for linear models, label smoothing acts as a form of shrinkage regularization, enhancing robustness. Empirically, we find that label smoothing is competitive with specialized loss-correction methods across various benchmarks. Furthermore, we show that in noisy settings, smoothing the teacher model in knowledge distillation significantly benefits the student, contradicting findings in noise-free environments.

Introduction

Deep neural networks are highly susceptible to memorizing training data, including mislabeled examples. When trained on "dirty" data containing label noise—where, for instance, an image of a cat is labeled as a dog—standard models often learn these errors with high confidence, which impairs their ability to generalize.

Label smoothing (LS) has long been used to mitigate overconfidence and improve generalization. However, its role in handling label noise has been controversial. On one hand, it prevents the model from becoming overly certain about any single, potentially noisy, example. On the other hand, smoothing is mathematically equivalent to injecting uniform noise into every label, which could theoretically exacerbate the problem. This research provides a systematic study to resolve this tension, concluding that label smoothing is indeed a powerful denoising agent.

Methodology: The Label Smearing Framework

The authors propose a unified mathematical framework called "label smearing." By representing various loss modifications as a matrix multiplication ($M$) applied to the loss vector, they demonstrate that standard training, label smoothing, and specialized "backward correction" techniques are all instances of the same underlying process.

Comparison of loss functions for label smoothing (LS), backward correction (BC), and forward correction (FC).

Beyond this framework, the authors provide a theoretical analysis for linear models, proving that label smoothing is equivalent to shrinkage regularization (similar to $L_2$ regularization). By encouraging smaller weights, LS effectively increases the classification margin, making the resulting decision boundaries more robust to outliers and noisy labels.

Empirical Benchmarking

The effectiveness of LS was evaluated against popular loss-correction techniques, such as Forward and Backward Correction, across standard computer vision benchmarks (CIFAR-10, CIFAR-100, and ImageNet) with 20% symmetric label noise.

Performance Results

The results indicate that LS is remarkably competitive with, and occasionally superior to, specialized denoising methods. For example, on CIFAR-100 using a ResNet-32 architecture, label smoothing improved test accuracy from a baseline of 57.06% to 60.70%.

Test accuracy on CIFAR-100 and CIFAR-10 under 20% symmetric noise for varying smoothing/correction parameters (alpha).

As illustrated in the accuracy plots, while specialized methods like Forward Correction (FC) may achieve slightly higher peak performance at specific hyperparameter values, LS provides a robust and significant improvement over the baseline across a wide range of smoothing parameters ($\alpha$). Interestingly, the optimal $\alpha$ often exceeds the actual noise rate, suggesting that the regularizing effect of LS provides benefits beyond simple noise compensation.

Knowledge Distillation in Noisy Environments

A key insight of this work involves knowledge distillation. In noise-free settings, prior research suggested that smoothing a teacher model's labels harms the student by erasing subtle inter-class information. This paper finds the exact opposite to be true when noise is present: a smoothed teacher is a significantly better teacher. By denoising its own predictions, the teacher provides a cleaner, more reliable signal for the student. In noisy CIFAR-10 experiments, a student trained via vanilla distillation achieved 80.44% accuracy, whereas a student trained from a smoothed teacher reached 86.95%.

Conclusion

Label smoothing is an effective, simple-to-implement strategy for mitigating the impact of label noise. By acting as a regularizer and a denoising mechanism in distillation, it offers a versatile solution for training robust models on imperfect datasets. While this study focuses primarily on symmetric noise, future research could extend these findings to more complex, instance-dependent noise patterns often found in real-world applications.

Summary updated

BibTeX
@misc{lukasik2020does,
  author = {Michal Lukasik and Srinadh Bhojanapalli and Aditya Krishna Menon and Sanjiv Kumar},
  title = {{Does label smoothing mitigate label noise?}},
  year = {2020},
  eprint = {2003.02819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.02819},
}
Figure