Learning from Failure: De-biasing Classifier from Biased Classifier

Jun Hyun Nam, Hyuntak Cha, Sungsoo Ahn, Jaeho Lee, Jinwoo ShinNeurIPS 2020

Deep learning models are notorious for taking "shortcuts." Instead of learning the true underlying features of an object, they often latch onto spurious correlations—or biases—that happen to work well on a specific training set but fail in the real world. For example, if most "dogs" in a dataset are photographed on grass and "cats" on carpets, a model might simply learn to detect green versus beige backgrounds.

The traditional way to fix this is "supervision on the bias," which requires humans to manually label every spurious attribute (e.g., "this image has a grass background") or possess expert knowledge of exactly what the bias is. This approach is expensive, labor-intensive, and often impossible for complex, real-world datasets. Learning from Failure (LfF) introduces a clever debiasing framework that trains models to ignore these shortcuts without needing to know what the bias is or having explicit labels for it.

The Learning from Failure (LfF) Framework

The core of LfF is an elegant "adversarial" collaboration between two neural networks trained simultaneously. The framework exploits the temporal dynamic of neural networks, which tend to learn simple patterns (shortcuts) early in training and leave complex ones for later.

The LfF framework trains a biased network to identify shortcuts, which then guides a debiased network to focus on harder, bias-conflicting samples.
  1. The Biased Network ($f_B$): This model is intentionally encouraged to be "prejudiced." It is trained using Generalized Cross Entropy (GCE). Unlike standard loss functions, GCE intentionally amplifies bias by putting more weight on samples that are easy to classify. Since biases are typically "easier" for a network to learn than the actual intended features, $f_B$ quickly becomes a specialist in shortcuts.
  2. The Debiased Network ($f_D$): This model is trained using a weighted version of standard Cross Entropy. The weights are determined by the relative difficulty of a sample. If the biased network ($f_B$) has a high loss on a sample while the debiased network ($f_D$) is starting to figure it out, that sample is flagged as "bias-conflicting" (e.g., a dog on a carpet). The framework then forces $f_D$ to focus heavily on these "hard" samples.

By focusing on the "failures" of the biased model, the second model is forced to learn the more difficult, intended correlations (like the actual shape of the animal) rather than the easy shortcuts.

Evaluated Datasets

The authors evaluated LfF on several challenging benchmarks designed to test a model's reliance on spurious correlations:

Examples of the Colored MNIST and Corrupted CIFAR-10 datasets, where color and corruption type act as strong, spurious biases.
  • Colored MNIST: A synthetic dataset where digit colors are highly correlated with the digit identity.
  • Corrupted CIFAR-10: Images where object categories are correlated with specific types of image corruptions (like "snow" or "blur").
  • CelebA: A real-world dataset of celebrity faces used here to address gender bias in attribute classification (e.g., correlating "heavy makeup" with "female").
  • Biased Action Recognition (BAR): A newly introduced dataset featuring real-world images of human actions where the background is highly correlated with the action (e.g., climbing is almost always on a rock wall).

Key Insights and Results

A major insight from the paper is the distinction between malignant and benign bias. Bias only hurts performance if it is "easier" to learn than the target attribute. If the target is easier, the network ignores the bias naturally (benign). If the bias is easier, it becomes "malignant." LfF successfully identifies and mitigates this malignant bias without any explicit labels.

The results show remarkable performance, often rivaling or even beating methods that had access to full "bias labels":

  • Colored MNIST: On a test set where colors were randomized (unbiased), LfF improved accuracy from 35.34% (Vanilla) to 63.39%.
  • Corrupted CIFAR-10: Accuracy jumped from 17.93% to 31.66% in highly biased scenarios (where 99.5% of training data followed the bias).
  • Real-World Impact: On the CelebA dataset, LfF significantly outperformed standard training, proving it can handle the nuances of real-world human attributes without explicit intervention.

Limitations and Future Work

While powerful, LfF relies on the assumption that the bias is indeed easier to learn than the target task. If the intended task is actually simpler than the spurious correlation, the roles might flip. Additionally, the method requires that at least some "bias-conflicting" samples exist in the training set; if the correlation is 100% perfect in the training data, there are no "failures" to learn from. Future work could explore how to handle datasets where multiple, competing biases exist or where the "difficulty" of features is more balanced.

Summary updated

BibTeX
@inproceedings{nam2020learning,
  author = {Jun Hyun Nam and Hyuntak Cha and Sungsoo Ahn and Jaeho Lee and Jinwoo Shin},
  title = {{Learning from Failure: De-biasing Classifier from Biased Classifier}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure