Demystifying CLIP Data

Hu Xu,Saining Xie,Xiaoqing Ellen Tan,Po-Yao Huang,Russell Howes,Vasu Sharma,Shang-Wen Li,Gargi Ghosh,Luke Zettlemoyer,Christoph Feichtenhofer
2024-04-08
Abstract: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
Computation and Language
What problem does this paper attempt to address?
The main goal of this paper is to reveal the specific construction method of the CLIP (Contrastive Language-Image Pretraining) dataset and to propose a new data processing method—MetaCLIP (Metadata Curation Language-Image Pretraining). Specifically, the paper aims to address the following issues: 1. **Transparency**: Reveal the specific construction method of the CLIP dataset to make it more transparent to the community. 2. **Data Optimization**: Improve the quality of large-scale image-text pair datasets by enhancing the data curation process. 3. **Performance Improvement**: Enhance performance across multiple benchmarks by optimizing the dataset. The authors believe that the key to CLIP's success lies in its high-quality dataset rather than the model architecture or pretraining objective. However, CLIP provides very limited information about the specific construction method and collection process of its dataset. Therefore, this paper proposes the MetaCLIP method, which aims to create a balanced and high-quality data subset through metadata curation. Experimental results show that MetaCLIP outperforms CLIP across various model scales, particularly excelling in zero-shot ImageNet classification tasks.