[Paper Review] Demystifying CLIP Data
The paper presents MetaCLIP, a metadata-driven data curation method that reveals and improves CLIP-style data collection by balancing a metadata-informed subset from raw web data, achieving higher zero-shot ImageNet accuracy than CLIP across multiple ViT scales without additional modeling changes.
Contrastive Language-Image Pre-training (CLIP) is an approach that has advanced research and applications in computer vision, fueling modern recognition systems and generative models. We believe that the main ingredient to the success of CLIP is its data and not the model architecture or pre-training objective. However, CLIP only provides very limited information about its data and how it has been collected, leading to works that aim to reproduce CLIP's data by filtering with its model parameters. In this work, we intend to reveal CLIP's data curation approach and in our pursuit of making it open to the community introduce Metadata-Curated Language-Image Pre-training (MetaCLIP). MetaCLIP takes a raw data pool and metadata (derived from CLIP's concepts) and yields a balanced subset over the metadata distribution. Our experimental study rigorously isolates the model and training settings, concentrating solely on data. MetaCLIP applied to CommonCrawl with 400M image-text data pairs outperforms CLIP's data on multiple standard benchmarks. In zero-shot ImageNet classification, MetaCLIP achieves 70.8% accuracy, surpassing CLIP's 68.3% on ViT-B models. Scaling to 1B data, while maintaining the same training budget, attains 72.4%. Our observations hold across various model sizes, exemplified by ViT-H achieving 80.5%, without any bells-and-whistles. Curation code and training data distribution on metadata is made available at https://github.com/facebookresearch/MetaCLIP.
Motivation & Objective
- Reveal CLIP's data curation approach and its impact on model performance while keeping architecture and training schedule fixed.
- Propose MetaCLIP, a transparent, open data curation pipeline using metadata-derived balancing.
- Quantify benefits of metadata-guided curation over raw web data across multiple model sizes and data scales.
Proposed method
- Construct a metadata set derived from WordNet synsets and Wikipedia entries to mirror CLIP's query space.
- Apply sub-string matching to align image-text pairs with metadata entries from a large pool (CommonCrawl).
- Build an inverted index from entry to texts and analyze distribution of matches to reveal data characteristics.
- Balance the data by capping per-entry counts to a threshold t, thereby equalizing head and tail entries and reducing noise.
- Provide a simple, scalable algorithm (independent sampling) to curate D* from D using M and t, avoiding costly inverted-index storage.
- Evaluate across ViT-B/32, ViT-B/16, ViT-L/14, and ViT-H/14 under CLIP-like training budgets.
Experimental results
Research questions
- RQ1Can metadata-driven balancing improve the quality and distribution of training data for vision-language pretraining without changing the model or training objective?
- RQ2How does metadata curation and balancing affect zero-shot performance on ImageNet and a broad benchmark suite across model sizes and data scales?
- RQ3What are the impacts of data scale (400M vs 1B vs 2.5B) and balancing threshold t on downstream accuracy and data diversity?
- RQ4How does MetaCLIP compare to CLIP and OpenCLIP when trained under the same budget using web-sourced data?
Key findings
- MetaCLIP with 400M data outperforms CLIP’s WIT400M and LAION-400M on zero-shot ImageNet across ViT models (e.g., ViT-B/32: 70.8% vs 68.3%).
- Balancing metadata counts with t = 20k yields stronger performance than unbalanced data and significantly reduces dominance by head entries.
- Scaling to 1B and 2.5B data with the same budget maintains or improves ImageNet performance, e.g., ViT-L/14 at 79.0–79.4% and ViT-H/14 at 80.5% on ImageNet for MetaCLIP (2.5B).
- MetaCLIP achieves higher average accuracy across 26 tasks compared to CLIP and OpenCLIP for ViT-B/32, ViT-B/16, and ViT-L/14.
- Online balancing (data loader) provides comparable gains, highlighting practical deployment potential.
- Ablation shows t is robust around 15k–35k, with p=20k oftenoptimal for 400M scale; unbalanced 1.6B data degrades ImageNet performance compared to balanced setups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.