SIEVE: Multimodal Dataset Pruning Using Image Captioning Models

Anas Mahmoud, Mostafa Elhoushi, Amro Abbas, Yu Yang, Newsha Ardalani, Hugh Leather, Ari Morcos

Abstract

Modern Vision-Language Models (VLMs) rely on massive, often noisy, web-scraped datasets. We present Sieve, a dataset pruning method that leverages generative image-captioning models to validate image-text alignment. By generating synthetic captions and comparing them to original alt-texts using sentence transformers, Sieve effectively filters noise that standard metrics like CLIPScore miss. Our approach improves downstream task accuracy by up to 2.6% on the DataComp benchmark, demonstrating the power of using curated generative models to clean web-scale data.

Introduction

The performance of Vision-Language Models (VLMs) like CLIP is heavily dependent on the quality of their training data. While web-scale datasets provide the necessary volume, they are riddled with "noisy" pairs where alt-text is irrelevant, overly generic, or misleading. Currently, CLIPScore is the gold standard for filtering this noise, but it suffers from a circular dependency: it uses the same biased representations it aims to improve. CLIPScore often fails on "hard" samples, either accepting irrelevant text due to spurious correlations (false positives) or rejecting valid but complex pairs (false negatives).

The Sieve Pipeline

Sieve addresses these limitations by shifting the validation task from multimodal alignment to semantic textual similarity. The pipeline consists of four key stages:

  1. Synthetic Captioning: A captioning model (e.g., BLIP), trained on high-quality curated data, generates multiple captions for each image in the noisy pool.
  2. Phrase Masking: Common boilerplate phrases like "an image of" or "a photo of" are masked to prevent them from artificially inflating similarity scores.
  3. Semantic Comparison: Instead of comparing images to text directly, Sieve uses a lightweight Sentence Transformer (MiniLM) to compare the synthetic captions to the original web alt-text.
  4. Ranking: Samples are ranked based on this textual similarity. Sieve can be used as a standalone filter or ensembled with CLIPScore to select the highest-quality data for training.
The Sieve pipeline: generating synthetic captions to validate web alt-text via sentence transformers.

Key Insights and Results

Sieve's primary advantage lies in its ability to focus on visual content rather than spurious textual correlations. While CLIPScore might be distracted by geographic locations or dates in the text that aren't visually present, Sieve's generative approach forces a description of the actual visual scene. This allows it to recover "hard" samples that CLIPScore incorrectly rejects.

Qualitative comparison showing Sieve correctly identifying false positives and negatives where CLIPScore fails.

Experimental results on the DataComp benchmark demonstrate Sieve's effectiveness across various scales:

  • Performance Gains: Sieve combined with CLIPScore outperformed standard CLIPScore by 2.6% on the "medium" scale (128M samples) and 1.7% on the "large" scale (1.28B samples) across 38 downstream tasks.
  • Retrieval Excellence: Image-text retrieval tasks saw massive improvements of up to 4.5% on the large scale.
  • Data Efficiency: Sieve identifies high-quality samples more effectively, reaching peak performance using only 20% of the available data compared to the 30% required by CLIPScore.

Limitations and Future Work

Sieve is not without its challenges. It currently underperforms in tasks requiring Optical Character Recognition (OCR) or deep contextual knowledge (like geolocation), as the underlying captioning models are not specifically optimized for these domains. Additionally, the computational cost of generating captions for billions of images is higher than simple encoding. Future research will focus on improving efficiency and integrating specialized modules for OCR and contextual reasoning to handle the edge cases where Sieve currently lags.

Summary updated

BibTeX
@inproceedings{mahmoud2023sieve,
  author = {Anas Mahmoud and Mostafa Elhoushi and Amro Abbas and Yu Yang and Newsha Ardalani and Hugh Leather and Ari Morcos},
  title = {{SIEVE: Multimodal Dataset Pruning Using Image Captioning Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=FQulz8KHpM},
}
Figure