NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Demystifying CLIP Data

Hu Xu, Saining Xie, Xiaoqing Tan, Po-Yao Huang, Russell Howes, Vasu Sharma, Shang-Wen Li, Gargi Ghosh, Luke Zettlemoyer, Christoph Feichtenhofer

TL;DR

Researchers from Meta AI and the University of Washington have finally "cracked the code" on how OpenAI likely curated the data for CLIP. By introducing MetaCLIP, they demonstrate that the secret to CLIP’s success isn't a fancy model architecture, but a simple, scalable algorithm that balances training data against a distribution of 500,000 metadata concepts. This transparent approach outperforms the original CLIP on standard benchmarks.

The Problem: The Black Box of CLIP's Data

Since its release, OpenAI’s CLIP (Contrastive Language-Image Pre-training) has become the bedrock of modern computer vision and generative AI models like DALL-E. However, the 400-million-pair dataset used to train it (WIT400M) was never released, leaving the curation process a "black box."

Previous attempts to replicate CLIP, such as the LAION datasets, relied on using the pre-trained CLIP model itself to filter new data. The authors argue this methodology is problematic: it’s circular (distilling an existing model rather than learning from scratch) and introduces inherited biases. The community has lacked a transparent, "from-scratch" methodology for curating high-quality vision-language data at a massive scale.

Methods: Introducing MetaCLIP

The authors propose MetaCLIP (Metadata-Curated Language-Image Pre-training). The core idea is to move away from complex model-based filters and return to a principled, metadata-driven approach.

  1. Metadata Construction: They rebuilt the "500,000 queries" mentioned in the original CLIP paper using WordNet synsets and Wikipedia (uni-grams, bi-grams with high mutual information, and popular article titles).
  2. Sub-string Matching: They took raw image-text pairs from CommonCrawl and mapped the text to this metadata. If a caption contains a metadata entry, it’s a candidate for the dataset. This naturally filters out "noise" like random ID strings or dates that don't map to visual concepts.
  3. The Balancing Act ($t \le 20k$): This is the "secret sauce." Instead of taking all matches, they capped the number of pairs for any single metadata entry at 20,000.
Effect of the 20k balancing threshold on the data distribution.

As shown above, capping the data prevents common "head" terms (like "photo" or "the") from dominating the dataset. This ensures the model learns a diverse, "long-tail" distribution of concepts rather than overfitting to the most frequent web terms.

  1. Independent Sampling: To make this scale to billions of pairs, they developed a simple algorithm that samples data points independently based on their metadata match counts, avoiding the need for expensive data structures like inverted indexes.

Datasets

  • Source Pool: Raw data from CommonCrawl (CC) snapshots spanning 2013 to 2023.
  • Pool 1: 1.6B image-text pairs used to derive a 400M subset (to match CLIP’s scale).
  • Pool 2: A larger pool of 10.7B pairs used to scale MetaCLIP to 1B and 2.5B data points.
  • Evaluation: The models were tested on ImageNet-1k (zero-shot) and a suite of 26-38 other downstream tasks (including CIFAR, SUN397, and various retrieval benchmarks).

Key Insights and Results

The paper reinforces the "Data-Centric AI" mantra. Using the exact same training budget and architecture as the original CLIP, MetaCLIP performs better simply because the data distribution is cleaner and more balanced.

Zero-shot ImageNet accuracy comparing MetaCLIP to raw data and original CLIP.
  • More Data Can Hurt: One of the most surprising findings is that training on more data (the full 1.1B raw pool) actually lowered accuracy compared to the curated 400M subset. Without balancing, the model overfits to common web noise.
  • Outperforming CLIP: On zero-shot ImageNet classification with a ViT-B/32 model, MetaCLIP achieved 70.8% accuracy, significantly higher than the original CLIP’s 68.3%.
  • Scaling Success: When scaled to 1B data points (while keeping the training budget the same), accuracy rose to 72.4%.
  • State-of-the-Art Scaling: Using a massive ViT-bigG/14 model, MetaCLIP reached 82.1% on ImageNet, proving the curation method holds up even at the extreme high end of model capacity.
  • Task Agnosticism: By balancing the metadata, the authors created a "foundation" dataset that isn't biased toward any specific task, making it more robust for zero-shot transfer across many different domains.

Limitations and Future Work

  • Metadata Dependency: MetaCLIP is only as good as its metadata list. If a concept isn't in WordNet or Wikipedia, the model likely won't learn it well.
  • Sub-string Limitations: Simple sub-string matching lacks context. For example, it might match the entry "apple" in a text about a computer, not the fruit.
  • Source Bias: While MetaCLIP balances the distribution, it still draws from CommonCrawl, which contains inherent societal biases and "web noise" that simple filtering can't entirely eliminate.

The authors suggest that future work should explore more dynamic or hierarchical metadata structures to further refine the "long tail" of visual concepts, pushing the boundaries of open-source, data-centric AI.

Summary updated

BibTeX
@inproceedings{xu2024demystifying,
  author = {Hu Xu and Saining Xie and Xiaoqing Tan and Po-Yao Huang and Russell Howes and Vasu Sharma and Shang-Wen Li and Gargi Ghosh and Luke Zettlemoyer and Christoph Feichtenhofer},
  title = {{Demystifying CLIP Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=5BCFlnfE1g},
}
Figure