Does CLIP's Generalization Performance Mainly Stem from High Train-Test Similarity?

Prasanna Mayilvahanan, Thaddäus Wiedemer, E. Rusak, Matthias Bethge, Wieland Brendel
2/12/2026

No official code found. Best implementation: brendel-group/clip-ood (11 stars, MIT, last commit 2024-08-26).

Abstract

Foundation models like CLIP are trained on hundreds of millions of samples and effortlessly generalize to new tasks and inputs. Out of the box, CLIP shows stellar zero-shot and few-shot capabilities on a wide range of out-of-distribution (OOD) benchmarks, which prior works attribute mainly to today's large and comprehensive training dataset (like LAION). However, it is questionable how meaningful terms like out-of-distribution generalization are for CLIP as it seems likely that web-scale datasets like LAION simply contain many samples that are similar to common OOD benchmarks originally designed for ImageNet. To test this hypothesis, we retrain CLIP on pruned LAION splits that replicate ImageNet's train-test similarity with respect to common OOD benchmarks. While we observe a performance drop on some benchmarks, surprisingly, CLIP's overall performance remains high. This shows that high train-test similarity is insufficient to explain CLIP's OOD performance, and other properties of the training data must drive CLIP to learn more generalizable representations. Additionally, by pruning data points that are dissimilar to the OOD benchmarks, we uncover a 100M split of LAION ($\frac{1}{4}$th of its original size) on which CLIP can be trained to match its original OOD performance.

View on arXivView PDF

Code Implementations(1)

MIT

Official code for the paper "Does CLIP's Generalization Performance Mainly Stem from High Train-Test Similarity?" (ICLR 2024)

110Python, Jupyter NotebookOct 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{mayilvahanan2026does,
  title  = {Does CLIP's Generalization Performance Mainly Stem from High Train-Test Similarity?},
  author = {Prasanna Mayilvahanan and Thaddäus Wiedemer and E. Rusak and Matthias Bethge and Wieland Brendel},
  year   = {2026},
  eprint = {2310.09562},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.09562},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.09562.svg)](https://codeofpaper.com/paper/2310.09562)

Discussion