atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

Does CLIP’s generalization performance mainly stem from high train-test similarity?

ICLR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Robust fine-tuning for OOD generalization · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Tests whether CLIP's OOD generalization stems from highly similar LAION training images by pruning LAION splits to match ImageNet-Train's similarity gap to OOD benchmarks and retraining CLIP ViT-B/32.

Problem

Whether CLIP's strong zero-shot out-of-distribution performance on ImageNet-based benchmarks is mainly explained by high train-test similarity between web-scale training data (LAION) and the test sets.

Approach

Introduces a similarity-gap alignment: prune LAION samples that are more similar to each test set than any ImageNet-Train image is, so the pruned training set matches ImageNet-Train's nearest-neighbor similarity distribution, then retrain CLIP from scratch to measure the residual OOD performance.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Remove highly similar LAION samples to match ImageNet-Train similarity for ImageNet-Sketch (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ImageNet-Sketchtop-1 accuracy: 50.21 -> 44.78Hurt
Remove highly similar LAION samples to match ImageNet-Train similarity for ImageNet-R (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ImageNet-Rtop-1 accuracy: 72.9 -> 69.48Hurt
Prune highly similar LAION samples to match ImageNet-Train similarity gaps across six test sets (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ImageNet-Sketchtop-1 accuracy: 50.21 -> 44.12Hurt
Prune highly similar LAION samples to match ImageNet-Train similarity gaps across six test sets (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ImageNet-Rtop-1 accuracy: 72.9 -> 67.88Hurt
Prune highly similar LAION samples to match ImageNet-Train similarity gaps across six test sets (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ImageNet-V2top-1 accuracy: 59.7 -> 58.61Hurt
Prune highly similar LAION samples to match ImageNet-Train similarity gaps across six test sets (ablation)CLIP ViT-B/32 trained on L-200M + ImageNet-Train · ObjectNettop-1 accuracy: 43.99 -> 44.39Helped
Far-prune to retain dissimilar samples across six ImageNet test sets, reducing training data to 100M (ablation)CLIP ViT-B/32 trained on L-200M · six ImageNet test setsaverage top-1 accuracy: 50.67 -> 50.71No clear effect
Use all-far-pruned (L-200M) instead of SemDeDup at 100M training examplesCLIP ViT-B/32 · six ImageNet test setsaverage top-1 accuracy: 43.7 -> 50.71Helped
Near-prune similar training examples instead of random-pruning (ablation)CLIP ViT-B/32 trained on LAION-200M · ImageNet-Sketch and ImageNet-Valzero-shot top-1 accuracyHurt
Far-prune dissimilar training examples instead of random-pruning (ablation)CLIP ViT-B/32 trained on LAION-200M · ImageNet-Sketch and ImageNet-Valzero-shot top-1 accuracyHelped
Near-prune based on ImageNet-Sketch or ImageNet-Val rather than far-prune (ablation)CLIP ViT-B/32 trained on LAION-200M · MNIST and SVHNzero-shot accuracyMixed
Use ViT-L-14 rather than CLIP ViT-B/16+ embeddings to compute perceptual similarity (ablation)Similarity-based pruning and analysis · ImageNet-Train nearest-neighbor similarity to test setsSpearman correlation: 0.93; 0.87; 0.90; 0.86; 0.93; 0.80No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: LAION-400M ImageNet-1k train ImageNet-Val ImageNet-Sketch ImageNet-R ImageNet-A ImageNet-V2 ObjectNet CelebA Waterbirds MNIST SVHN

Benchmarks: ImageNet-Val ImageNet-Sketch ImageNet-A ImageNet-R ImageNet-V2 ObjectNet MNIST SVHN

Metrics: top-1 zero-shot accuracy nearest-neighbor similarity correlation relative performance change

Baselines: OpenAI CLIP ViT-B/32 OpenCLIP trained on LAION-400M ImageNet-trained ResNet-101 SemDeDup 100M rand-pruned LAION-200M splits

Builds on: CLIP OpenCLIP SemDeDup effective robustness

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy