Abstract
Web-crawled image-text pairs are inherently noisy. Prior studies demonstrate that semantically aligning and enriching textual descriptions of these pairs can significantly enhance model training across various vision-language tasks, particularly text-to-image generation. However, large-scale investigations in this area remain predominantly closed-source. Our paper aims to bridge this community effort, leveraging the powerful and open-sourced LLaMA-3, a GPT-4 level LLM. Our recaptioning pipeline is simple: first, we fine-tune a LLaMA-3-8B powered LLaVA-1.5 and then employ it to recaption 1.3 billion images from the DataComp-1B dataset. Our empirical results confirm that this enhanced dataset, Recap-DataComp-1B, offers substantial benefits in training advanced vision-language models. For discriminative models like CLIP, we observe enhanced zero-shot performance in cross-modal retrieval tasks. For generative models like text-to-image Diffusion Transformers, the generated images exhibit a significant improvement in alignment with users' text instructions, especially in following complex queries. Our project page is https://www.haqtu.me/Recap-Datacomp-1B/
Introduction
The "secret sauce" behind modern vision-language models like CLIP or generative tools like DALL-E 3 is the massive volume of image-text pairs scraped from the web. However, web data is notoriously "noisy." An image of a sunset might have a caption as unhelpful as "IMG_4021.jpg" or a string of irrelevant SEO keywords. While models can learn from this noise at scale, the lack of descriptive detail limits their semantic understanding. For instance, a model trained on brief captions struggles to distinguish between specific visual attributes if it has only ever seen generic labels. While proprietary models have been used by companies like OpenAI to recaption private datasets, the open-source community has lacked a high-quality, billion-scale recaptioned dataset—until now.
Methods
The researchers developed a straightforward but powerful pipeline to "clean" the web's homework by replacing noisy, brief metadata with detailed, AI-generated descriptions.
- The Captioner: They built a custom image captioning model by fine-tuning LLaVA-1.5, swapping its original language backbone for the more powerful LLaMA-3-8B.
- The Scale: This model was used to generate detailed descriptions for ~1.3 billion images from the DataComp-1B dataset.
- The Strategy: Instead of discarding original web captions entirely, they experimented with a "mixed ratio" ($p$). Blending original captions with AI recaptions acts as a form of regularization, preventing the model from overfitting to the specific linguistic style of the AI captioner.
Datasets and Evaluation
- DataComp-1B: The primary source dataset containing 1.3 billion raw web-crawled image-text pairs.
- Recap-DataComp-1B: The new dataset introduced by this paper, featuring the same images but with LLaMA-3-generated captions.
- Evaluation Benchmarks: The models were tested on standard sets like ImageNet-1K (classification), COCO and Flickr30K (retrieval), and specialized benchmarks like Urban1K (long-caption retrieval) and VG-Attribute (attribute understanding).
Key Insights and Ideas
Vocabulary and Detail Expansion
The recaptioned data is vastly more descriptive than the original web text. The average caption length jumped from 10.22 tokens to 49.43 tokens. This shift is reflected in the word distribution, which moves away from generic terms toward specific, descriptive vocabulary.
The Regularization Paradox
Surprisingly, using only AI recaptions ($p=0.0$) isn't always optimal. Keeping about 20% of the original web captions ($p=0.8$) helped maintain better zero-shot classification performance on ImageNet. The "noise" of the web seems to help the model generalize, while the recaptions provide the depth needed for complex tasks.
Unlocking Long-Text Retrieval
Standard CLIP models often struggle with long, complex sentences. Recap-CLIP, especially when paired with a larger text encoder, showed a massive leap in understanding long-form queries. The "LongCLIP" score—a measure of how well long text matches an image—increased from 10.09 to 89.91.
Key Results
- Retrieval Boosts: On the Urban1K benchmark, Recap-CLIP-B/16 outperformed the vanilla baseline by 31.8% in image-to-text retrieval.
- Human-Level Quality: In GPT-4V evaluations of caption quality (rating 1-5), the recaptioned data scored an average of 4.14, compared to 3.71 for the original web text.
- Generative Performance: Diffusion models trained on the new data (Recap-DiT) showed a significant drop in FID (indicating more realistic images) and a higher GPT-4V score for following complex prompts. The model learned exactly which words corresponded to visual sub-details like textures or specific color variations.
Limitations and Future Work
While the results are promising, recaptioning 1.3 billion images is an immense task requiring significant GPU hours. Furthermore, the recaptions are limited by the potential biases or hallucinations of the LLaMA-3/LLaVA model used. Finally, zero-shot classification (ImageNet) saw a slight dip when using too much recaptioned data, suggesting that the "shorthand" nature of web captions still holds value for simple object recognition.
By open-sourcing this project, the authors provide a roadmap for the community to build more perceptive vision models using the latest breakthroughs in Large Language Models.
Summary updated