Skip to main content
QUICK REVIEW

[Paper Review] Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIP

Thao D. Nguyen, Gabriel Ilharco|arXiv (Cornell University)|Aug 10, 2022
Topic ModelingComputer Science19 citations
TL;DR

This paper investigates how dataset design affects the robustness of CLIP models, finding that data quality matters more than quantity: combining multiple web-crawled datasets dilutes robustness rather than improving it. The authors demonstrate through empirical and theoretical analysis that curated data sources like Wikipedia or YFCC outperform raw, unfiltered collections such as LAION, and that filtering with CLIP itself can enhance data quality, challenging the assumption that more data always leads to better generalization.

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. 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.

Motivation & Objective

  • To understand how different web-crawled image-text datasets affect the robustness of CLIP models under distribution shifts.
  • To investigate whether combining multiple datasets improves model robustness or dilutes the strengths of individual sources.
  • To evaluate the impact of data filtering techniques—especially CLIP-based filtering—on dataset quality and downstream model generalization.
  • To provide theoretical insights into why combining datasets may reduce robustness, even when individual sources are high-quality.
  • To challenge the prevailing assumption that larger, more diverse datasets always yield better generalization in vision-language models.

Proposed method

  • The authors assemble a testbed of six publicly available datasets: YFCC, LAION, Conceptual Captions, WIT, RedCaps, and Shutterstock, covering diverse web sources.
  • They fine-tune CLIP models on each dataset and evaluate zero-shot accuracy on ImageNet and its canonical distribution shifts.
  • They analyze robustness by measuring performance degradation across multiple distribution shifts, comparing individual datasets and their combinations.
  • They develop a theoretical model with two-class linear classifiers and isotropic data distributions to analytically study the effect of combining datasets on robustness.
  • The theoretical model shows that combining data sources leads to diluted robustness, especially when one source is significantly better than the other.
  • They use the theoretical framework to explain the success of CLIP-based filtering in LAION, suggesting that filtering with a strong model improves data quality and generalization.

Experimental results

Research questions

  • RQ1How does the robustness of CLIP models trained on different web-crawled datasets vary across distribution shifts?
  • RQ2Does combining multiple datasets lead to improved or degraded robustness compared to using individual sources?
  • RQ3Can filtering data with a pre-trained CLIP model improve the quality and generalization capability of the resulting dataset?
  • RQ4Why does combining datasets sometimes reduce robustness, even when individual sources are high-performing?
  • RQ5What theoretical mechanisms underlie the observed trade-offs between data quantity and robustness in vision-language pre-training?

Key findings

  • The robustness of CLIP models varies significantly across different data sources, with no single dataset dominating across all distribution shifts.
  • Models trained on curated datasets like Wikipedia or YFCC-15M often outperform those trained on larger, less filtered datasets like LAION.
  • Combining two datasets results in a model whose robustness interpolates between the two, rather than inheriting the best properties of both, indicating dilution of robustness.
  • Theoretical analysis confirms that combining datasets with differing robustness leads to reduced overall robustness, especially when one source is significantly better than the other.
  • CLIP-based filtering in LAION likely improves data quality by removing low-quality or noisy examples, explaining its success despite the dataset's large size.
  • The study challenges the assumption that more data always leads to better generalization, highlighting the importance of data quality and design over sheer scale.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.