Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIP

Thao Nguyen, Gabriel Ilharco, Mitchell Wortsman, Sewoong Oh, Ludwig Schmidt
8/10/2022
131 citations
cs.LGcs.CV

Official code: mlfoundations/clip_quality_not_quantity (28 stars, Python, last commit 2022-10-18).

Abstract

Web-crawled datasets have enabled remarkable generalization capabilities in recent image-text models such as CLIP (Contrastive Language-Image pre-training) or Flamingo, but little is known about the dataset creation processes. In this work, we introduce a testbed of six publicly available data sources - YFCC, LAION, Conceptual Captions, WIT, RedCaps, Shutterstock - to investigate how pre-training distributions induce robustness in CLIP.

Show full abstract

We find that the performance of the pre-training data varies substantially across distribution shifts, with no single data source dominating. Moreover, we systematically study the interactions between these data sources and find that combining multiple sources does not necessarily yield better models, but rather dilutes the robustness of the best individual data source. We complement our empirical findings with theoretical insights from a simple setting, where combining the training data also results in diluted robustness. In addition, our theoretical model provides a candidate explanation for the success of the CLIP-based data filtering technique recently employed in the LAION dataset. Overall our results demonstrate that simply gathering a large amount of data from the web is not the most effective way to build a pre-training dataset for robust generalization, necessitating further study into dataset design. Code is available at https://github.com/mlfoundations/clip_quality_not_quantity.

View on arXivView PDF

Code Implementations(1)

281PythonOct 12, 20224 years ago

Similar Papers

Cite this paper

@article{nguyen2022quality,
  title  = {Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIP},
  author = {Thao Nguyen and Gabriel Ilharco and Mitchell Wortsman and Sewoong Oh and Ludwig Schmidt},
  year   = {2022},
  eprint = {2208.05516},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.05516v4}
}

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/2208.05516.svg)](https://codeofpaper.com/paper/2208.05516)

Discussion