Is Large-Scale Pretraining the Secret to Good Domain Generalization?
Piotr Teterwak, Kuniaki Saito, Theodoros Tsiligkaridis, Bryan A. Plummer, Kate Saenko
TL;DR
The paper questions whether improvements in multi-source Domain Generalization (DG) stem primarily from stronger pretraining rather than genuine learning of new features. It introduces the Alignment Hypothesis, positing that final DG performance is high if and only if pretraining yields strong alignment between image and class-text embeddings, formalized as $AlignmentScore(I,T) = \frac{\langle f_I(I), f_T(T) \rangle}{\|f_I(I)\| \cdot \|f_T(T)\|}$. Using five DomainBed datasets and an OpenCLIP-ViT-B/16 backbone, the authors create In-Pretraining (IP) and Out-of-Pretraining (OOP) evaluation splits to analyze DG methods under high- and low-alignment conditions. They find that DG methods excel on IP data but struggle on OOP data, with CLIPood performing best on IP and showing limited gains on OOP, while methods like MIRO+MPA provide notable OOP improvements, indicating a reliance on pretraining alignment. The work advocates rethinking DG benchmarking by incorporating IP/OOP splits to better measure generalization beyond pretraining alignment and motivates developing methods that learn transferable features beyond the backbone’s alignment.”
Abstract
Multi-Source Domain Generalization (DG) is the task of training on multiple source domains and achieving high classification performance on unseen target domains. Recent methods combine robust features from web-scale pretrained backbones with new features learned from source data, and this has dramatically improved benchmark results. However, it remains unclear if DG finetuning methods are becoming better over time, or if improved benchmark performance is simply an artifact of stronger pre-training. Prior studies have shown that perceptual similarity to pre-training data correlates with zero-shot performance, but we find the effect limited in the DG setting. Instead, we posit that having perceptually similar data in pretraining is not enough; and that it is how well these data were learned that determines performance. This leads us to introduce the Alignment Hypothesis, which states that the final DG performance will be high if and only if alignment of image and class label text embeddings is high. Our experiments confirm the Alignment Hypothesis is true, and we use it as an analysis tool of existing DG methods evaluated on DomainBed datasets by splitting evaluation data into In-pretraining (IP) and Out-of-pretraining (OOP). We show that all evaluated DG methods struggle on DomainBed-OOP, while recent methods excel on DomainBed-IP. Put together, our findings highlight the need for DG methods which can generalize beyond pretraining alignment.
