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 are highly sensitive to data biases, particularly corrupted labels (noise) and class imbalance. While both issues typically manifest as high training loss, they require diametrically opposed treatment: noisy samples should be down-weighted to prevent overfitting, while rare "tail" class samples should be up-weighted to ensure learning. This paper introduces a "probe-and-allocate" strategy that utilizes the entire loss curve trajectory of a sample to distinguish between these two cases. By employing a meta-learning sub-network called CurveNet, the framework assigns optimal sample weights based on temporal loss patterns. Our approach achieves state-of-the-art results on benchmarks like CIFAR and Clothing1M while maintaining computational efficiency through Skip Layer Meta Optimization (SLMO).

Introduction

In real-world scenarios, datasets often suffer from a combination of label noise and long-tailed distributions. Standard sample re-weighting techniques often fail in these hybrid environments because a high loss value is ambiguous—it could indicate a mislabeled instance (noise) or a correctly labeled but rare instance (tail class).

The core insight of this work is that while a single snapshot of loss is insufficient for classification, the trajectory of loss over time provides a unique "biography" of the sample. By analyzing how loss evolves across epochs, we can differentiate between "bad" data to be ignored and "hard" data to be prioritized.

Loss trajectories for clean and noisy samples in Head vs. Tail classes. Note how clean tail samples exhibit a distinct initial spike and subsequent drop compared to noisy samples.

Methodology: The Probe-and-Allocate Strategy

The authors propose a two-stage framework designed to perceive and then act upon these loss trajectories.

1. The Probing Stage

In the initial stage, the model is trained on the full, biased dataset without intervention. A cyclical learning rate is employed to highlight the dynamics of the loss. During this phase, the system records the "loss curve"—the sequence of loss values across epochs—for every individual training sample.

2. The Allocating Stage

The second stage introduces CurveNet, a meta-learning sub-network that determines the final training weights. CurveNet takes two inputs: a sample's normalized loss curve and its class label embedding. Normalization is critical here; by subtracting the average class loss from an individual sample's loss, the model highlights the relative difficulty of a sample within its specific category.

The overall Probe-and-Allocate pipeline, showing the transition from recording loss curves to meta-weighting via CurveNet.

Skip Layer Meta Optimization (SLMO)

Meta-learning typically incurs high computational costs due to second-order derivative calculations. To mitigate this, the authors developed SLMO. By freezing the lower layers of the classifier during the meta-update and only optimizing the top layers, the training process is significantly accelerated with negligible impact on final accuracy.

Experimental Results

The method was rigorously tested on both synthetic and real-world datasets:

  • CIFAR-10/100: Under extreme imbalance (factor of 200), the method achieved 65.91% accuracy, outperforming previous meta-learning benchmarks like MW-Net by nearly 3%.
  • Clothing1M: On this large-scale real-world dataset (1M images), the method reached 74.41% accuracy, surpassing specialized noise-robust models like LCCN.
  • Efficiency: SLMO provided a 5.71x speedup in the meta-optimization phase, reducing per-step training time from 239ms to 41ms.

Conclusion

By shifting the focus from instantaneous loss to the temporal loss curve, this research provides a robust mechanism for handling complex data biases. The "probe-and-allocate" framework effectively separates noise from rarity, allowing models to learn effectively from imperfect, real-world data. Future work may extend this curve-perception approach to more complex tasks such as object detection and semantic segmentation.

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