When does Bias Transfer in Transfer Learning?

Hadi Salman, Saachi Jain, Andrew Ilyas, Logan Engstrom, Eric Wong, Aleksander Madry · DOI

Transfer learning is a cornerstone of modern AI, yet it introduces a significant risk: the transfer of pre-training biases to downstream tasks. This study demonstrates that biases learned by a source model—such as spurious correlations or planted backdoors—persist in target models even when the target datasets are balanced or explicitly de-biased. Through experiments across 11 benchmarks, the authors show that bias is "sticky," often hiding in the feature representation itself.

The Problem: Hidden Baggage in Source Models

In contemporary machine learning, the standard practice involves fine-tuning a high-performing "source model" (pre-trained on massive datasets like ImageNet) for a specific "target task." A common assumption is that a carefully curated, unbiased target dataset will yield a fair final model. This paper challenges that assumption, investigating whether the internal representations and "shortcuts" learned during pre-training leak into the final model. If a model learns to recognize a "tennis ball" primarily by looking for a "circular yellow shape," does that sensitivity remain when we repurpose the model to classify birds or aircraft?

Methods

The researchers investigated bias transfer through three distinct lenses:

  1. Synthetic Biases (Backdoors): They used "backdoor attacks" as a controlled testbed, planting a "trigger" (a small yellow square) in a subset of the source data. They then measured the Attack Success Rate (ASR)—how often the trigger caused misclassification in the target task.
  2. Amplified Natural Biases: They created biased versions of datasets like MS-COCO (e.g., dogs always appearing with humans) and CelebA (associating "male" with "old") to mimic real-world imbalances.
  3. "In the Wild" Biases: They identified existing, non-engineered biases in standard ImageNet-trained models, such as heavy reliance on "chainlink fence" patterns.

The study compared two common transfer methods: fixed-feature transfer (training only the last layer) and full-network fine-tuning (updating all weights) across 11 standard computer vision benchmarks, including CIFAR-10, Birdsnap, and Stanford Cars.

Key Results: The Persistence of Bias

The study found that bias is remarkably "sticky." Even when a target dataset contains zero instances of the bias (e.g., no yellow squares or no people), the model remains sensitive to those features.

Attack Success Rate (ASR) across various target datasets, comparing models pre-trained on unbiased vs. biased source datasets.

As shown in Figure 1, synthetic biases transferred universally across all 11 target datasets. In fixed-feature transfer, the ASR for biased source models often approached 100%, while unbiased models remained near 0%. This persistence was also observed with natural biases; for instance, a model fine-tuned on a "person-free" dataset was still significantly more likely to predict "dog" over "cat" if a person was present in the image, provided the source model had learned that correlation.

Why De-biasing is Challenging

The authors provide a linear regression intuition for this phenomenon: if a bias direction learned in the source task is orthogonal to the features in the target task, standard optimization (SGD) won't update those weights. The bias essentially hides in the "null space" of the target data.

Impact of debiasing the target dataset on Attack Success Rate (ASR) for aircraft and CIFAR-10 tasks.

Consequently, de-biasing is difficult. Simply adding "counter-examples" to the target dataset does not fully remove the bias in fixed-feature settings. As illustrated in Figure 6, while increasing the ratio of debiased data reduces ASR, the sensitivity often remains non-zero. While full-network fine-tuning reduces the intensity of bias transfer compared to fixed-feature transfer, it rarely eliminates it entirely.

Conclusion and Future Work

Bias is not merely a classification error; it is baked into the feature extractor itself. The model's "eyes" are trained to look for specific shortcuts, and it continues to see them even when they are no longer relevant.

This research highlights a critical need for sophisticated "model auditing." Since biases can be latent—present in the weights but not triggered by the target data—we need better ways to probe pre-trained models before deploying them in sensitive real-world applications. Future work is needed to determine if these findings extend beyond image classification to domains like Natural Language Processing (NLP) or Reinforcement Learning.

Summary updated

BibTeX
@misc{salman2022when,
  author = {Hadi Salman and Saachi Jain and Andrew Ilyas and Logan Engstrom and Eric Wong and Aleksander Madry},
  title = {{When does Bias Transfer in Transfer Learning?}},
  year = {2022},
  eprint = {2207.02842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.02842},
}
Figure