Combining Diverse Feature Priors

Saachi Jain, Dimitris Tsipras, Aleksander Madry

Deep learning models are incredibly adept at finding patterns, but they are notoriously unpicky about which patterns they use. If a dataset of "cows" consistently features green grass, a model might learn to identify "green" as "cow." This reliance on easy-to-find but unreliable features—like texture or background color—is known as a spurious correlation.

Even when models avoid obvious shortcuts, they often exhibit a "texture bias," preferring local patterns over global structures like shape. To address this, researchers are exploring a fundamental design question: instead of trying to build one perfect model, can we leverage different architectural constraints (priors) to force models to view data through distinct "perspectives"? By training models with diverse feature priors, we can create ensembles that cover each other's blind spots and use unlabeled data to "teach" each other to ignore spurious correlations.

Methods: Enforcing Diverse Perspectives

The researchers focus on combining models with different inherent biases to improve generalization and resilience to data shifts. They achieve this through three primary mechanisms:

1. Imposing Feature Priors

To create diverse perspectives, the authors explicitly restrict the features different models can access:

  • Shape-biased models: Edge detection filters (like Canny or Sobel) are used as a preprocessing step to strip away texture and color, forcing the model to learn purely from geometry.
  • Texture-biased models: The authors utilize BagNets, an architecture that restricts the "receptive field" (what the model sees at once) to small local patches, preventing it from recognizing overall global shapes.
Visualizing different feature priors: Original image compared to Sobel, Canny, and BagNet processing.

2. Ensembling

This is a standard post-hoc combination of model predictions. Because models trained with different priors make different mistakes, their errors rarely overlap. Even if a shape-biased model is less accurate overall than a standard model, it serves as a highly effective ensemble partner.

3. Co-training

Co-training represents the paper's most compelling application. In a semi-supervised setting (limited labeled data, abundant unlabeled data), two models with different priors label the unlabeled data for each other. Because they have distinct failure modes, one model can provide a "correct" pseudo-label for an image that confuses the other.

Datasets

The approach was evaluated across several standard and modified benchmarks:

  • CIFAR-10 & STL-10: Standard image classification datasets used in a semi-supervised setup (e.g., only 100 labeled examples per class).
  • ImageNet: Used to validate that prediction diversity holds at scale.
  • Tinted STL-10: A synthetic dataset where a specific color tint is added to training images of certain classes, creating a spurious correlation "trap."
  • Biased CelebA: A real-world dataset for gender classification where hair color is strongly, but spuriously, correlated with gender in the training set.

Key Insights and Results

The core insight of this work is that diversity trumps individual accuracy when combining models. Standard self-training (where a model labels data for itself) often reinforces its own biases. Co-training with diverse priors breaks this cycle.

If a texture-biased model is fooled by a "tinted" background, the shape-biased model (which cannot see the tint) provides the correct label, steering the texture model back toward the actual object. As co-training progresses, the models "teach" each other useful, generalizable features, eventually converging on a more robust prediction rule.

Accuracy improvements on CIFAR-10 and STL-10 using diverse feature priors.

Quantitative results strongly support this approach:

  • Ensembling: On STL-10, an ensemble of a shape-biased model (Canny) and a texture-biased model (BagNet) achieved 61.42% accuracy, significantly outperforming an ensemble of two standard models (57.06%).
  • Co-training Performance: On CIFAR-10, co-training a shape-biased model with a texture-biased model reached 74.25% accuracy, compared to just 64.02% for standard self-training.
  • Defeating Spurious Correlations: In the "Tinted STL-10" experiment, standard models failed miserably when the tint was removed at test time (~14% accuracy). However, when co-trained with a shape-biased model, the texture-biased model's accuracy jumped to 55%, proving it had learned to ignore the "easy" tint and focus on the actual object.

Limitations and Future Work

While promising, the current approach relies on relatively simple, hand-crafted methods to impose priors (edge filters and receptive field limits), which often result in lower "base" accuracy compared to standard models.

Future work has a massive unexplored design space of other potential priors (e.g., frequency-based or robustness-based) to investigate. Additionally, extending these "diverse perspectives" beyond image classification to more complex tasks like object detection or Natural Language Processing—where priors might involve syntax versus semantics—remains an exciting open challenge.

Summary updated

BibTeX
@inproceedings{jain2022combining,
  author = {Saachi Jain and Dimitris Tsipras and Aleksander Madry},
  title = {{Combining Diverse Feature Priors}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=gccdzDu5Ur},
}
Figure