Unraveling the Key Components of OOD Generalization via Diversification

Harold Luc Benoit, Liangze Jiang, Andrei Atanov, Oguzhan Fatih Kar, Mattia Rigotti, Amir Zamir

TL;DR

This paper deconstructs "diversification" methods—a popular strategy for helping AI generalize to new environments—and reveals they are surprisingly fragile. The authors show that these methods only work when there is a perfect "sweet spot" match between the unlabeled data used and the specific learning algorithm's inductive biases. Furthermore, simply adding more hypotheses doesn't fix the underlying problem.

The Challenge of Spurious Correlations

Machine learning models are notorious for taking shortcuts. They often latch onto spurious correlations—features like a background or a specific camera angle that happen to correlate with a label in the training set but disappear in the real world. For example, a model might learn to identify a "cow" by looking for green grass, failing miserably when it sees a cow on a beach.

A recent class of "diversification" methods (like DivDis and D-BAT) tries to solve this by forcing the model to find multiple, diverse ways to explain the training data. The hope is that if you find enough diverse hypotheses, one of them will eventually be the "true" causal one that works everywhere. However, while these methods show state-of-the-art results, we haven't really understood why they work or what their critical failure points are. This paper sets out to unravel those components.

Deconstructing Diversification Methods

The authors perform a systematic "stress test" of two representative diversification methods:

  • DivDis: Uses a mutual information-based loss to find diverse hypotheses simultaneously.
  • D-BAT: Finds hypotheses sequentially, aiming to find new models that disagree with previous ones on unlabeled data.

The researchers use a mix of theoretical proofs and empirical experiments across several benchmarks (including Waterbirds-CC, Office-Home, and CelebA-CC). They manipulate two primary variables: the distribution of the unlabeled data used to promote diversity, and the learning algorithm itself (swapping architectures and pretraining strategies).

Decision boundaries of D-BAT and DivDis shift dramatically depending on the spurious ratio of the unlabeled data.

Key Insights: Fragility and the "Sweet Spot"

The study reveals several critical vulnerabilities in current diversification approaches:

The "Sweet Spot" Trap: Diversification methods are extremely sensitive to the "spurious ratio" of the unlabeled data. As shown in the experiments, D-BAT performs best when unlabeled data is "inversely correlated" with the training bias, while DivDis prefers "balanced" unlabeled data. Deviating from these specific sweet spots can cause an absolute accuracy drop of up to 30%.

The "K" Fallacy: A common assumption is that if two hypotheses aren't enough, finding ten or sixty-four will eventually capture the truth. The authors show this isn't true in practice. Increasing the number of hypotheses ($K$) does not bridge the performance gap caused by poor data or model choices.

Test accuracy of diversification methods varies wildly based on the unlabeled data's spurious ratio. Increasing the number of hypotheses (K) fails to bridge this performance gap.

Diversification is Not Enough: You cannot simply "diversify" your way out of a bad model choice. The "inductive bias" of the architecture and pretraining is still the dominant factor. In the Waterbirds-CC and Office-Home datasets, using the "second-best" model architecture led to a consistent 10% to 20% drop in performance. Interestingly, the "best" models on ImageNet (like ViT-MAE) often underperformed significantly in these diversification tasks, proving that standard performance metrics are poor proxies for OOD robustness.

Co-dependence is Key: The "best" architecture depends on the unlabeled data you have, and vice versa. They are co-dependent variables. An architecture that works perfectly with one set of unlabeled data might fail completely with another.

Conclusion and Future Directions

The paper's findings are a wake-up call for practitioners relying on diversification for OOD generalization. The authors provide theoretical proof that even with a massive number of diverse hypotheses, there is no guarantee that any of them will generalize better than a random guess without the right inductive biases.

Future research must focus on adaptive methods that can automatically adjust to the distribution of available unlabeled data rather than requiring a specific "sweet spot." Additionally, since ImageNet accuracy is a poor proxy, the field needs better ways to select "good" models for diversification tasks without relying on test set access.

Summary updated

BibTeX
@inproceedings{benoit2024unraveling,
  author = {Harold Luc Benoit and Liangze Jiang and Andrei Atanov and Oguzhan Fatih Kar and Mattia Rigotti and Amir Zamir},
  title = {{Unraveling the Key Components of OOD Generalization via Diversification}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Lvf7GnaLru},
}
Figure