Learning De-biased Representations with Biased Representations

Hyojin Bahng, Sanghyuk Chun, Sangdoo Yun, Jaegul Choo, Seong Joon Oh

TL;DR

The ReBias framework addresses the common problem of neural networks taking "shortcuts"—such as relying on background color or local texture instead of an object's actual shape. By forcing the primary model to be statistically independent from a set of intentionally biased models, ReBias encourages the network to learn robust, fundamental features. This architectural "push" leads to significantly better generalization when dataset biases shift in real-world applications.

The Problem: Dataset Biases and "Lazy" Models

Machine learning models are notoriously "lazy." If a dataset contains a strong correlation that isn't the intended signal, the model will often exploit it. For example, if most frogs in a training set are photographed in green swamps, a model might learn that "green background = frog" rather than learning the anatomical shape of a frog. These unintended correlations are known as dataset biases or shortcuts.

While these shortcuts yield high accuracy for "in-distribution" data (where the test set shares the training set's biases), they fail miserably in "cross-bias" scenarios where the bias shifts—like encountering a frog in a desert. Current solutions often require researchers to explicitly label every bias or generate massive amounts of augmented data. Both approaches are expensive and often impossible for subtle biases like local texture.

Different learning scenarios illustrating in-distribution, cross-domain, and cross-bias shifts.

The ReBias Method

The authors propose ReBias, a novel framework built on a simple but powerful insight: it is often easier to design a model that is prone to a specific bias than it is to explicitly define or label the bias itself.

The framework operates in three main steps:

  1. Define a Biased Model Class ($G$): Researchers select an architecture naturally limited to capturing only the bias. To combat texture bias in images, for instance, they use a Convolutional Neural Network (CNN) with a tiny receptive field (like BagNet) that can only perceive local textures, not global shapes. For video, they might use a 2D CNN that processes static scenes but cannot perceive motion.
  2. Enforce Independence: The main model ($f$) is trained alongside a biased model ($g \in G$). The training objective utilizes the Hilbert-Schmidt Independence Criterion (HSIC) to measure the statistical dependence between the representations generated by the two models.
  3. Minimax Optimization: The framework minimizes the task loss for both models while simultaneously minimizing the HSIC for the main model. This effectively instructs the main model: "Solve the task, but ensure your reasoning is as different as possible from the biased model's reasoning."

Experimental Datasets

The authors evaluated ReBias across three distinct types of bias:

  • Biased MNIST: A synthetic dataset where digit labels are highly correlated with specific background colors during training but randomized during testing.
  • 9-Class ImageNet: A subset of ImageNet used to study texture bias. The authors used k-means clustering on local features to create "texture IDs" as a proxy for unbiased evaluation.
  • Action Recognition (Kinetics & Mimetics): Used to study static bias (relying on background objects rather than motion). Models were trained on Kinetics and evaluated on Mimetics, a dataset featuring mimes performing actions without any contextual objects.

Key Insights

  • Architecture as a Bias Proxy: Instead of manually labeling biased data, architectural constraints (like receptive field size or dimensionality) can be used to "trap" biases in a separate model.
  • Independence vs. Orthogonality: The paper provides a theoretical link demonstrating that for linear models, statistical independence is equivalent to the orthogonality of decision boundaries.
  • "Removing Bias with Bias": By intentionally training a model to be biased, researchers create a "negative template." The main model must avoid this template, forcing it toward the more complex, robust features desired for true generalization.

Key Results

ReBias consistently outperformed standard models and previous de-biasing techniques across all tested scenarios:

  • Biased MNIST: When the training bias was extremely high ($\rho=0.999$), a vanilla model's accuracy collapsed to 10.4% on unbiased data. ReBias more than doubled this to 22.7%. At a slightly lower bias ($\rho=0.997$), ReBias achieved 64.2% accuracy compared to the vanilla model's 33.4%.
  • ImageNet: ReBias improved "unbiased" texture accuracy from 88.8% to 90.5% and showed significant gains on the challenging ImageNet-A (adversarial) dataset, moving from 24.9% to 29.6%.
  • Action Recognition: On the Mimetics dataset, ReBias improved accuracy from 18.9% to 22.4%, proving it successfully encouraged the model to focus on temporal motion rather than static background cues.

Limitations and Future Work

The primary limitation of ReBias is that it still requires the researcher to identify the type of bias beforehand to design the appropriate biased model class $G$. If a practitioner does not know their model is relying on texture, they won't know to deploy a small-receptive-field CNN as their "bias trap."

Future work could explore more general or automated ways to define these bias-characterizing models. Extending the framework to fields like Natural Language Processing—where shortcuts like keyword matching are a major hurdle—represents a promising next step.

Summary updated

BibTeX
@inproceedings{bahng2020learning,
  author = {Hyojin Bahng and Sanghyuk Chun and Sangdoo Yun and Jaegul Choo and Seong Joon Oh},
  title = {{Learning De-biased Representations with Biased Representations}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=E_TX9XvccC4},
}
Figure