NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diversify Your Vision Datasets with Automatic Diffusion-based Augmentation

Lisa Dunlap, Alyssa Umino, Han Zhang, Jiezhi Yang, Joseph E. Gonzalez, Trevor Darrell

Deep learning models for fine-grained classification—such as identifying specific bird species or rare animals in camera traps—are notoriously brittle. They often overfit to the specific "domain" of their training data, like the particular forest background or weather conditions present in the photos. When deployed in a new location or during a different season, their performance typically plummets.

While generative models like Stable Diffusion could theoretically create more training data, there is a catch: for specialized, fine-grained tasks, these models often fail to generate the specific subject (e.g., a rare subspecies of bird) accurately from a text prompt alone. Conversely, traditional augmentations like cropping, CutMix, or color-shifting do not add enough semantic variety to teach the model about entirely new environments.

Comparison of ALIA against traditional augmentation and text-to-image generation.

To solve this, researchers introduce ALIA (Automated Language-guided Image Augmentation). ALIA uses Large Language Models (LLMs) and Diffusion models to automatically "re-contextualize" training data. By describing the domains in a dataset and using those descriptions to edit existing images, ALIA creates diverse, visually consistent training examples that help models generalize to new environments, outperforming both traditional augmentation and pure synthetic data generation.

The ALIA Pipeline

ALIA acts as a "translation layer" between specialized image data and general-purpose foundation models. The method operates in three main stages:

The ALIA pipeline: from captioning to LLM summarization, image editing, and filtering.
  1. Generating Domain Descriptions: First, a captioning model (BLIP) describes every image in the dataset. An LLM (GPT-4) then summarizes these thousands of captions into a handful of core "domain descriptions" (e.g., "perched on a fence," "near a lake"). This captures the environmental variety already present or desired in the data.
  2. Language-Guided Editing: Instead of generating images from scratch, ALIA uses these descriptions to edit the original training images using Stable Diffusion (via Img2Img or InstructPix2Pix). This keeps the "fine-grained" subject grounded in reality while realistically altering the background and context.
  3. Filtering for Quality: Not every edit is a success. ALIA uses two filters to ensure data integrity:
  4. Semantic Filter: Uses CLIP to ensure the edited image still contains the intended subject.
  5. Confidence-based Filter: Uses a classifier trained on the original data. If the classifier is too confident, the edit was likely too subtle (Identity Failure). If the classifier is totally wrong, the edit likely destroyed the identifying features of the species (Class Corruption). The best augmented images are those that the baseline model finds slightly challenging but still recognizable—a "Goldilocks" zone for learning.

Key Results and Insights

The researchers evaluated ALIA on three challenging benchmarks: CUB-200-2011 (fine-grained bird classification), iWildCam (domain generalization for camera traps), and Waterbirds (testing contextual bias, such as landbirds appearing on water).

  • Significant Accuracy Gains: On the iWildCam dataset, ALIA improved accuracy by 17% over the baseline and even outperformed models trained with additional real data from the test distribution.
  • Mitigating Bias: In the Waterbirds task, ALIA improved class-balanced accuracy by 7% over other augmentation methods by successfully "moving" birds into underrepresented backgrounds (e.g., putting a waterbird on a forest floor).
  • Efficiency: ALIA achieves peak performance by adding a relatively small amount of data (about 20% of the original dataset size). Adding too much synthetic data eventually leads to diminishing returns or overfitting to the generative model's specific style.
  • Editing > Generation: The results highlight that for specialized tasks, "Image-to-Image" editing is vastly superior to "Text-to-Image" generation. Starting with a real photo preserves specific details (like plumage) that a text prompt might get wrong.

Limitations and Future Work

Because ALIA is a pipeline of foundation models, its success is inherently capped by the quality of the captioner, the LLM, and the Diffusion model used.

A notable limitation is geometric consistency. While Diffusion models excel at changing textures and backgrounds, they struggle to change the pose of a subject (like making a sitting bird look like it is flying) without corrupting its identity. Future work may involve incorporating 3D-aware generative models or more advanced control mechanisms (like ControlNet) to allow for structural augmentations alongside contextual ones.

Summary updated

BibTeX
@inproceedings{dunlap2023diversify,
  author = {Lisa Dunlap and Alyssa Umino and Han Zhang and Jiezhi Yang and Joseph E. Gonzalez and Trevor Darrell},
  title = {{Diversify Your Vision Datasets with Automatic Diffusion-based Augmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=9wrYfqdrwk},
}
Figure