Too Large; Data Reduction for Vision-Language Pre-Training

Alex Jinpeng Wang, Kevin Qinghong Lin, David Junhao Zhang, Stan Weixian Lei, Mike Zheng ShouICCV 2023

Abstract

Recent advancements in Vision-Language Pre-training (VLP) have largely been driven by the "scale-is-everything" mantra, utilizing massive, web-scraped datasets. However, these datasets often suffer from severe image-text misalignment and high redundancy. We propose TL;DR (Too Large; Data Reduction), an efficient algorithm designed to compress large VLP datasets into small, high-quality subsets. By employing a codebook-based encoder-decoder captioner for sample selection and generating complementary captions to mitigate misalignment, TL;DR enables significant training speedups. Our results demonstrate that VLP models trained on just 10–25% of the original data can achieve performance comparable to or exceeding that of models trained on the full-scale datasets.

Introduction

The prevailing trend in Vision-Language Pre-training (VLP) involves training models like CLIP, BLIP, or CoCa on increasingly massive datasets scraped from the internet. While scaling has led to impressive zero-shot capabilities, it comes at a staggering computational cost. For instance, training CoCa requires thousands of TPU chips for several days. This "brute force" approach is hindered by two fundamental data quality issues: misalignment, where captions do not accurately describe their paired images, and redundancy, where the same visual concepts are repeated thousands of times.

The TL;DR algorithm challenges the necessity of these massive, noisy datasets. It asks a critical question: Can we achieve superior performance by focusing on a high-quality fraction of the data?

The Challenges of Large-Scale VLP

Modern VLP datasets, such as LAION-400M or CC12M, are inherently noisy and inefficient:

  1. Misalignment: Web-scraped text often serves functional or social purposes rather than descriptive ones. An image of a dog might be captioned with a generic sentiment like "You might want to think twice before buying a pet," providing little signal for visual grounding.
  2. Redundancy: Large datasets are filled with near-duplicate images or highly similar concepts. Training on these redundant samples leads to diminishing returns and wasted compute.

Initial experiments by the authors revealed a "Less is More" phenomenon: removing the 50% of samples with the lowest image-text matching scores in the CC3M dataset actually improved downstream performance. This suggests that poor-quality data is not just neutral—it is actively detrimental to the learning process.

The TL;DR Framework

The TL;DR approach consists of a two-stage pipeline designed to identify representative samples and enhance their textual descriptions.

Stage 1: Codebook-based Captioner Training

The authors developed a specialized captioner featuring a visual encoder, a learnable codebook, and a text decoder. The codebook serves as a semantic bridge, quantizing continuous image features into discrete "codes" that represent specific visual concepts. This quantization forces the model to focus on high-level semantic content rather than pixel-level noise, resulting in more accurate and grounded descriptions than the original web text.

Stage 2: Data Reduction and Refinement

The reduction process involves two key steps:

  • Selection via Clustering: Instead of random sampling, TL;DR uses the discrete codes from the codebook to cluster the entire dataset. By selecting representative samples from each cluster, the algorithm ensures that the reduced dataset maintains high visual diversity while stripping away redundant information.
  • Caption Refinement: To address misalignment, TL;DR does not discard the original web-scraped text ($T_o$). Instead, it generates a new, grounded caption ($T_g$) using the trained captioner. These are concatenated ($T_o + T_g$) to create a hybrid caption. This strategy prevents "captioning collapse"—where generated text becomes overly generic—by preserving the rich, "long-tail" vocabulary of the original internet text while providing a factual anchor.

Experimental Results

The effectiveness of TL;DR was evaluated across several industry-standard datasets, including CC3M, CC12M, YFCC15M, and a 40M subset of LAION-400M.

Efficiency and Performance

On the CC3M dataset, TL;DR reduced the data to just 24% of its original size (0.67M samples). Remarkably, the model trained on this subset achieved better results on COCO retrieval tasks than the model trained on the full 2.82M dataset. Similarly, on the noisy YFCC15M dataset, using only 16.7% of the data (2.5M samples) yielded results comparable to the full 15M set, demonstrating the algorithm's ability to filter out "garbage" data.

Training Speedup

The reduction in data volume translates directly to computational savings. For the CC12M dataset, pre-training time was slashed from 65 hours to 14 hours without sacrificing performance across downstream tasks like Visual Question Answering (VQA), Reasoning (NLVR2), and Image-Text Retrieval.

Discussion and Limitations

While TL;DR demonstrates the power of data-centric VLP, several areas for future exploration remain:

  • Compression Ratios: Currently, the compression ratio (e.g., 10% vs. 25%) must be set manually. Automating the discovery of the optimal ratio for a given dataset is a promising direction.
  • Zero-Shot Classification: While TL;DR excels in cross-modality tasks, it showed a slight performance dip in zero-shot ImageNet classification compared to full-scale training. This suggests that classification may benefit more from the sheer visual diversity found in larger, noisier sets.
  • Generative Limits: While the captioner significantly improves alignment, it still faces challenges with extremely complex scenes. The authors found that purely synthetic data (e.g., from Stable Diffusion) still lags behind high-quality real images.

Conclusion

TL;DR provides a robust framework for making Vision-Language Pre-training more accessible and efficient. By shifting the focus from "more data" to "better data," the algorithm proves that high-quality, diverse, and well-aligned subsets can outperform massive, uncurated collections. This data-centric approach paves the way for more sustainable and effective AI research.

Summary updated

BibTeX
@inproceedings{wang2023too,
  author = {Alex Jinpeng Wang and Kevin Qinghong Lin and David Junhao Zhang and Stan Weixian Lei and Mike Zheng Shou},
  title = {{Too Large; Data Reduction for Vision-Language Pre-Training}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=0qNzRIvlkG},
}
Figure