Label Distributionally Robust Losses for Multi-class Classification: Consistency, Robustness and Adaptivity

Dixian Zhu, Yiming Ying, Tianbao YangICML 2023

Presented at ICML 2023, this paper tackles one of the most persistent headaches in machine learning: noisy labels. Whether dealing with a mislabeled image in a massive web-scraped dataset or an ambiguous case in medical imaging, incorrect labels can easily derail standard model training.

To address this, the authors introduce Label Distributionally Robust (LDR) losses, a unified framework that uses Distributionally Robust Optimization (DRO) to handle label uncertainty. Their standout contribution is an adaptive version of this loss (ALDR-KL) that automatically learns how much to trust each individual data point, outperforming 13 other popular loss functions across various noisy benchmarks while remaining theoretically consistent.

The Problem with Current Loss Functions

In multi-class classification, the gold standard is the Cross-Entropy (CE) loss. While it works beautifully on clean data, it is notoriously sensitive to outliers and incorrect labels.

To fix this, researchers often use "symmetric" losses that are robust to noise. However, these come with two major catches:

  1. Slow Convergence: They often take much longer to train.
  2. Inconsistency: A loss might be "top-1 consistent" (finding the best single class) but fail when evaluated on "top-k" performance (e.g., whether the correct answer is in the model's top 3 guesses).

The authors identify a critical gap: the field lacks a loss function that is robust to noise, fast to converge, and theoretically sound for any $k$ in top-$k$ classification.

Methods: A Distributionally Robust Approach

The paper approaches the problem through the lens of Distributionally Robust Optimization (DRO). Instead of assuming the provided label is 100% correct, they model the label as being part of an uncertain distribution and optimize for the "worst-case" scenario within that uncertainty.

Key Innovations

  • LDR-KL Loss: By using Kullback–Leibler (KL) divergence as a regularizer within the DRO framework, they derive a loss that acts as a generalized version of temperature-scaled Cross-Entropy.
  • Unified Framework: They demonstrate that by simply changing a "temperature" parameter ($\lambda$), their loss can transform into the classic SVM loss (at $\lambda=0$) or the Cross-Entropy loss (at $\lambda=1$).

Instance-Level Adaptivity (ALDR-KL)

The core breakthrough of the paper is moving away from a static temperature parameter. Rather than picking one $\lambda$ for the whole dataset, they treat $\lambda$ as a learnable parameter for every single instance.

Comparison of decision boundaries for Pretrained, Cross-Entropy (CE), and ALDR models. ALDR adapts its temperature parameter to isolate noisy samples.
  • If a sample is clean, the model learns a small $\lambda$ to focus on high-margin classification.
  • If a sample is noisy, the model learns a large $\lambda$, making the loss more "symmetric" and less likely to be swayed by the wrong label.

Key Insights and Theoretical Guarantees

  • "All-k" Consistency: The authors prove that LDR losses are "All-k consistent." This means that given enough data, minimizing this loss is guaranteed to yield the mathematically optimal classifier for any top-$k$ metric chosen.
  • The Negative Result: They provide a surprising mathematical proof that a non-negative symmetric loss cannot be top-1 and top-2 consistent simultaneously. This perfectly explains why previous robust losses often struggled when evaluated on anything other than top-1 accuracy.
  • Temperature as a Robustness Knob: The paper provides a clear theoretical understanding of why "temperature scaling"—a common trick used to calibrate models—actually improves robustness.

Experimental Results

The authors evaluated their method extensively, creating a leaderboard comparing 15 loss functions across 7 datasets with synthetic noise (like CIFAR-100 and Tiny-ImageNet) and 1 real-world noisy dataset (WebVision).

  • Benchmark Dominance: ALDR-KL took the #1 spot in overall rank across top-1, top-2, top-3, top-4, and top-5 metrics.
  • Real-World Performance: On the massive WebVision dataset, ALDR-KL achieved 69.92% top-1 accuracy, significantly beating standard Cross-Entropy (66.40%) and other specialized robust losses like SCE and GCE.
  • Visual Proof of Adaptivity: By tracking the learned $\lambda$ values over training epochs, the authors confirmed their theory: the model successfully assigns much higher "uncertainty" values to noisy samples than to clean ones.
Evolution of the adaptive temperature parameter over training epochs, showing higher values assigned to noisy data.

Limitations and Future Work

While highly effective, the approach has a few limitations to consider:

  • Computational Overhead: Updating an individualized parameter for every data point is slightly more demanding than standard training, though the authors provide an efficient algorithm to mitigate this.
  • Convergence Theory: The method works exceptionally well in practice, but a formal convergence analysis for the joint optimization of the model and the adaptive parameters remains a task for future research.
  • Hyperparameter Tuning: Although $\lambda$ is adaptive, there are still high-level hyperparameters (like the "prior" $\lambda_0$) that require tuning.

The method is open-sourced and available at GitHub.

Summary updated

BibTeX
@inproceedings{zhu2023label,
  author = {Dixian Zhu and Yiming Ying and Tianbao Yang},
  title = {{Label Distributionally Robust Losses for Multi-class Classification: Consistency, Robustness and Adaptivity}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=IyJY0NRaEF},
}
Figure