TL;DR
Deep learning models often fail because they latch onto the simplest possible "shortcuts" (spurious correlations) in training data. This paper introduces D-BAT (Diversity-By-disAgreement Training), a method that trains an ensemble of models to agree on training data but disagree on unlabeled out-of-distribution (OOD) data, forcing them to capture a more diverse and robust set of predictive features.
The Problem: Simplicity Bias and Shortcut Learning
Standard gradient-based learning algorithms suffer from an implicit simplicity bias (SB). When multiple features can explain the training data, the optimizer naturally gravitates toward the simplest one. For example, if a model is trained to distinguish cows from camels, and all cows are on green grass while camels are on yellow sand, the model might simply learn to detect "green vs. yellow" rather than the actual animals.
This "shortcut learning" is efficient but brittle. When the model encounters a cow on sand (a distribution shift), it fails. While we might know these features are spurious, a model seeing only training data cannot tell which features are "transferable" and which are "shortcuts." The authors aim to solve this by ensuring that even if one model picks the simple shortcut, other models in an ensemble are forced to find alternative, potentially more robust, predictive features.
The Solution: Diversity-By-disAgreement Training (D-BAT)
The core proposal is D-BAT. The strategy is simple: Diverse hypotheses should agree on what is known (training data) but disagree on what is unknown (OOD data).
The authors propose a sequential training approach:
- Train Model 1 ($h_1$): Use standard Empirical Risk Minimization (ERM) on the training data. Due to simplicity bias, $h_1$ will likely capture the simplest predictive features.
- Train Model 2 ($h_2$): Train $h_2$ to minimize classification loss on the training data while maximizing disagreement with $h_1$ on a set of unlabeled OOD samples ($D_{ood}$).
By forcing $h_2$ to disagree with $h_1$ on OOD data, $h_2$ is effectively "pushed away" from using the same simple features as $h_1$. To disagree on OOD samples while still performing well on training samples, $h_2$ must find a different set of features that are also predictive. This process can be extended to an ensemble of $K$ models. The paper provides a formal derivation of this objective based on the notion of generalized discrepancy in domain adaptation theory.
Key Insights and Ideas
- Disagreement as a Proxy for Diversity: Instead of forcing models to have different weights (parameter diversity), D-BAT enforces functional diversity. Models are forced to behave differently on unseen data, which is a more direct way to ensure they rely on different underlying features.
- Sequential vs. Simultaneous Training: The authors found that training models one after another is superior to training them all at once. Sequential training preserves the "simple" ERM solution while forcing subsequent models to explore more complex ones. Simultaneous training often results in all models becoming unnecessarily complex.
- Uncertainty is a Freebie: In an ensemble where models are forced to disagree on OOD data, high disagreement naturally translates to high predictive entropy. This makes D-BAT exceptionally good at OOD detection and providing reliable uncertainty estimates without needing complex Bayesian machinery.
- The "Agreement" Loss: The authors define a specific "Agreement" (AG) term for multi-class settings that binarizes softmax distributions, making the disagreement objective computationally efficient even for large ensembles.
Key Results
The authors evaluate D-BAT across several challenging settings, including synthetic datasets (C-MNIST, Dominoes) and natural distribution shifts (Waterbirds, Camelyon17, Office-Home).
- Crushing Spurious Correlations: On C-MNIST, where standard ERM models fail completely (achieving ~12% accuracy, near random), D-BAT achieves ~90% accuracy by successfully ignoring color and learning digit shapes.
- Superior OOD Generalization: On the Camelyon17 medical dataset, D-BAT reached 93.1% accuracy, significantly outperforming standard ensembles (80.9%) and other specialized domain adaptation methods like CORAL or FixMatch.
- Better Uncertainty Calibration: D-BAT ensembles showed much better calibration on OOD data than "Deep Ensembles" or MC-Dropout. While standard ensembles are often "confidently wrong" on OOD data, D-BAT models correctly "agree to disagree," resulting in high uncertainty.
Limitations and Future Work
- Choice of OOD Distribution: D-BAT requires access to some unlabeled OOD data during training. If the chosen $D_{ood}$ is too similar to the training data, or if it introduces its own misleading shortcuts, the method's effectiveness might decrease.
- Complexity vs. Robustness: The authors note that "complex" features aren't always better than "simple" ones; they are just different. The goal is to have a diverse library of features so that at least one model in the ensemble remains accurate under shift.
- Future Directions: Improving the selection of OOD samples and developing a more robust theory for when "complex" features are guaranteed to be more transferable are key areas for future research.
Summary updated