Learning with Noisy Labels Using Hyperspherical Margin Weighting

Shuo Zhang, Yuwen Li, Zhongyu Wang, Jianqing Li, Chengyu Liu

Abstract

Supervised learning often suffers from "noisy labels"—data incorrectly tagged during collection. Traditional mitigation strategies, like the "small-loss trick," frequently fail because they cannot distinguish between mislabeled data and "hard-to-learn" clean samples. This paper introduces Hyperspherical Margin Weighting (HMW) and a new metric, Integrated Area Margin (IAM), to robustly identify and weight samples. By leveraging hyperspherical feature spaces and angular margins, the proposed method significantly outperforms state-of-the-art techniques on both synthetic and real-world noisy datasets.

The Challenge: Hard Samples vs. Noisy Labels

In noisy-label learning, the prevailing heuristic is the "small-loss trick": samples with high loss are assumed to be mislabeled and are discarded or down-weighted. However, this approach is fundamentally flawed. Many clean samples are inherently difficult to learn—such as blurry or occluded images—and naturally produce high loss values early in training.

Logit dynamics for a "Hard" clean sample, showing high variance and proximity to other class boundaries.

As shown in the logit dynamics of a "Hard" sample, these clean images often exhibit fluctuating confidence and proximity to multiple class boundaries. The small-loss trick treats these valuable samples as noise, depriving the model of the complex data it needs to achieve high robustness.

Methodology: Integrated Area Margin (IAM)

To solve this, the researchers developed the Integrated Area Margin (IAM). This metric combines two distinct sub-rankings to create a clearer separation between sample types:

  1. Area Under the Margin (AUM): Measures the gap between the assigned label's logit and the highest non-assigned logit.
  2. Top-K Under the Margin (TKUM): A novel metric that measures the gap between the primary "other" logit and the average of the remaining top-k logits. This is specifically designed to rescue "hard" samples that might be close to one other class but are distinct from the rest.
  3. Cosine-Annealing (CA): A decay strategy that prioritizes margins recorded early in training, when the model's ability to distinguish noise is most pronounced.
Comparison of sample separation between the traditional small-loss trick and the proposed IAM metric.

As illustrated in the comparison above, traditional methods result in overlapping values for easy, hard, and mislabeled samples. In contrast, IAM provides a clear, stable separation, allowing for precise sample weighting.

Hyperspherical Margin Weighting (HMW)

Beyond the metric itself, the authors propose projecting features onto a hypersphere. By calculating IAM based on cosine angles between features and class weights rather than raw logits, the system gains stability. This angular approach prevents gradient-scaling issues common in noisy environments. Every sample is assigned a continuous weight based on its hyperspherical IAM, effectively "turning down the volume" on noise without the risks associated with hard thresholding.

Experimental Results

The HMW approach was evaluated on both synthetic (CIFAR-10/100) and real-world (ANIMAL-10N, WebVision) noise:

  • High-Noise Robustness: On CIFAR-10 with 80% symmetric noise, HMW improved accuracy from 26.1% (standard CCE) to 65.8%.
  • Real-World Performance: On the ANIMAL-10N dataset, HMW achieved 86.5% accuracy, surpassing previous state-of-the-art methods like InstanceGM and PLC.
  • Representation Quality: Visualizations confirm that HMW leads to tighter, more distinct class clusters, preventing the "bleeding" between categories often caused by label noise.

Conclusion

Hyperspherical Margin Weighting represents a significant shift from sample selection to adaptive sample weighting. By successfully distinguishing "hard" clean data from true noise through the IAM metric, HMW allows models to learn from the full complexity of a dataset while remaining resilient to labeling errors.

Summary updated

BibTeX
@inproceedings{zhang2024learning,
  author = {Shuo Zhang and Yuwen Li and Zhongyu Wang and Jianqing Li and Chengyu Liu},
  title = {{Learning with Noisy Labels Using Hyperspherical Margin Weighting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29626},
}
Figure