Class-imbalanced complementary-label learning via weighted loss

Meng Wei, Yong Zhou, Zhongnian Li, Xinzheng Xu

TL;DR

This paper introduces Weighted Complementary-Label Learning (WCLL), the first framework specifically designed to handle class imbalance in complementary-label learning. By incorporating a weighted loss function that accounts for uneven class distributions, WCLL allows models to learn effectively from "negative" labels (e.g., "this image is not a cat") even when certain classes are severely underrepresented, significantly outperforming existing methods on real-world medical data.

What Problem Does This Paper Address?

In traditional supervised learning, we tell a model exactly what an object is. In Complementary-Label Learning (CLL), we tell it what it isn't. This "weak supervision" is often easier to collect—crowdsourced workers can quickly identify incorrect classes—and it protects privacy in sensitive domains like medical imaging, where a patient might be comfortable saying they don't have a specific rare disease without revealing their actual diagnosis.

However, real-world data is rarely balanced. In a cancer screening dataset, "normal" cases vastly outnumber "cancer" cases. Existing CLL methods assume classes are distributed evenly. When faced with imbalance, these models tend to ignore minority classes, leading to a sharp drop in predictive accuracy for the very cases (like rare diseases) that matter most. This paper fills that gap by proposing a method that handles both the "negative" nature of CLL and the "skewed" nature of real-world data.

Figure 1: The inherent class imbalance in the DDSM mammography dataset makes standard labeling difficult and privacy-sensitive.

Methods

The authors propose Weighted Complementary-Label Learning (WCLL). The core innovation is a novel weighted empirical risk minimization (ERM) framework.

  • Weighted Loss Function: Unlike standard CLL which treats all errors equally, WCLL introduces a weight vector ($\omega$). These weights are inversely proportional to the frequency of the classes. This ensures that the model is penalized more heavily for misclassifying rare "minority" classes.
  • Flexibility: As shown in the comparison table below, WCLL is "loss assumption free" and "model assumption free." This means it can be used with various neural network architectures and standard loss functions (like Cross-Entropy) without needing complex modifications or specific "anchor" instances.
  • Theoretical Guarantee: The authors mathematically prove an estimation error bound of $O(1/\sqrt{n})$, demonstrating that as the number of training samples ($n$) increases, the model is guaranteed to converge toward the optimal solution.
Table 1: Comparison of WCLL with previous state-of-the-art CLL methods.

Datasets

The researchers evaluated WCLL across several benchmarks and one critical real-world dataset:

  • MNIST: Handwritten digits (10 classes).
  • CIFAR-10: Common objects like airplanes and dogs (10 classes).
  • Tiny-Imagenet: A subset of ImageNet with 200 classes.
  • DDSM (Digital Database for Screening Mammography): A real-world medical dataset with three classes: Normal (61%), Benign (19%), and Cancer (20%).

For the benchmark datasets (MNIST, CIFAR, Tiny-Imagenet), the authors artificially induced imbalance to test the model's robustness under single-class, two-class, and multi-class imbalance scenarios.

Key Insights and Ideas

  • The "Negative" Weighting Paradox: In CLL, an imbalance in ground-truth labels creates a corresponding (but inverted) imbalance in complementary labels. WCLL successfully navigates this by weighting the loss based on the percentage of complementary labels available for each class.
  • Stability Over Baselines: While some existing methods (like PC or L-UW) perform well on balanced data, their performance fluctuates wildly as imbalance increases. WCLL maintains a much smaller standard deviation in accuracy, suggesting it is more stable for real-world deployment.
  • Privacy-Preserving Utility: The success on the DDSM dataset proves that we don't have to sacrifice model performance to gain the privacy benefits of complementary labeling.

Key Results

WCLL consistently outperformed state-of-the-art (SOTA) methods across all tests:

  • Benchmark Superiority: On MNIST with an imbalance factor of 2.5, WCLL achieved 71.40% accuracy, while the next best baseline (L-UW) trailed at 66.91%.
  • Real-World Impact: On the DDSM dataset, WCLL achieved a total accuracy of 57.56%, a massive 17.56% improvement over the best baseline (FREE at 45.00%).
  • Minority Class Recovery: Most impressively, on the DDSM "benign" class (a minority class), WCLL reached 76.54% accuracy. Every other baseline method failed significantly on this class, with many scoring near 0%.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Overfitting: The model occasionally suffers from overfitting due to the "negative problem" inherent in CLL risk estimation.
  • Regularization: Future work will focus on designing specific regularization penalties to mitigate this overfitting and further boost generalization.
  • Dynamic Weighting: While the current weights are static based on initial class frequencies, the authors suggest investigating dynamic weighting strategies that adjust during the training process to better handle evolving model confidence.

Summary updated

BibTeX
@article{wei2023class,
  author = {Meng Wei and Yong Zhou and Zhongnian Li and Xinzheng Xu},
  title = {{Class-imbalanced complementary-label learning via weighted loss}},
  journal = {Neural Networks},
  year = {2023},
  doi = {10.1016/j.neunet.2023.07.030},
}
Figure