Complementary-Label Learning for Arbitrary Losses and Models

Takashi Ishida, Gang Niu, Aditya Krishna Menon, Masashi Sugiyama

Introduction

Labeling data is expensive, but telling a computer what a photo isn't is often much easier than identifying exactly what it is. In standard supervised learning, we provide a "true label" for every data point (e.g., "This image is a dog"). However, in many real-world scenarios—like crowdsourcing or sensitive surveys—getting the exact right label is costly or invasive.

Complementary-label learning (CLL) offers a cheaper alternative: we only specify one class that the pattern does not belong to (e.g., "This image is NOT a cat"). While this is easier for humans to provide, it’s mathematically harder for machines to learn from. Previous attempts at CLL were stuck in a "math cage": they only worked with specific, restrictive loss functions or simple linear models. They couldn't easily use the powerful deep learning tools (like ResNets or Softmax Cross-Entropy) that dominate the field today. This paper introduces a framework for CLL that finally works with any neural network architecture and any loss function.

Methods

The authors bridge the gap between complementary labels and deep learning with two major contributions:

  1. A Universal Unbiased Risk Estimator: They derive a mathematical formula that allows a researcher to calculate the "true" classification risk using only complementarily labeled data. Crucially, this formula has no restrictions; you can plug in any model (MLP, CNN) and any loss function.
  2. The Gradient Ascent Trick: A common problem with "unbiased" estimators in weak supervision is that they can produce negative values during training. Since "error" shouldn't be negative, the model starts to overfit wildly when this happens. To fix this, the authors propose a novel algorithm: if a mini-batch of data results in a negative risk, the algorithm switches from gradient descent to gradient ascent. Instead of minimizing the (erroneous) negative risk, it pushes the risk back up toward zero, effectively acting as a self-correcting regularizer.

The "Negative Risk" Trap

The most fascinating insight from this work is that "unbiased" doesn't necessarily mean "perfect for optimization." Mathematically, the estimator is correct on average, but in practice, a deep neural network is "too smart." It will find ways to exploit the negative terms in the estimator to achieve a mathematically lower (but physically impossible) negative loss, leading to a total collapse in performance.

Empirical risk and test performance showing the negative risk trap.

As seen in the training dynamics, while linear models might remain relatively stable, more complex models like MLPs quickly drive the empirical risk below zero. This directly correlates with a sharp drop in test accuracy, demonstrating the severe overfitting that occurs without proper regularization.

Key Results

The researchers evaluated their methods on four standard computer vision benchmarks (MNIST, Fashion-MNIST, Kuzushi-MNIST, and CIFAR-10), simulating complementary labels by randomly picking a "wrong" class for each image.

They compared three versions of their approach—Free (the raw unbiased version), Max Operator (clamping negative values to zero), and Gradient Ascent (GA)—against existing baselines.

Test accuracy on CIFAR-10 using DenseNet and ResNet architectures.
  • Deep Learning Compatibility: Unlike previous methods, the GA approach excelled when using complex models like DenseNet and ResNet.
  • Superior Accuracy: On CIFAR-10 using a DenseNet, the GA method achieved 36.8% accuracy. While this sounds low compared to standard supervision, it significantly outperformed the previous state-of-the-art CLL methods (which hovered around 30-33%) and did so using only "NOT" labels.
  • Stability: The Gradient Ascent trick proved much more stable than simply using a "Max" operator, preventing the accuracy "dip" that usually occurs once a model starts to overfit on weakly labeled data.

Furthermore, because their risk estimator is unbiased, researchers can perform model selection (like hyperparameter tuning) using only complementary labels. You don't need a "clean" validation set with true labels to know if your model is improving.

Limitations and Future Work

The primary limitation acknowledged is the Uniform Assumption. The math assumes that the complementary label is chosen uniformly at random from all the incorrect classes. In the real world, a human might be more likely to say "this is not a dog" when looking at a cat than when looking at a car.

The authors suggest that future work should focus on "biased" complementary labels—where certain "NOT" labels are more common than others—to make the system even more robust for real-world crowdsourcing applications. Additionally, applying this to other domains like medical image segmentation or generative modeling remains an open frontier.

Summary updated

BibTeX
@inproceedings{ishida2019complementary,
  author = {Takashi Ishida and Gang Niu and Aditya Krishna Menon and Masashi Sugiyama},
  title = {{Complementary-Label Learning for Arbitrary Losses and Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=DPataA3gIR},
}
Figure