Delving into Sample Loss Curve to Embrace Noisy and Imbalanced Data

Shenwang Jiang, Jianan Li, Ying Wang, Bo Huang, Zhang Zhang, Tingfa Xu

Abstract

Deep learning models often struggle with datasets that are simultaneously noisy (containing label errors) and imbalanced (having skewed class distributions). Traditional re-weighting methods face a paradox: noisy samples and rare "tail" samples both exhibit high loss, but should be treated oppositely—down-weighted and up-weighted, respectively. This paper introduces CurveNet, a novel framework that resolves this conflict by analyzing the temporal trajectory of sample loss. By leveraging meta-learning and a two-stage "probe-and-allocate" strategy, CurveNet distinguishes between noise and hard-to-learn samples, achieving state-of-the-art results on challenging benchmarks like Clothing1M.

Introduction: The Paradox of Noisy and Imbalanced Data

In real-world deep learning, datasets are rarely pristine. Two primary challenges often coexist: label noise (incorrectly labeled samples) and class imbalance (a few "head" classes dominate while many "tail" classes have sparse data).

Standard re-weighting techniques struggle with this combination. Both noisy samples and rare "tail" samples typically exhibit high training loss. To mitigate noise, one should down-weight high-loss samples to ignore errors. Conversely, to address imbalance, one should up-weight high-loss samples to focus on difficult, rare cases. This creates a paradox: should a high-loss sample be ignored as a mistake or prioritized as a rare example?

Methodology: The CurveNet Framework

The proposed CurveNet framework distinguishes between these types of data by analyzing their loss curves over time, rather than relying on a single loss value at a specific epoch.

The Two-Stage Strategy

The process is divided into two main phases:

  1. The Probing Stage: The model is initially trained on the biased data without intervention. During this phase, the loss trajectory for every sample is recorded across all epochs. A cyclical learning rate is employed to accentuate the differences in model behavior across different data types.
  2. The Allocating Stage: The recorded loss curves are fed into CurveNet. This meta-network is trained using a small, clean validation set to recognize the specific "signatures" of noisy versus tail-class samples.
The Probing and Allocating stages of the CurveNet training strategy.

Technical Innovations

  • Normalization: To ensure comparability, each sample's loss is normalized by subtracting the average loss of its class, highlighting whether a sample is an outlier relative to its peers.
  • Skip Layer Meta Optimization (SLMO): To address the computational overhead of meta-learning (second-order derivatives), SLMO freezes the bottom layers of the network during meta-updates. This significantly accelerates training while maintaining high accuracy.

Key Insights: Loss as a Trajectory

The fundamental insight of this work is that while a noisy sample and a rare clean sample might share similar loss values at a given point, their trajectories differ significantly.

Training loss curves for head and tail classes, comparing clean and noisy samples. Note how trajectories diverge over time.

As shown in the figure above, noisy samples often maintain a high, stable loss. In contrast, clean tail-class samples may show an initial spike in loss followed by a steady decline as the model eventually learns the underlying pattern. By treating loss as a trajectory, CurveNet can effectively differentiate "hard-to-learn" samples from "incorrectly-labeled" ones.

Experimental Results

The researchers evaluated CurveNet on synthetic (CIFAR-10/100) and large-scale real-world benchmarks (Clothing1M, Food-101N).

  • Performance: On CIFAR-10 with 40% noise and high imbalance, CurveNet outperformed Meta-Weight-Net by approximately 2.4%.
  • Real-World Scalability: On the Clothing1M dataset, CurveNet achieved a state-of-the-art accuracy of 74.41%.
  • Efficiency: The SLMO technique provided a 5.7x speedup in training compared to standard meta-optimization, with negligible impact on final accuracy.

Conclusion

CurveNet demonstrates that the temporal dynamics of training loss contain vital information for robust learning. By shifting the focus from static loss values to dynamic trajectories, the model can navigate the conflicting requirements of noisy and imbalanced data. Future work may extend this approach to more complex tasks like object detection and explore unsupervised variants to reduce the reliance on clean meta-datasets.

Summary updated

BibTeX
@inproceedings{jiang2022delving,
  author = {Shenwang Jiang and Jianan Li and Ying Wang and Bo Huang and Zhang Zhang and Tingfa Xu},
  title = {{Delving into Sample Loss Curve to Embrace Noisy and Imbalanced Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20661},
}
Figure