Data Determines Distributional Robustness in Contrastive Language Image Pre-training (CLIP)
Alex Fang, Gabriel Ilharco, Mitchell Wortsman, Yuhao Wan, Vaishaal Shankar, Achal Dave, Ludwig Schmidt
TL;DR
The paper investigates why CLIP-style image-language models exhibit strong robustness to natural distribution shifts. Through controlled experiments isolating training set size, data distribution, language supervision, test-time prompts, and loss functions, the authors find that diverse training distributions are the key driver of robustness, with language supervision contributing little direct benefit. By introducing ImageNet-Captions and conducting comprehensive YFCC-based studies, they demonstrate that image-only pretraining on diverse data can match CLIP-like robustness, underscoring the primacy of data-centric factors over language cues. The work emphasizes dataset design as a crucial lever for improving real-world robustness in multimodal models.
Abstract
Contrastively trained language-image models such as CLIP, ALIGN, and BASIC have demonstrated unprecedented robustness to multiple challenging natural distribution shifts. Since these language-image models differ from previous training approaches in several ways, an important question is what causes the large robustness gains. We answer this question via a systematic experimental investigation. Concretely, we study five different possible causes for the robustness gains: (i) the training set size, (ii) the training distribution, (iii) language supervision at training time, (iv) language supervision at test time, and (v) the contrastive loss function. Our experiments show that the more diverse training distribution is the main cause for the robustness gains, with the other factors contributing little to no robustness. Beyond our experimental results, we also introduce ImageNet-Captions, a version of ImageNet with original text annotations from Flickr, to enable further controlled experiments of language-image training.
