Source-linked AI summary
MixGen: A New Multi-Modal Data Augmentation
Xiaoshuai Hao, Yi Zhu, Srikar Appalaraju, Aston Zhang, Wanqian Zhang, Bo Li, Mu Li
TL;DR
Vision-language pretraining needs data-efficient augmentation, but augmenting paired images and text while preserving their semantic match is challenging. MixGen interpolates images and concatenates text to create new pairs; it improves ALBEF across five downstream tasks, including retrieval gains of +6.2% on COCO fine-tuned and +5.3% on Flicker30K zero-shot.
Problem
Vision-language pretraining has used augmentation for either images or text, while augmenting paired data must preserve the semantic relationship between modalities.
Source: §1 · p. 1Method
Results
MixGen improves ALBEF across five downstream tasks, including +6.2% on COCO fine-tuned image-text retrieval and +5.3% on Flicker30K zero-shot retrieval.
Source: §1 · p. 2Takeaways & Limitations
ALBEF with MixGen pretrained on 1M, 2M, or 3M samples matches baseline ALBEF pretrained on 2M, 3M, or 4M samples, respectively.
Source: §1 · p. 2Evaluation covers selected augmentation configurations and 4M-scale pretraining, leaving other configurations, larger datasets, models, and tasks for future study.
Source: §5 · p. 7
Abstract
from arXiv · showhide
Data augmentation is a necessity to enhance data efficiency in deep learning. For vision-language pre-training, data is only augmented either for images or for text in previous works. In this paper, we present MixGen: a joint data augmentation for vision-language representation learning to further improve data efficiency. It generates new image-text pairs with semantic relationships preserved by interpolating images and concatenating text. It's simple, and can be plug-and-played into existing pipelines. We evaluate MixGen on four architectures, including CLIP, ViLT, ALBEF and TCL, across five downstream vision-language tasks to show its versatility and effectiveness. For example, adding MixGen in ALBEF pre-training leads to absolute performance improvements on downstream tasks: image-text retrieval (+6.2% on COCO fine-tuned and +5.3% on Flicker30K zero-shot), visual grounding (+0.9% on RefCOCO+), visual reasoning (+$0.9% on NLVR2), visual question answering (+0.3% on VQA2.0), and visual entailment (+0.4% on SNLI-VE).
1. Introduction
Vision-language augmentation must preserve the semantic match between images and text, while large-scale pretraining can demand substantial compute. MixGen jointly augments both modalities and improves performance across five downstream tasks.
1. Introduction
- Large-scale vision-language training can require extensive compute; CLIP’s ImageNet example used 400M image-text pairs for 12 days on 256 V100 GPUs.The passage also notes that many large-scale datasets are not publicly accessible and that reproduction or further improvement is challenging for researchers with limited compute.Source: §1 · p. 1
- Augmentation is difficult for paired vision-language data because changing an image may require corresponding changes to color or positional words in its text.Prior work generally uses mild image augmentation or leaves text augmentation to masked language modeling; some co-augmentation methods target specific downstream tasks rather than generic pretraining.Source: §1 · p. 1
- MixGen creates image-text pairs by interpolating images and concatenating text, with semantic relationships expected to remain matched in most cases.The figure depicts the same operation on two existing image-text pairs to produce a new pair.Source: §1 · p. 1, Figure 1 · p. 2
- +6.2% on COCO fine-tuned image-text retrieval and +5.3% on Flicker30K zero-shot retrieval accompany ALBEF improvements across five downstream tasks.The other reported gains are +0.9% on RefCOCO+, +0.9% on NLVR2, +0.3% on VQA2.0, and +0.4% on SNLI-VE.Source: §1 · p. 2
2. MixGen
MixGen pairs linearly interpolated images with concatenated text, and random combinations are intended to preserve semantic relationships while increasing training diversity. The default variant performs best among the tested designs, and input-level MixGen outperforms embedding-level MixGen.
2. MixGen
- MixGen creates a new pair by linearly interpolating the raw pixels of two images and concatenating their text sequences.The random combination is intended to preserve semantic relationships in most cases and increase training diversity.Source: §2 · p. 2, Figure 2 · p. 3
2.1. MixGen variants
- The five design variants test sampled rather than fixed image-mixing weights, image-only or text-only mixing, and alternative ways to select text tokens.The alternatives include sampling λ from a Beta distribution, choosing one image or text sequence, selecting tokens proportionally, or retaining half of concatenated tokens.Source: §2.1 · pp. 2–3
- The default MixGen variant achieves the overall best performance and consistently outperforms the other variants across four downstream tasks.The study compares five straightforward variants of image mixup and text augmentation.Source: §2.1 · pp. 2–3
2.2. Input-level and embedding-level MixGen
- Input-level MixGen consistently performs better than embedding-level MixGen and avoids modifying the network architecture or model forward pass.Input-level augmentation acts on raw inputs; embedding-level augmentation mixes image and text features extracted by encoders.Source: §2.2 · p. 3
3. Experiments
Experiments plug MixGen into four vision-language architectures and evaluate it across retrieval, VQA, entailment, reasoning, and grounding. Results report retrieval and downstream gains, data-efficiency matches at lower image counts, and qualitative improvements in retrieval and attention visualizations.
3.1. Pre-training
- Experiments add MixGen to CLIP, ViLT, ALBEF, and TCL without modifying their original training settings; the available pretraining set has 3.3M images and 4.4M pairs.The paper calls this dataset setting 3M, compared with the 4M setting of prior work using 5.1M pairs.Source: §3.1 · pp. 3–4
3.2. Image-text retrieval
- MixGen boosts retrieval across four architectures; with 3M ALBEF, it raises COCO fine-tuned RSUM by 6.2% and Flickr30K zero-shot RSUM by 5.3%.The results also report retrieval gains for ViLT, CLIP, ALBEF, and TCL under a 1M-image setting.Source: §3.2 · pp. 4–5, Table 1 · p. 4, Table 2 · p. 4
- ALBEF with MixGen trained on 1M, 2M, and 3M samples matches baseline ALBEF trained on 2M, 3M, and 4M samples, respectively.MixGen is reported to help at every tested data level, with larger improvement in the low-data regime.Source: §3.2 · p. 5, Figure 3 · p. 5
3.3. Evaluation on VQA, VR, VE and VG
- 0.28% on VQA test-std, 0.89% on NLVR2 test-P, and 0.36% on SNLI-VE test are ALBEF's absolute gains with MixGen under 3M.The 3M MixGen model also outperforms original 4M ALBEF on VQA and NLVR2.Source: Table 4 · p. 5, §3.3 · p. 6
- Under 3M training, ALBEF with MixGen surpasses its baseline on both RefCOCO+ test sets and outperforms 14M ALBEF on TestB.The comparison uses ALBEF_itm as the baseline because it performs better than ALBEF_itc.Source: Table 5 · p. 5, §3.3 · p. 6
3.4. Visualizations of MixGen
- Retrieval visualizations show MixGen usually ranks the matching image in the top three, while Grad-CAM examples show more precise grounding and attention to relevant VQA cues.The visualizations also include failures, including a time-telling VQA example where both models fail.Source: §3.4 · p. 6, Figure 5 · p. 6, Figure 4 · p. 6
4. Ablation Studies
The ablations favor default MixGen overall, input-level over embedding-level augmentation, and replacing one quarter of a batch with generated pairs.
Design variants
- Default MixGen achieves the best overall performance among the five variants, outperforming the others across tasks except VQA.The variants use the same ALBEF 1M pretraining setting and are evaluated across five downstream datasets.Source: §4 · p. 7
Input-level vs embedding-level MixGen
- Input-level MixGen consistently outperforms embedding-level MixGen, although both perform better than the baseline.Source: §4 · p. 7
Optimal ratio of MixGen samples
- With batch size B=512, M=128 (B/4) generated pairs leads to the best performance.The ablation varies how many training samples are replaced with newly generated pairs.Source: §4 · p. 7
5. Discussion
The discussion identifies limits in augmentation comparisons, pretraining scale, and evaluated model and task coverage. Ablations also favor input-level MixGen and a one-quarter batch ratio.
Limitations
- The study compares only selected related augmentation configurations, leaving other popular unimodal techniques for future work.The authors cite the unlimited combination of possible configurations as the reason for limiting comparisons.Source: §5 · p. 7
- Computational limits restrict pretraining comparisons to the widely adopted 4M set, leaving larger datasets such as LAION-400M unexplored.Source: §5 · p. 7
- Evaluation covers four models and five vision-language tasks, leaving generalization to other architectures and tasks untested.Examples proposed for future investigation include generation, video-text retrieval, text-to-image generation, detection, and segmentation.Source: §5 · p. 7
Ablation findings
- Input-level MixGen performs consistently better than embedding-level MixGen, and M=128 (B/4) is optimal for batch size B=512.Source: Figure 6 · p. 8
6. Related Work
The related work describes extensive unimodal augmentation but limited generic joint multimodal augmentation. MixGen differs from mixup by combining modalities and concatenating, rather than mixing, text.
Vision-language pre-training
- Although CV and NLP have many augmentation techniques, joint multimodal augmentation is rarely studied, and existing joint approaches target specific downstream tasks,.Source: §6 · p. 8
Relation to mixup
- Mixup generates samples by combining inputs and one-hot labels; an NLP adaptation replaces image pixels with text embeddings [12].Source: §6 · p. 8
- Unlike mixup, MixGen uses data from different modalities without one-hot labels and concatenates text sequences rather than mixing them.The authors state that concatenation best preserves text information.Source: §6 · p. 8
7. Conclusion
MixGen is a joint vision-language augmentation method evaluated across four models and five downstream tasks, with reported improvements and enhanced data efficiency.
- MixGen consistently improves four recent vision-language models across five downstream tasks and is reported to improve their data efficiency.The authors present the results as empirical evidence for joint multimodal data augmentation.Source: §7 · p. 8