Label smoothing (LS) has become a "go-to" regularizer in deep learning. By mixing one-hot labels with a uniform distribution, it prevents models from becoming overconfident and improves generalization. But does this trick hold up when your training data is messy?
In their ICML 2022 paper, Jiaheng Wei and colleagues reveal a surprising "phase transition": while LS helps with clean data, it can actually cripple performance in high-noise regimes. Their solution? Negative Label Smoothing (NLS)—a counter-intuitive approach that penalizes non-target classes to sharpen model predictions.
TL;DR
Standard label smoothing fails in high-noise environments because it "oversmooths" the model's estimated posterior. This paper introduces Negative Label Smoothing (NLS), proving both theoretically and empirically that penalizing non-target classes is more robust when training labels are heavily corrupted.
The Problem: Oversmoothing in Noisy Data
In an ideal world, our training labels are perfect. In reality, datasets are often "noisy"—labels are flipped due to human error or sensor glitches.
Standard LS works by reducing the "gap" between the target class and others, which acts as a regularizer. However, the authors observe that label noise itself acts as a form of smoothing. If you have a high noise rate and then apply LS on top of it, the model becomes "under-confident," failing to distinguish the true signal from the noise. In high-noise regimes, the entropy of the noisy label distribution is already high. Adding LS increases this entropy further, making the estimated posterior too flat to be useful, leading to a significant drop in accuracy.
The Solution: Generalized Label Smoothing
The researchers sought to understand exactly when LS stops being helpful and what should replace it. They propose a Generalized Label Smoothing (GLS) framework. Given a one-hot label $y$, the smoothed label is defined as:
$$y^{GLS,r} = (1 - r) \cdot y + \frac{r}{K} \cdot \mathbf{1}$$
Where $K$ is the number of classes and $r$ is the smoothing rate.
- $r > 0$: Standard Label Smoothing (LS).
- $r = 0$: Vanilla Cross-Entropy.
- $r < 0$: Negative Label Smoothing (NLS).
In NLS, the negative weight effectively "subtracts" probability from the non-target classes, forcing the model to be more confident in its predictions. The paper provides a theoretical decomposition of the risk under noisy labels, showing that NLS can cancel out the bias introduced by symmetric label noise. They also bridge the gap between NLS and other popular robust loss functions, proving that methods like Peer Loss and Backward Loss Correction are closely related to NLS.
Key Insights and The Phase Transition
There is a clear threshold for the noise rate. If noise is low, LS is optimal. As noise increases, the optimal smoothing rate $r$ crosses zero and becomes negative.
While we usually fear overconfidence (overfitting), in high-noise settings, the model is naturally "timid." NLS acts as a corrective force, pushing the model to commit to a prediction. The authors map this out as a distinct phase transition between the regimes where LS and NLS are optimal.
Key Results
The authors validated their findings across a wide range of benchmarks, from synthetic 2D data to complex vision and NLP tasks:
- High Noise Performance: On CIFAR-10 with 60% symmetric noise, NLS ($r=-6.0$) achieved 77.42% accuracy, significantly outperforming standard LS (73.16%) and vanilla CE (75.34%).
- Real-World Robustness: On the Clothing1M dataset (1 million images with real human-labeled noise), NLS achieved 74.24% accuracy, ranking highly among existing robust methods at the time of publication.
- Confidence Calibration: NLS leads to much higher model confidence on correct predictions compared to LS, which is essential when the training signal is weak.
Limitations and Future Work
While powerful, NLS comes with practical considerations. The paper provides a theoretical optimal rate ($r_{opt}$), but in practice, this requires an estimate of the noise rate, which isn't always available. Furthermore, for complex datasets like CIFAR, training with NLS from scratch can be unstable. The authors found that a "warm-up" phase using standard Cross-Entropy followed by NLS yields the best results. Future work may explore the benefits of negative labels in other tasks like regression or ranking.
Summary updated