TL;DR
MixGen is a simple, "plug-and-play" data augmentation technique for vision-language models that creates new training samples by linearly interpolating two images and concatenating their corresponding text descriptions. Despite its simplicity, it significantly improves data efficiency and boosts performance across a wide variety of tasks like image-text retrieval and visual question answering with negligible computational cost.
What Problem Does This Paper Address?
Training state-of-the-art vision-language (VL) models usually requires a massive amount of data—often hundreds of millions of image-text pairs—and thousands of GPU hours. For researchers without "Big Tech" resources, improving data efficiency is critical.
The challenge lies in how to augment multi-modal data. In computer vision, we often flip or recolor images, but doing so can break the link with the paired text (e.g., if the text says "a red car" and the augmentation turns the car blue). Conversely, text augmentation often relies on masking words, which doesn't necessarily help the model understand the relationship between the two modalities. Previous attempts at "joint" augmentation were often complex or designed for specific downstream tasks rather than general pre-training.
Methods
The authors introduce MixGen (Mix Generation), a joint multi-modal augmentation strategy. The process is straightforward:
- Image Mixup: Take two images ($I_i, I_j$) and blend them using a ratio $\lambda$ (defaulting to 0.5). The resulting image $I_k$ contains overlapping visual information from both original images.
- Text Concatenation: Instead of blending text (which is difficult given its discrete nature), the authors simply concatenate the two original captions ($T_i, T_j$) into a single string $T_k$.
This approach ensures that the semantic information in the new text perfectly matches the visual content of the blended image. It is implemented at the input level (raw pixels and text), meaning it requires no changes to the model architecture and can be added to existing training pipelines with just a few lines of code.
Datasets
The authors pre-trained their models on a combination of four widely used datasets: MSCOCO, Visual Genome (VG), SBU Captions, and Conceptual Captions (CC). Due to broken image links in the web-crawled datasets (SBU and CC), they used a "3M" subset (3.3M unique images, 4.4M pairs) for their primary experiments.
For evaluation, they tested on several downstream benchmarks:
- MSCOCO & Flickr30K: Image-text retrieval.
- VQA2.0: Visual Question Answering.
- NLVR2: Natural Language Visual Reasoning.
- SNLI-VE: Visual Entailment.
- RefCOCO+: Visual Grounding (localizing objects based on text).
Key Insights and Ideas
- Concatenation over Interpolation for Text: While images can be blended smoothly, "blending" text embeddings often results in a representation that doesn't correspond to a real sentence. Concatenating the raw text preserves the full semantic context of both images, making the task clearer for the model.
- Input-Level is King: The authors compared performing MixGen on raw inputs versus performing it on high-level embeddings. Input-level augmentation consistently performed better, likely because it provides stronger regularization and doesn't require modifying the model's forward pass.
- Massive Data Efficiency Gains: One of the most striking findings was that an ALBEF model trained with MixGen on only 1 million images could match the performance of a baseline model trained on 2 million images. This effectively doubles the value of the available data.
- Minimal Overhead: Adding MixGen to the training process only increases the total "wall clock" training time by about 0.4%, making it an incredibly "cheap" way to get a performance boost.
Key Results
The authors evaluated MixGen across four different model architectures (CLIP, ViLT, ALBEF, and TCL). Key improvements included:
- Image-Text Retrieval: On the ALBEF architecture, MixGen provided a +6.2% absolute improvement in RSUM (a combined retrieval metric) on COCO and a +5.3% boost on Flickr30K zero-shot.
- Downstream Tasks: It achieved consistent gains across the board: +0.9% on visual grounding (RefCOCO+), +0.9% on visual reasoning (NLVR2), and +0.3% on VQA.
- Robustness: Grad-CAM visualizations showed that models trained with MixGen were able to attend to objects more precisely and ignore irrelevant background noise compared to baseline models.
Limitations and Future Work
While highly effective, the paper notes a few areas for further exploration:
- Scale: The experiments were conducted on the "4M" scale. It remains to be seen if these benefits hold up when training on billion-scale datasets like LAION-5B.
- Generative Tasks: The study focused on discriminative tasks (retrieval, classification). Future work could investigate how MixGen affects generative tasks like image captioning or text-to-image synthesis.
- Unimodal Combinations: The authors focused on the simplest version of MixGen. They suggest that exploring combinations of MixGen with other unimodal augmentations (like RandAugment) could yield even further improvements.
Summary updated