Abstract
Data augmentation has been established as an efficacious approach to supplement useful information for low-resource datasets. Traditional augmentation techniques such as noise injection and image transformations have been widely used. In addition, generative data augmentation (GDA) has been shown to produce more diverse and flexible data. While generative adversarial networks (GANs) have been frequently used for GDA, they lack diversity and controllability compared to text-to-image diffusion models. In this paper, we propose TTIDA (Text-to-Text-to-Image Data Augmentation) to leverage the capabilities of large-scale pre-trained Text-to-Text (T2T) and Text-to-Image (T2I) generative models for data augmentation. By conditioning the T2I model on detailed descriptions produced by T2T models, we are able to generate photo-realistic labeled images in a flexible and controllable manner. Experiments on in-domain classification, cross-domain classification, and image captioning tasks show consistent improvements over other data augmentation baselines. Analytical studies in varied settings, including few-shot, long-tail, and adversarial, further reinforce the effectiveness of TTIDA in enhancing performance and increasing robustness.
Introduction
Deep learning models are notoriously data-hungry. When labeled data is scarce—a common scenario in specialized domains or "long-tail" categories—models tend to overfit and generalize poorly. Traditional data augmentation (DA) relies on simple geometric or color transformations (like flipping or cropping), which do not add new semantic information. While Generative Adversarial Networks (GANs) were once the standard for creating new samples, they are difficult to train, prone to "mode collapse," and typically require category-specific training.
TTIDA addresses these limitations by leveraging the massive internal knowledge of pre-trained foundation models to generate diverse, photo-realistic, and controllable synthetic data without the need for category-specific model training.
Methodology
The core of TTIDA is a multi-stage pipeline that transforms a simple class label into a diverse set of training images:
- Text-to-Text (T2T) Expansion: A T2T model (e.g., GPT-2) is fine-tuned on image captions. Instead of providing a Text-to-Image model with a single word like "bike," the T2T model generates detailed, descriptive prompts (e.g., "a white bike leaning against a brick wall").
- Text-to-Image (T2I) Generation: These rich descriptions are fed into a pre-trained diffusion model (specifically GLIDE). The detailed prompts allow the T2I model to produce high-quality, diverse images reflecting various contexts, lighting, and angles.
- Controllable Augmentation: By editing keywords in the T2T prompts, researchers can explicitly control the attributes of the generated data, ensuring a wide distribution of samples.
- Integration: These synthetic images are merged with the original "real" dataset to train the final vision model (e.g., a ResNet-101).
Experimental Results
The authors evaluated TTIDA across several standard benchmarks, including CIFAR-100 for in-domain classification, Office-Home for cross-domain generalization, and MS COCO 2015 for image captioning.
TTIDA consistently outperformed traditional augmentation and GAN-based baselines such as DCGAN, CycleGAN, and StyleGAN. On CIFAR-100, TTIDA improved accuracy by up to 3.0%, significantly higher than the 1.4% gain seen with StyleGAN. A critical insight from the results is the "Prompt Engineering" advantage: T2I models perform better for augmentation when given detailed descriptions rather than raw labels. As shown in the comparison below, using descriptions (TTIDA (desc.)) consistently yields higher accuracy gains than using labels alone.
In cross-domain settings (Office-Home), TTIDA improved average accuracy across all domains, proving that synthetic data helps models bridge the gap between different visual styles. Furthermore, models trained with TTIDA showed a 1.1% improvement in accuracy against adversarial images, suggesting increased robustness to unusual visual inputs.
Conclusion
TTIDA demonstrates that synthetic data generated by foundation models can help vision models break spurious correlations and improve generalization in low-resource settings. While powerful, the approach faces challenges such as potential outlier noise in generated images. Future work may focus on automated filtering strategies to ensure only the most helpful synthetic samples are included in training. Despite the computational cost of diffusion models, TTIDA offers a scalable, domain-agnostic solution for data-starved machine learning tasks.
Summary updated