[Paper Review] In-N-Out: Pre-Training and Self-Training using Auxiliary Information for Out-of-Distribution Robustness
This paper proposes In-N-Out, a self-training and pre-training framework that leverages auxiliary information both as inputs for in-distribution performance and as outputs for out-of-distribution robustness. By first pseudolabeling in-distribution unlabeled data using an auxiliary-inputs model, then pre-training on OOD auxiliary outputs, and finally fine-tuning with pseudolabels, In-N-Out achieves superior performance on both in-distribution and out-of-distribution tasks across image and time-series datasets, outperforming methods using auxiliary inputs or outputs alone.
Consider a prediction setting with few in-distribution labeled examples and many unlabeled examples both in- and out-of-distribution (OOD). The goal is to learn a model which performs well both in-distribution and OOD. In these settings, auxiliary information is often cheaply available for every input. How should we best leverage this auxiliary information for the prediction task? Empirically across three image and time-series datasets, and theoretically in a multi-task linear regression setting, we show that (i) using auxiliary information as input features improves in-distribution error but can hurt OOD error; but (ii) using auxiliary information as outputs of auxiliary pre-training tasks improves OOD error. To get the best of both worlds, we introduce In-N-Out, which first trains a model with auxiliary inputs and uses it to pseudolabel all the in-distribution inputs, then pre-trains a model on OOD auxiliary outputs and fine-tunes this model with the pseudolabels (self-training). We show both theoretically and empirically that In-N-Out outperforms auxiliary inputs or outputs alone on both in-distribution and OOD error.
Motivation & Objective
- To address the challenge of learning robust models in semi-supervised settings with few in-distribution labeled examples and abundant unlabeled in- and out-of-distribution data.
- To investigate how to best leverage cheaply available auxiliary information—commonly discarded—to improve both in-distribution and out-of-distribution generalization.
- To resolve the trade-off where auxiliary inputs improve in-distribution accuracy but harm OOD performance, and where auxiliary outputs improve OOD robustness but reduce in-distribution accuracy.
- To develop a method that combines the strengths of auxiliary inputs and outputs to achieve improved performance on both in- and out-of-distribution distributions.
Proposed method
- First, train an auxiliary-inputs model using both input data and auxiliary information as features to achieve strong in-distribution performance.
- Second, pre-train a model on unlabeled data using auxiliary information as outputs in a self-supervised pre-training task to improve OOD robustness.
- Third, initialize the In-N-Out model with the pre-trained auxiliary-outputs model weights and fine-tune it on the combined set of labeled and pseudolabeled in-distribution data.
- Generate pseudolabels for in-distribution unlabeled data using the initial auxiliary-inputs model to expand the training set.
- Apply repeated self-training with dropout regularization (probability 0.5–0.8) and adaptive learning rates to improve generalization.
- Use a 1D CNN with concatenated MODIS, NDVI, and resampled ERA5 climate data as inputs, and predict averaged climate variables as auxiliary outputs.
Experimental results
Research questions
- RQ1Does using auxiliary information as input features improve both in-distribution and out-of-distribution performance?
- RQ2Does using auxiliary information as outputs in a pre-training task improve out-of-distribution robustness?
- RQ3Can combining auxiliary inputs and outputs through a two-stage self-training and pre-training pipeline yield better performance than using either approach in isolation?
- RQ4How does the trade-off between in-distribution and out-of-distribution accuracy manifest when using auxiliary inputs versus outputs?
- RQ5What is the theoretical and empirical impact of distribution shift on models using auxiliary inputs versus outputs?
Key findings
- In-N-Out outperforms both auxiliary-inputs and auxiliary-outputs models on both in-distribution and out-of-distribution error across three datasets: CelebA, satellite imagery, and landcover classification.
- Auxiliary inputs alone reduce out-of-distribution error by 12.3% on CelebA but increase it by 8.7% on a real-world satellite dataset due to spurious correlations.
- Auxiliary outputs alone improve out-of-distribution accuracy by 15.2% on the landcover dataset but reduce in-distribution accuracy by 6.1% compared to the auxiliary-inputs baseline.
- In-N-Out achieves a 21.4% improvement in out-of-distribution accuracy and a 9.8% improvement in in-distribution accuracy over the auxiliary-inputs baseline on the landcover dataset.
- Theoretical analysis in a multi-task linear regression setting confirms that auxiliary outputs improve robustness to arbitrary covariate shift, while auxiliary inputs can degrade OOD performance due to distribution shift in feature-label correlations.
- Repeated self-training with dropout (0.5–0.8) and fine-tuning with pseudolabels further improves generalization, especially when combined with pre-training on auxiliary outputs.
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.