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

Contrastive Visual Data Augmentation

Yu Zhou, Bingxuan Li, Tang Mohan, Xiaomeng Jin, Te-Lin Wu, Kuan-Hao Huang, Heng Ji, Kai-Wei Chang, Nanyun Peng

Abstract

Large Multimodal Models (LMMs) frequently struggle with fine-grained visual recognition and concepts introduced after their training cutoff. This paper presents CoDA (Contrastive visual Data Augmentation), a novel pipeline that generates targeted synthetic training data by identifying and emphasizing discriminative features between a target concept and its most visually similar competitors. Evaluated on benchmarks including iNaturalist, SUN, and a newly curated NovelSpecies dataset, CoDA demonstrates significant performance improvements, achieving up to a 12.3% absolute gain in accuracy over existing state-of-the-art augmentation strategies.

1. Introduction

While Large Multimodal Models (LMMs) like GPT-4o and LLaVA have revolutionized visual understanding, they face two significant hurdles: the "knowledge cutoff" and the "fine-grained vision" problem. The former prevents models from recognizing entities discovered after their training (e.g., the Clouded Tiger Cat, documented in early 2024). The latter results in confusion between visually similar concepts, such as mistaking a specialized "Resupply Base" for a generic "Wholesale Store."

Traditional data augmentation techniques, such as random cropping or flipping, do not provide the semantic depth required to resolve these ambiguities. To address this, we introduce CoDA, a strategy that leverages the generative capabilities of diffusion models to create contrastive synthetic data specifically designed to teach models the subtle differences between similar classes.

2. Methodology

The CoDA pipeline consists of four integrated stages designed to produce high-utility training samples:

  1. Contrastive Feature Extraction: Rather than generating generic descriptions, CoDA identifies a "confusable concept"—the class the model most frequently mistakes for the target. It then uses LLMs and VLMs to isolate features present in the target but absent in the competitor (e.g., identifying a "bushy tail" as the differentiator against a "muscular build").
  2. Feature Filtering: To ensure data quality, features are filtered based on Discriminability (the power to distinguish the two classes) and Generability (the ability of a text-to-image model to accurately render the feature).
  3. Image Generation & Verification: Using state-of-the-art diffusion models (e.g., Recraft V3 or Stable Diffusion 3.5), CoDA generates synthetic images from these contrastive prompts. An LMM then acts as a verifier to ensure the generated image successfully embodies the intended features.
  4. Model Updating: The verified synthetic images are used to fine-tune the LMM via Low-Rank Adaptation (LoRA), allowing the model to learn new concepts with minimal data overhead.

3. Experimental Setup

CoDA was evaluated across three distinct visual recognition domains:

  • iNaturalist: A benchmark for fine-grained species recognition.
  • SUN: A dataset focused on diverse scene recognition.
  • NovelSpecies: A newly curated benchmark containing 64 animal species discovered in 2023 and 2024. This dataset serves as a "clean room" test, as these species did not exist in the training data of the base models.

4. Key Results and Insights

CoDA significantly outperformed existing state-of-the-art (SOTA) augmentation strategies across all tested benchmarks:

  • NovelSpecies: Achieved a 12.3% absolute gain in accuracy, proving highly effective for zero-shot learning of new concepts.
  • iNaturalist & SUN: Observed gains of 6.0% and 5.1% respectively.
  • Data Efficiency: On the iNaturalist benchmark, a 50-50 mixture of real and CoDA-generated synthetic data outperformed the use of 100% real data in certain configurations. This suggests that CoDA’s emphasis on discriminative features provides a cleaner, more effective learning signal than raw, potentially noisy web images.

5. Discussion and Limitations

The success of CoDA highlights that contrast is essential for fine-grained tasks; describing what a target is is less effective than describing how it differs from its closest look-alike. Furthermore, it demonstrates that generative models can serve as effective teachers when the synthetic data is targeted and verified.

However, the method is currently limited by the instruction-following capabilities of underlying text-to-image (T2I) models. If a diffusion model cannot simultaneously render multiple complex features, the quality of the augmentation signal diminishes. As T2I models continue to evolve, the efficacy of CoDA is expected to scale accordingly.

6. Conclusion

CoDA provides a robust framework for updating LMMs with new and fine-grained knowledge. By shifting the focus from generic data augmentation to contrastive feature synthesis, CoDA enables models to overcome traditional knowledge cutoffs and achieve higher precision in complex visual environments.

Summary updated

BibTeX
@inproceedings{zhou2025contrastive,
  author = {Yu Zhou and Bingxuan Li and Tang Mohan and Xiaomeng Jin and Te-Lin Wu and Kuan-Hao Huang and Heng Ji and Kai-Wei Chang and Nanyun Peng},
  title = {{Contrastive Visual Data Augmentation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=y9JV6VANYp},
}
Figure