Learning Diverse Representations for Fast Adaptation to Distribution Shift

Daniel Pace, Alessandra Russo, Murray ShanahanarXiv 2020

Introduction

Standard supervised learning models frequently rely on the i.i.d. assumption, where training and testing data are drawn from the same distribution. However, in real-world applications, this assumption often fails due to distribution shifts. Models tend to exploit "brittle" signals—spurious correlations that are predictive in the training set but do not generalize. For instance, a model might identify a cow based on a grassy background rather than its shape. While robust features (like shape) are often present in training data, they are frequently ignored in favor of easier-to-learn shortcuts. This paper proposes a method to force a collection of models to learn diverse predictive signals, ensuring that at least one model captures robust features suitable for rapid adaptation.

Methodology: Diversity via Conditional Total Correlation

The authors introduce a framework to simultaneously train a diverse ensemble of models. The objective function balances individual model performance with a diversity measure applied to their internal representations.

The proposed framework optimizes for both individual model performance and representation diversity using a conditional total correlation measure.

To enforce diversity, the method minimizes the Conditional Total Correlation (TC) between the models' final-layer representations, conditioned on the label. Total Correlation is an information-theoretic measure of redundancy. By conditioning on the label, the models are pressured to find distinct, non-redundant ways to solve the same task, rather than simply learning random noise. Since exact TC is computationally intractable for deep networks, the authors employ a variational estimator based on the InfoNCE objective and adversarial training. A "critic" network attempts to identify if representations from different models correspond to the same input, while the models aim to make their representations appear independent to the critic.

Experimental Evaluation

The framework was evaluated on three synthetic MNIST variants designed to test robustness to distribution shift:

  • Colored MNIST (C-MNIST): Color is a stronger predictor than digit shape.
  • Rotated Colored MNIST (RC-MNIST): Introduces a common cause (rotation) affecting both digit and color.
  • Two-Colored MNIST (TC-MNIST): Features two color signals and digit shape to test scalability.

The primary goal is to see if the system can adapt to a "digit-only" test set where the spurious color signals are removed or changed.

Key Results and Insights

The proposed method demonstrates significant improvements over standard Empirical Risk Minimization (ERM). On the C-MNIST task, the approach achieved a test accuracy of approximately 69.8%, compared to the ERM baseline of 56.8%.

Test accuracy results on Colored MNIST (C-MNIST) showing the performance of the proposed conditional TC method against baselines like ERM and IRM.

Notably, the method performs competitively with Invariant Risk Minimization (IRM), despite IRM requiring explicit environment labels during training. The proposed framework can extract robust signals from a single, biased training set. Evaluation using the "Best" protocol—selecting the single most accurate model from the collection—confirms that the framework successfully isolates the robust digit signal into one model while others specialize in brittle features like color. This "sharding" of information allows for fast adaptation: a simple linear adapter can be trained on top of these frozen, diverse representations to pivot to the correct signal using minimal data from the new distribution.

Limitations and Future Directions

Despite its success, the method faces challenges. Performance tends to degrade as the number of models in the collection increases, likely due to the increased complexity of the variational optimization. Additionally, the adversarial training required for the TC estimator may be difficult to scale to high-resolution natural images. Future work may involve exploring "behavior descriptors" from Quality-Diversity literature to better navigate the feature space and find distinct niches for each model.

Summary updated

BibTeX
@misc{pace2020learning,
  author = {Daniel Pace and Alessandra Russo and Murray Shanahan},
  title = {{Learning Diverse Representations for Fast Adaptation to Distribution Shift}},
  year = {2020},
  eprint = {2006.07119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.07119},
}
Figure