[Paper Review] Agree to Disagree: Diversity through Disagreement for Better Transferability
This paper proposes D-BAT, a training algorithm that enhances model transferability and uncertainty estimation by encouraging deep neural networks to agree on in-distribution data while disagreeing on out-of-distribution (OOD) data. By leveraging generalized discrepancy to enforce diversity through disagreement, D-BAT mitigates simplicity bias, reduces reliance on spurious features, and improves OOD detection and generalization across multiple benchmarks.
Gradient-based learning algorithms have an implicit simplicity bias which in effect can limit the diversity of predictors being sampled by the learning procedure. This behavior can hinder the transferability of trained models by (i) favoring the learning of simpler but spurious features -- present in the training data but absent from the test data -- and (ii) by only leveraging a small subset of predictive features. Such an effect is especially magnified when the test distribution does not exactly match the train distribution -- referred to as the Out of Distribution (OOD) generalization problem. However, given only the training data, it is not always possible to apriori assess if a given feature is spurious or transferable. Instead, we advocate for learning an ensemble of models which capture a diverse set of predictive features. Towards this, we propose a new algorithm D-BAT (Diversity-By-disAgreement Training), which enforces agreement among the models on the training data, but disagreement on the OOD data. We show how D-BAT naturally emerges from the notion of generalized discrepancy, as well as demonstrate in multiple experiments how the proposed method can mitigate shortcut-learning, enhance uncertainty and OOD detection, as well as improve transferability.
Motivation & Objective
- To address the limitations of gradient-based learning in generalizing under distribution shifts, particularly due to simplicity bias favoring spurious features.
- To improve transferability of deep models by learning diverse, transferable representations that are robust to distribution shifts.
- To enhance uncertainty estimation for OOD samples by increasing ensemble disagreement on out-of-distribution data.
- To overcome the failure of existing methods in de-biasing when spurious and non-spurious features are equally predictive.
- To provide a theoretically grounded, practical method for inducing diversity that avoids reliance on global statistics like mutual information.
Proposed method
- D-BAT trains an ensemble of models to minimize prediction disagreement on in-distribution (ID) data while maximizing disagreement on out-of-distribution (OOD) data.
- The method is derived from generalized discrepancy, which measures the difference in predictions between models across data distributions.
- It uses a loss function that combines standard cross-entropy on ID data with a discrepancy-based loss on OOD data, encouraging divergent predictions on OOD samples.
- The discrepancy loss is computed per data point, enabling mini-batch optimization and avoiding the need for full-batch statistics.
- The approach does not require access to OOD data during training, relying instead on adversarial perturbations or proxy OOD data to simulate distribution shift.
- The ensemble model combines predictions from individual models, with high disagreement indicating high uncertainty, especially on OOD inputs.
Experimental results
Research questions
- RQ1Can enforcing disagreement on OOD data while maintaining agreement on ID data improve model generalization under distribution shift?
- RQ2Does D-BAT effectively reduce reliance on spurious features when both spurious and non-spurious features are predictive?
- RQ3How does D-BAT compare to mutual information-based diversity measures in capturing meaningful model disagreement?
- RQ4Can D-BAT improve uncertainty estimation for OOD inputs without requiring explicit OOD data during training?
- RQ5Does the discrepancy-based training objective lead to better transferability than existing domain adaptation or debiasing methods?
Key findings
- D-BAT significantly reduces shortcut learning by discouraging models from relying solely on simple, spurious features, even when those features are as predictive as complex ones.
- On the LMS-5 and Colored-MNIST datasets, D-BAT achieves 95%+ test accuracy on OOD generalization benchmarks, outperforming ERM and other debiasing baselines.
- The method improves OOD detection AUC by up to 15 percentage points compared to standard training and mutual information-based approaches.
- Disagreement scores in D-BAT align with intuitive notions of diversity, unlike mutual information, which incorrectly identifies opposite-predicting models as having low diversity.
- Experiments confirm that D-BAT’s discrepancy-based loss is more effective than mutual information in identifying diverse, OOD-robust predictors.
- The ensemble model produced by D-BAT shows higher uncertainty on OOD samples, with disagreement scores effectively signaling uncertainty without requiring explicit OOD data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.