                                    Contrastive Visual Data Augmentation


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


                            Abstract                                              (a) Novel Concept                      (b) Confusing Concept
                                                                                   Clouded Tiger Cat                          Resupply Base
        Large multimodal models (LMMs) often strug-
        gle to recognize novel concepts, as they rely on
        pre-trained knowledge and have limited ability
        to capture subtle visual details. Domain-specific
        knowledge gaps in training also make them prone
        to confusing visually similar, commonly mis-
        represented, or low-resource concepts. To help                                    African Leopard                    Wholesale Store
        LMMs better align nuanced visual features with
        language, improving their ability to recognize and
        reason about novel or rare concepts, we propose                                                                     Plain décor,
                                                                            Bushy tail,                                                           Colorful
        a Contrastive visual Data Augmentation (CoDA)                                               Rosette
                                                                                                               Textual      Cardboard Carts,       décor,
                                                                            Elongated Spotted      Patterns,
                                                                                                                            boxes,
        strategy. CoDA extracts key contrastive textual                     slim body, marks,      Muscular
                                                                                                                                      Shelves,   People in
                                                                                        …                                   People in    …       everyday
                                                                            Round ears,              build,
        and visual features of target concepts against the                                             …                    uniform,                cloth,
                                                                                …                                               …                   …
                                                                                                                Visual
        known concepts they are misrecognized as, and
        then uses multimodal generative models to pro-                                                         CoDA
        duce targeted synthetic data. Automatic filtering
        of extracted features and augmented images is im-
        plemented to guarantee their quality, as verified                                                      Generative
        by human annotators. We show the effectiveness                                                          Data Aug

        of CoDA on low-resource concept and diverse
        scene recognition datasets including INaturalist
        and SUN. We additionally collect NovelSpecies, a                             Clouded Tiger Cat                        Resupply Base
        benchmark dataset consisting of newly discovered
        animal species that are guaranteed to be unseen
        by LMMs. LLaVA-1.6 1-shot updating results on                    Figure 1. CoDA uses diffusion-generated synthetic data to help
        these three datasets show CoDA significantly im-                 LMMs recognize novel and confusing concepts in the wild. The
        proves SOTA visual data augmentation strategies                  “Clouded Tiger Cat (L. pardinoides)” is a new animal species first
        by 12.3% (NovelSpecies), 5.1% (SUN), and 6.0%                    described in April 2024, while ”Resupply Base” is an example of a
        (iNat) absolute gains in accuracy. Code and data                 confusing concept for LMMs. Based on model failures (collected
        at contrastive-visual-data-augmentation.github.io                from GPT4o-2024-08-06 and LLaVA-NeXT 34B), CoDA extracts
                                                                         contrastive visual and textual features to generate synthetic image
                                                                         data for model updating.
1. Introduction
                                                                         remains a challenge for current state-of-the-art proprietary
Recent advancements in multimodal pre-training (OpenAI,                  and open-source models to robustly recognize novel visual
2023; Google, 2023; Hurst et al., 2024) and visual instruc-              concepts (e.g.“Clouded Tiger Cat” Figure 1a) and confusing
tion tuning (Liu et al., 2023b;a; 2024c) have enabled impres-            / low-resource / commonly misrepresented visual concepts
sive LMM abilities. However, as shown in Figure 1, it still              (e.g. “Resupply Base” Figure 1b).
     * Equal contribution, interchangeable ordering. 1 UCLA 2 UIUC       In order to help models better acquire new visual concepts
3
    TAMU. Correspondence to: Yu Zhou <yuzhou@cs.ucla.edu>.               and distinguish confusable concepts, existing approaches
                                                                         straightforwardly 1). Fine-tune text decoder on new textual
Proceedings of the 42 nd International Conference on Machine
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025              corpora to expand the concept base; and 2). Fine-tune both
by the author(s).                                                        vision and text components on new web image-text pairs

                                                                     1
                                            Contrastive Visual Data Augmentation

for visual concept acquisition. These approaches are inef-           Our key contributions include:
fective due to data scarcity for certain concepts and data
                                                                     • CoDA, a simple plug-and-play contrastive visual data
inefficiency caused by not knowing what precisely confused
                                                                       augmentation method that can be used to effectively and
the models (3.1). As depicted in Figure 1, it can be difficult
                                                                       efficiently improve LMMs’ ability to recognize novel and
to obtain ample high-quality real images for novel concepts
                                                                       confusing concepts. CoDA is also the first widely suc-
such as new animal species. While for confusing concepts,
                                                                       cessful method using text-to-image generation for visual
the problem usually lies with biased concept representa-
                                                                       data augmentation.
tion in web image-text data. For example: online images
of “Resupply Base” mostly only consist of exterior views             • NovelSpecies, a new benchmark dataset of novel animal
of the architecture without the interior details, which may            species discovered in recent years, providing an ideal
cause the models to confuse it with a “Wholesale Store” that           benchmark for novel concept recognition. NovelSpecies
shares some interior features.                                         currently consists of 2240 annotated images and will
To help LMMs recognize and reason about novel and con-                 continue to be updated with future discoveries.
fusing concepts more robustly and efficiently, we propose
CoDA, a Contrastive Visual Data Augmentation technique.              2. Related Works
For each target concept, CoDA first identifies a “confusable
concept” that the LMMs finds most similar to the target.             Few-shot image recognition is a long-standing problem in
Then, it extracts contrastive textual and visual features of         the vision community. Early works in this area focused on
the target concept with respect to the confusable concept.           improving traditional image classifiers on classifying exist-
The extracted features go through a filtering process based          ing concepts (Vinyals et al., 2016; Finn et al., 2017; Nichol,
on discriminability and generability to make sure that: 1).          2018; Dhillon et al., 2019; Tian et al., 2020; Bhagat et al.,
The features are possessed by the target concept but not             2023; Afrasiyabi et al., 2022). On the other hand, while re-
the confusable concept; and 2). The feature can be reliably          cent advancements in the training of vision language models
generated by the text-to-image generative model and recog-           (VLMs) and large multimodal models (LMMs) (OpenAI,
nized by the LMMs. Afterwards, the features are passed to            2023; Google, 2023; Hurst et al., 2024; Liu et al., 2023b;a;
the text-to-image generative model to produce augmented              2024c) have shown great promise and extensibility, they
visual instances of the target concept. To make sure that            still severely lag behind traditional models in image classi-
the features are indeed generated and recognizable by the            fication, especially for low-resource, novel, and confusing
LMMs, CoDA again uses the LMMs’ zero-shot inference to               concepts (Zhang et al., 2024; Cooper et al., 2024; Wu et al.,
rank and filter the augmented images. Finally, the resulting         2023b; Yang et al., 2024; Ha et al., 2025).
augmented images can be used to update the LMMs via                  While commonly used text-side VLM data augmentation
low-rank adaptation, basic fine-tuning, in-context learning,         strategies (Yuksekgonul et al., 2022; Yang et al., 2023; Liu
or any other method of choice.                                       et al., 2024e; Sharifzadeh et al., 2024) have little effect
In addition to evaluating on existing datasets INaturalist and       on this issue, a more promising technique to solve this is
SUN, we create NovelSpecies, an annotated image dataset              through visual data augmentation. This includes basic visual
of newly discovered animal species in recent years. Novel-           manipulations such as cropping, flipping, and rotation (Yang
Species allows the simple selection of species discovered            et al., 2022; Kumar et al., 2024); and more advanced model-
after any model’s latest knowledge cutoff date, ensuring the         based augmentation such as style transfer (Zheng et al.,
selected species were never seen by the model. Therefore,            2019; Chun & Park, 2021) and image mixing (Uddin et al.,
NovelSpecies is the perfect testbed for methods aimed at             2020; Xie et al., 2021; Hao et al., 2023). More recently, with
improving LMMs’ novel concept recognition ability.                   the rise of controllable and promptable visual generative
                                                                     models, knowledge and feature editing-based augmentation
Comprehensive experiments with LLaVA-NeXT on the 3                   methods (Liu et al., 2022; Wu et al., 2023a; Jin et al., 2024)
datasets show CoDA performs surprisingly well in teach-              have gained in popularity. Such methods generally focus
ing LMMs novel and confusing concepts, significantly im-             on using multimodal data and general knowledge bases to
proving data efficiency compared to existing methods. In             guide image-editing models in creating augmented visual
additional experiments, we show that CoDA is also able               data based on existing images.
to improve novel concept recognition for traditional classi-
fiers like ViT and proprietary LMMs such as GPT4o-mini.              One main issue with current methods is that the augmented
Finally, ablation experiments show that CoDA can be sig-             images they produce must be closely based on existing real
nificantly improved by simply replacing its off-the-shelf            images, which makes them unhelpful for novel concepts
components such as the text-to-image generation model                where real images are extremely rare, and mis-represented
with superior versions of similar models.                            concepts where existing real images do not accurately depict
                                                                     the concept. Additionally, due to their close connection

                                                                 2
                                              Contrastive Visual Data Augmentation

to existing images, such augmented images usually lack                  search. However, we believe currently the advantages
visual frame structure and view variation. In contrast, our             brought by these methods do not out-weigh their complexity
method CoDA can extract accurate and meaningful features                overhead, thus we opt for simplicity.
from extremely limited multimodal data, and use text-to-
                                                                        Visual Feature Extraction While textual feature extrac-
image generative models to produce diverse high-quality
                                                                        tion generally works well for pre-existing and non-hyper-
augmented data for LMM updating.
                                                                        domain-specific concepts that are prevalent in textual data
                                                                        sources, it tends to fail when either of the conditions are not
3. Methods                                                              met. For example, a large language model with a knowledge
                                                                        cutoff prior to June 2023 would not be able to provide mean-
As shown in Figure 2, CoDA consists of 4 major steps
                                                                        ingful features regarding the Apple Vision Pro device an-
including contrastive textual and visual feature extraction,
                                                                        nounced in July, or the new animal species “Clouded Tiger
feature filtering, feature-controlled image generation, and
                                                                        Cat (L. pardinoides)” first described by scientists in April
augmented image filtering. Together these steps ensure
                                                                        2024 (Figure 1). In addition to this weakness, LLM-based
CoDA reliably generates informative and high-quality aug-
                                                                        textual feature extraction is also unreliable when asked
mented images that help LMMs recognize novel and con-
                                                                        to provide detailed information regarding hyper-domain-
fusing concepts.
                                                                        specific concepts like the “Mazda MX-5 Miata RF” or the
                                                                        “Lear’s Macaw (Anodorhynchus Leari)”. In practice, we
3.1. Feature Extraction                                                 observe that for novel and hyper-domain-specific concepts,
Textual Feature Extraction In our exploratory experi-                   most of the LLM extracted textual features end up being
ments, we find that significant mis-recognition errors occur            filtered out by our automatic feature filtering module.
on low-resource or commonly mis-represented concepts in                 To address this weakness, we implement an additional vi-
vision-language instruction fine-tuning and multimodal pre-             sual feature extraction module based on VLMs. Given a
training datasets, which the LMMs are trained on. For exam-             single image of the target concept, the VLM is asked to
ple, the LLaVA 1.6 (34B) model (Liu et al., 2024c), mainly              extract its key visual features. When there is more than
tuned on LAION-GPT-4V(LAION, 2024) and ShareGPT-                        one image containing the target concept available, we use a
4V (Chen et al., 2023) datasets, has a strong tendency to mis-          LM to de-duplicate and summarize the combined extracted
recognize interior images of “Resupply Base” as “Wholesale              visual features from all images. For simplicity and cost-
Store” (Figure 1). Unsurprisingly, we find that all related ref-        efficiency, we use the GPT4o-mini model for both visual
erences of “Resupply Base” across the 3 instruction-tuning              feature extraction and feature de-duplication.
datasets only depict exterior views of the concept rather than
interior views. While the concept itself is not a low-resource          In contrast to textual feature extraction, visual feature extrac-
concept in existing text corpora, it is severely low-resource           tion is most effective for hyper-domain-specific and novel
and also commonly mis-represented in vision-language in-                concepts that are very rare or non-existent in textual cor-
struction fine-tuning datasets.                                         pora but have a limited number of visual examples. Thus,
                                                                        it well-complements textual feature extraction. Similarly,
To address this issue, we prompt LLMs to directly generate              we do not attempt to classify which concepts fall under this
feature attributes of the target concept based on their existing        criterion; instead, we apply this step to all concepts and rely
knowledge, focusing on visual appearance, and avoiding                  on automatic filtering (3.2) to remove low-quality features.
hallucination for unfamiliar concepts. For this task, we use
the cost-efficient GPT4o-mini model with chain of thought               Contrastive Feature Extraction While basic textual and
reasoning. Generally, textual feature extraction is most                visual feature extraction both aim to exhaustively list iden-
applicable for concepts that are high-resource in existing              tifying features of the target concept, this is essentially an
textual corpora, yet low-resource and/or commonly mis-                  intractable task for complex concepts as it usually requires
represented in vision-language instruction-tuning and pre-              a huge number of features to fully describe them. For novel
training datasets. Here we do not try to classify which                 or low-resource concepts the LMM has likely never seen
concepts fall under this criteria, but rather apply this step for       before, it is extremely difficult to teach the LLM the new
all concepts. To ensure extracted feature quality and filter            concept using an incomplete description.
out hallucinated and/or non-visually-recognizable features,             There are two potential solutions to this problem: (1). Lever-
we pass all extracted features through an automatic filtering           aging hierarchical information to narrow down concept cat-
step, as described in 3.2.                                              egory and reduce descriptional features. (2). Illustrating
We also considered other methods for textual feature ex-                the new concept based on contrastive differences from a
traction, including using knowledge bases (Jin et al., 2024),           similar existing concept the LMM already understands. Pre-
retrieval augmented generation, and LLMs with internet                  vious works in language and visual data augmentation (Jin
                                                                        et al., 2024) tend to use solution (1). However, its feasibility

                                                                    3
                                                  Contrastive Visual Data Augmentation

     Target Concept                 Feature Extraction                       Feature-controlled Augmentation              Model Updating
    Anodorhynchus Leari                      Textual
      (Lear's Macaw)
                             Cliff-nesting, Native to    Shorter life,
                             Faster flight,  Brazil         Lighter,                                                    LoRA, Fine-tuning,
                             ···              ···                   …                                                   ICL, VL-Adaptor, …

                                             Visual
                                                                         Anodorhynchus Leari Cyanopsitta Spixii
                              Bright yellow Coal black    Light blue
                                                                           (Lear's Macaw)     (Spix's Macaw)
                              eye rings,   curved beak   facial skin,
                              ···              ···                ···
     Zero-Shot Inference                                                        Augmented Image Filtering
                                                                                                                         Anodorhynchus Leari
                                      Feature Filtering                                                                    (Lear's Macaw)
        Confusable                                                                            “Yellow eye ring”
         Concept                    “Coal black curved beak”
                                                                                              “Yellow cheek skin”
                             Discriminability: 0.45
      Cyanopsitta Spixii                                                                      “Deep cobalt blue”
                             Generability: 0.93
       (Spix's Macaw)
                                     “Bright Yellow eye ring”
                             Discriminability: 0.98                                           “Yellow eye ring”
                             Generability: 0.86
                                                                                              “Yellow cheek skin”
                                                                                              “Deep cobalt blue”           Cyanopsitta Spixii
                                         “Native to Brazil”
                             Discriminability: 0.48                                                                         (Spix's Macaw)
                             Generability: 0.14


Figure 2. The CoDA method. Including Feature Extraction, Feature Filtering, Feature-controlled Augmentation, and Augmented
Image Filtering. The target concept and misidentified concept are highlighted respectively. Specific feature filtering scores are for
illustration only. Here the example concepts Anodorhynchus Leari (Lear’s Macaw) and Cyanopsitta Spixii (Spix’s Macaw) are from the
iNaturalist (Van Horn et al., 2018) dataset, and augmented images are produced by the Recraft V3 model (Recraft.AI, 2024).

is contingent on the existence of a comprehensive textual                     To calculate the Discriminability of a feature f given the tar-
knowledge base or tree-like structure that already includes                   get concept CT and misidentified concept CM , we compute
the target concept. As discussed in Section 3.1, this is of-                  the likelihood that CLIP (Radford et al., 2021) associates
ten not the case for novel concepts such as new electronic                    this feature with real images of the target concept compared
products (e.g. Apple Vision Pro) or new animal species (eg.                   to the likelihood that it is associated with real images of the
Clouded Tiger Cat).                                                           misidentified class:
                                                                                                     X             CLIP(f, ireal
                                                                                                                             CT )
To enable the handling of novel concepts and remove the                           D(f, CT , CM ) =
need for external databases, we adopt solution (2) and per-                                          i∈I
                                                                                                                    real
                                                                                                          CLIP(f, iCT ) + CLIP(f, ireal
                                                                                                                                     CM )
form contrastive multimodal feature extraction for all target                 Here we use an equal number of images of the target and
concepts. First, we use the LMM’s zero-shot inference on                      misidentified concepts. A score below 0.5 indicates that the
the target concept CT to obtain the misidentified concept                     feature is more likely to be associated with the misidentified
CM . Then, we perform contrastive textual and visual fea-                     class rather than the target class. To ensure that selected
ture extraction by querying LLMs and VLMs for visually                        features are more strongly associated with the target class,
identifying features that belong to CT but not CM .                           we filter out all features with Discriminability below 0.6.
                                                                              This method avoids the CLIP score bias against smaller
3.2. Feature Filtering
                                                                              features by only comparing feature association with the two
Automatic Feature Filtering After obtaining visually                          classes and not relying on the absolute CLIP score.
identifying features from contrastive textual and visual fea-
                                                                              Generability is calculated for all features that pass the Dis-
ture extraction, we filter them based on two key criteria:
                                                                              criminability threshold. We prompt the T2I generative
  1. Discriminability (D(f, CT , CM )) : measures whether                     model g to generate synthetic images of the target con-
     a feature f indeed differentiates the target class CT                    cept that contains the feature f , and then compare the aver-
     from the misidentified concept CM (check whether f                       age CLIP similarity between f and those generated images
     is a valid feature of CT but not CM ) .                                  against the average CLIP similarity between f and irealCM :

  2. Generability (G(f, CT , CM )) : measures whether a
     feature f can be properly generated by the text-to-
                                                                                                    X               CLIP(f, isynthetic
                                                                                                                             CT        )
                                                                              G(f, CT , CM , g) =                synthetic
     image generative model.                                                                        i∈I CLIP(f, iCT        ) + CLIP(f, ireal
                                                                                                                                        CM )


                                                                         4
                                                     Contrastive Visual Data Augmentation

                                                                           To verify the reliability of our feature filtering and aug-
Here we rank all remaining features by their Generability                  mented image verification modules, we conduct human eval-
score and select the top 5 features to be passed to the text-to-           uation on a subset of iNaturalist and the novel animal species
image generative model (as current diffusion models usually                dataset. For target concepts, we select 100 image-feature
have limited text encoder attention span). This step identifies            pairs for both real and augmented synthetic images. We also
features that not only help distinguish the target concept,                select 100 image-feature pairs for real images of misiden-
but also can be effectively rendered by the text-to-image                  tified concepts. 3 external human annotators are asked to
generative model in synthetic images, which is critical to                 label whether they believe the given feature belongs to the
the success of synthetic data augmentation.                                concept in the corresponding image.
Our automatic feature filtering module based on Discrim-                   Results in Table 1 show human annotators overwhelmingly
inability and Generability ensures feature quality and limits              agree that the final extracted features belong to the target
the information loss between features and the generated                    concept (92%) but not the misidentified concept (14%). The
augmented images. The remaining features are used for                      augmented synthetic images of the target concept also likely
image generation and improving in-context recognition abil-                contains the desired features (83%), though as expected,
ity in inference prompts. We further verify the quality of                 there is some information loss between the text-to-image
remaining features with human evaluation in Sec.3.4.                       generation step. In addition, the three independent annota-
                                                                           tors generally agreed in their response (>0.8 IAA).
3.3. Image Generation and Verification
                                                                           3.5. In-Context Inference for Enhanced Recognition
Image Generation After feature extraction and filtering
based on Discriminability and Generability, we pass the                    In addition to updating the LMM with augmented data, we
selected features to a text-to-image generative model to                   can further boost performance by integrating the extracted
generate augmented visual data. We experiment with both                    features into the inference prompt. For each query, we can
SOTA open-weights (Esser et al., 2024; Stability AI, 2024)                 append a concise list of the most discriminative and gen-
and proprietary (Recraft.AI, 2024) models.                                 erable features of the target and confusable classes. These
                                                                           features serve as an in-context guide, focusing the LMM’s
Verification To ensure final images for augmentation con-                  attention on critical distinguishing attributes. By explicitly
tain our extracted and filtered target concept features, we                highlighting what to look for (and what not to mistake it
propose a simple automatic verification metric that checks                 for), the model more reliably identifies the correct concept.
whether desired features are recognized in the augmented
images by the LMM we want to update: Given the vanilla
                                                                           4. NovelSpecies Dataset
LMM M, a set of features F, and an augmented image
isynthetic , the feature satisfaction rate S(isynthetic , F, M ) for       Proprietary LMMs like GPT4o (Hurst et al., 2024) and
each augmented image:                                                      Gemini (Google, 2023) are trained on vast online text-image
                                                                           data and proprietary data, both non-public and impossible
                                                  synthetic
                                   P
           synthetic                 f ∈F 1{M(f, i          )}             to inspect. Some open-source and open-data LMMs such as
      S(i              , F, M) =                                           LLaVA (Liu et al., 2024b;d) are trained on publicly available
                                               |F|
                                                                           image-text datasets. However, the text encoders used by
                                                                           such models are often not open-data, for example LLaVA-
Here M(f, isynthetic )} returns true if the feature f is recog-
                                                                           1.6 34B uses the closed-data Yi-34B model as its language
nized in the image isynthetic . Afterwards, we filter out all im-
                                                                           backbone. Even in the rare cases where both image-text
ages with S(isynthetic , F, M ) <1.0, keeping only augmented
                                                                           training data and text encoder training data are publicly
images that fully match all target concept features.
                                                                           available, it is still difficult to ascertain whether concepts in
                                                                           your benchmark were seen by your LMM through indirect
3.4. Human Evaluation                                                      data leakage (i.e. partial / paraphrased mentions). Due to
                                                                           the above issues, it is difficult to evaluate true novel concept
   Image          Target           Misidentified     Inter-Annotator       recognition ability with existing datasets.
    Type        Concept (%)        Concept (%)        Agreement (κ)
   Real                92.51           14.32              0.87
                                                                           One way to bypass this problem with 100% guaranteed suc-
 Synthetic             83.97             -                0.82             cess is to use a dataset that only contains concepts created /
                                                                           discovered after the LMM’s knowledge cutoff, i.e. the latest
Table 1. Human eval of extracted features and augmented im-                knowledge cutoff date among all of its textual / visual sub-
ages. 3 external annotators are asked to answer (yes/no) to whether        components. Based on this idea, we curate NovelSpecies,
the extracted and filtered features are present in the corresponding       a dataset of novel animal species discovered in each recent
real and synthetic images. IAA based on Fleiss’ Kappa.

                                                                       5
                                             Contrastive Visual Data Augmentation

year, starting with 2023 and 2024. We provide detailed infor-              here for direct comparison with CoDA and other exist-
mation for each species, including time of discovery, latin                ing feature-based augmentation methods.
name, common name, family category, textual description,
and more. Data will be released upon publication.                       3. ARMADA (Jin et al., 2024) is the current state-of-the-
                                                                           art feature-based visual data augmentation strategy for
To create NovelSpecies, we start by collecting the list of                 concept recognition and image classification.
species first described in each year by Wikidata (Wikidata,
2024). Then, to make sure we can curate a visual benchmark            In addition to these 3 baselines, we also include ablations
of novel species, we manually annotate and filter out extinct         of CoDA with non-contrastive textual and visual features,
species and species with too few publicly available images.           i.e. w/o contrastive guidance from confusable concepts (3.1)
After filtering, we end up with a dataset of 64 new species,          nor discriminability-based feature filtering (3.2).
each consisting of 35 human-verified image instances, thus
a total of 2240 images. The images are split into training,           5.2. Main Experiment
validation, and test sets. For each species, there are 5 train-
                                                                      For our main experiment, we consider two different resource
ing images, 15 validation images, and 15 test images. This
                                                                      settings that correspond to common real-world scenarios:
data split is consistent with our goal of creating a benchmark
dataset for novel concept recognition, where the maximum              Fixed Real Data Under the fixed real data setting, we only
number of training instances for a completely unseen con-             have access to 5 real images for each concept. Each data
cept can range from 1 to 5.                                           augmentation strategy may generate 1-5 synthetic images.
                                                                      Then, the model is LoRA-adapted on the combined real
5. Experiments                                                        and synthetic images. This setting simulates real-world
                                                                      scenarios, where there isn’t sufficient real training data for
5.1. Datasets and Baselines                                           certain concepts. This is common for novel concepts, hyper-
To evaluate CoDA’s ability to improve novel and confusing             domain-specific concepts, and long-tail distributed datasets.
concept recognition in LMMs, we experimented with CoDA                In these scenarios, the quality and effectiveness of synthetic
and other relevant baselines on three different datasets:             augmented data is especially instrumental to the updated
                                                                      model’s performance.
  1. The iNaturalist Dataset (Van Horn et al., 2018) is a
     challenging natural world concept recognition bench-             Experiment results across the 3 datasets show that CoDA
     mark for LMMs due to its extensive highly domain-                consistently outperforms existing traditional and feature-
     specific and fine-grained species categories and inclu-          based data augmentation methods in the Fixed Real Data
     sion of rare and low-resource species classes.                   setting. When augmenting the training set with just a single
                                                                      synthetic image, CoDA is able to achieve 11.8% (Novel-
  2. The SUN Dataset (Xiao et al., 2010) is a widely used             Species), 10.0% (SUN), and 17.8% (iNat) absolute gains in
     large-scale scene recognition dataset that contains rich         accuracy compared to using all real images. It further out-
     and confusing visual scenes. Correctly recognizing               performs the best existing baseline augmentation methods
     the scenes requires fine-grained visual reasoning and            by 5-12% absolute gains. We also observe that the ablated
     understanding of the scenes.                                     performance of CoDA (w/o contrastive) is still significantly
  3. NovelSpecies Dataset (Sec.4) is our new dataset con-             above traditional and image-editing-based augmentation
     sisting only of novel animal species concepts that               baselines while being almost consistently below CoDA’s
     LMMs are guaranteed to have never encountered in                 performance. This shows the benefits of text-to-image gener-
     their training or fine-tuning.                                   ative augmentation methods compared to existing methods,
                                                                      as well as the benefits of fine-grained textual features dur-
For each dataset, we use an automatic data selection strat-           ing inference. This also highlights the need for contrastive
egy A.2 to find a subset of challenging concepts that the             feature selection and discriminability-based feature filtering.
model fails to recognize. Then, we apply CoDA along with              We find that increasing the number of augmented synthetic
3 other visual data augmentation baselines:                           images does not necessarily improve updated model perfor-
                                                                      mance; this may be attributed to the fact that all generated
  1. All Real uses an all real augmented image set. In the
                                                                      images are ranked and selected from the same pool, with the
     Fixed Real Data setting, this means using the 5 real
                                                                      first image being of the highest quality. Finally, the largest
     images provided. In the Fixed Compute setting, this
                                                                      improvement over existing baselines can be seen in Nov-
     means using unlimited real images to match the total
                                                                      elSpecies, where CoDA methods involving visual features
     number of real + synthetic images in other settings.
                                                                      achieve the highest performance. This makes sense as the
  2. Cropping and Flipping are widely used traditional                visual feature extraction method is designed to be robust to
     visual data augmentation strategies. We include them             novel concepts with little textual documentation.

                                                                  6
                                               Contrastive Visual Data Augmentation


                              Augmentation          Feature         Fixed Real Data (Real:Syn)           Fixed Compute (Real:Syn)
          Dataset                                    Type
                                Method                              5:0          5:1     5:3      5:5      20:0     10:10       0:20
                                                    All Real        61.2         -        -       -         -          -          -
                                                   Cropping          -          60.4     60.4    59.5       -          -          -
                                  Baselines
                                                    Flipping         -          60.7     62.9    60.1       -          -          -
                                                   ARMADA            -          60.7     60.2    61.2       -          -          -
       NovelSpecies
                                                     Textual            -       69.1     68.6    70.5       -          -          -
         (Sec.4)                CoDA (w/o
                                                     Visual             -       71.8     72.6    71.7       -          -          -
                                contrastive)
                                                      T+V               -       70.3     65.1    70.1       -          -          -
                                                     Textual            -       72.0     69.2    70.3       -          -          -
                                   CoDA              Visual             -       73.0     72.8    71.8       -          -          -
                                                      T+V               -       70.1     72.6    73.0       -          -          -
                                                    All Real        73.4         -        -       -        74.3       -          -
                                                   Cropping          -          78.3     75.8    76.3       -        77.3       76.4
                                  Baselines
                                                    Flipping         -          75.7     78.4    74.8       -        75.2       76.1
                                                   ARMADA            -          75.9     78.3    77.6       -        76.2       76.8
          SUN                                        Textual            -       80.6     79.7    79.4       -        81.3       80.8
    (Xiao et al., 2010)         CoDA (w/o
                                                     Visual             -       81.3     81.6    79.3       -        80.0       80.8
                                contrastive)
                                                      T+V               -       82.7     80.7    80.4       -        82.8       82.1
                                                     Textual            -       79.2     83.2    82.3       -        82.8       82.1
                                   CoDA              Visual             -       82.3     81.7    82.2       -        81.8       83.1
                                                      T+V               -       83.4     81.7    82.6       -        83.3       82.1
                                                    All Real        49.2         -        -       -        64.3       -          -
                                                   Cropping          -          59.7     58.8    62.2       -        61.4       63.9
                                  Baselines
                                                    Flipping         -          61.0     61.1    62.3       -        62.1       62.7
                                                   ARMADA            -          60.1     60.7    61.1       -        61.6       58.5
       iNaturalist                                   Textual            -       63.9     64.6    66.5       -        65.6       63.2
 (Van Horn et al., 2018)        CoDA (w/o
                                                     Visual             -       65.0     64.7    64.3       -        65.6       63.2
                                contrastive)
                                                      T+V               -       62.8     64.4    62.3       -        64.4       63.4
                                                     Textual            -       63.9     67.8    62.6       -        65.0       64.9
                                   CoDA              Visual             -       67.0     66.0    65.1       -        62.5       60.9
                                                      T+V               -       63.5     65.0    64.6       -        67.0       64.1

Table 2. Main experiment results on INaturalist, SUN, and NovelSpecies under Fixed Real Data and Fixed Compute settings:
Experiments are defined by the number of Real:Synthetic images used. For example, 5:1 means the model uses 5 real images and 1
synthetic image for each concept class at training time. All results are in terms of LLaVA-1.6 34B concept recognition accuracy (%). Best
performance scores for each setting and scores using all real data are highlighted in Red and Green, respectively.

Fixed Compute Under the fixed compute setting, we as-                       hypothesis is tested by whether any of the models fine-tuned
sume access to unlimited real and synthetic images. How-                    with mixed real/synthetic data can outperform the model
ever, the fine-tuning budget can only support a total of 20                 fine-tuned with all real data.
images, allowing different percentages of real and synthetic
                                                                            Experiments on iNaturalist show diverging results between
images, from 0% synthetic (20:0) to 100% synthetic (0:20).
                                                                            CoDA and other baseline augmentation methods: While
This setting simulates real-world scenarios, where there is
                                                                            including synthetic images generated by baseline methods
abundant real data. In such cases, the question is whether to
                                                                            generally led to lower performance, using CoDA augmented
just use all real data to update the model, or to include a non-
                                                                            images can actually lead to improvements over using all real
trivial amount of augmented synthetic data. Traditionally,
                                                                            data. Furthermore, a 50-50 real-synthetic data mix gener-
real data is always preferred due to perceived higher-quality.
                                                                            ally outperforms all real or all synthetic data. We attribute
However, CoDA’s effectiveness in the Fixed Real Data set-
                                                                            the success of mixing synthetic and real data to the fact
ting prompts us to test the possibility of it being beneficial to
                                                                            that CoDA generated synthetic data is aimed to highlight
include synthetic data even when real data is abundant. This

                                                                    7
                                              Contrastive Visual Data Augmentation


  Augmentation         Feature              LLaVA-NeXT                         GPT4o-mini                             ViT
    Method              Type          5:0     5:1     5:3     5:5        5:0    5:1     5:3     5:5     5:0     5:1         5:3   5:5
                       All Real      61.2     -       -        -        84.3     -       -      -      75.4     -        -         -
                      Cropping        -      60.4    60.4     59.5       -      84.8    86.3   85.9     -      78.3     77.6      79.6
     Baselines
                       Flipping       -      60.7    62.9     60.1       -      83.2    83.5   84.3     -      76.9     77.9      78.2
                      ARMADA          -      60.7    60.2     61.2       -      84.1    84.3   83.9     -      76.3     76.4      78.6
                        Textual        -     74.8    75.1     74.7        -     87.6    87.2   87.0      -     82.5     84.5      84.7
    CoDA (w/o
                        Visual         -     76.5    77.9     76.2        -     88.3    89.6   88.2      -     82.5     83.0      82.6
    contrastive)
                         T+V           -     77.6    78.9     78.8        -     89.5    91.2   87.9      -     84.3     84.9      82.5
                        Textual        -     76.4    75.9     76.8        -     87.1    87.9   87.4      -     84.6     85.0      84.5
      CoDA              Visual         -     77.5    78.1     77.9        -     91.3    90.8   92.6      -     85.5     84.6      85.7
                         T+V           -     78.8    78.7     79.2        -     91.6    90.8   91.4      -     85.3     85.8      86.3
Table 3. Experiments on NovelSpecies with open-weight VLM (LLaVA-NeXT), proprietary LMM (GPT4o-mini), and traditional
classifier (ViT) under the Fixed Real Data setting. Results are in terms of accuracy (%). Synthetic image data generated by Recraft V3.
Best performance scores for each setting and scores using all real data are highlighted in Red and Green, respectively.

discriminable features of the confusing / novel concepts,               iNaturalist, their performance significantly degrades on
making them more prominent and visible compared to real                 NovelSpecies due to having never encountered the novel
images. On the other hand, real images provide valuable                 concepts. To test whether CoDA can effectively improve
style information and is a more accurate reflection of the test-        novel concept recognition performance for such proprietary
time distribution, helping to “ground” the updated model.               LMMs, we fine-tune the gpt-4o-mini-2024-07-18 model us-
                                                                        ing CoDA and relevant augmentation baselines. Results in
5.3. Additional Experiments                                             Table 3 demonstrate a significant performance gain (9.5%)
                                                                        for GPT4o-mini after being fine-tuned on CoDA augmented
For additional experiments, we focus on NovelSpecies as                 synthetic images. While this improvement is not as signifi-
it most closely resembles real-world scenarios, where over              cant compared to the LLaVA-1.6 model (20.3%), it is due
time, models are required to learn novel concepts without               to GPT4o-mini’s better base performance.
access to sufficient real training data.
                                                                        Traditional Classifier In addition to evaluating CoDA
Advanced T2I Model As explained in Sec.3, off-the-shelf                 on LMMs which take image-text input and produce text
model components used in CoDA can be easily swapped                     output, we also test whether it can help traditional image
for superior versions of similar models to improve perfor-              classifiers recognize novel concepts. We run the widely-
mance. To demonstrate this, we replace the open-weight                  used ViT classifier (Alexey, 2020) on NovelSpecies with
Stable Diffusion 3.5 Large Turbo model (Stability AI, 2024)             CoDA and other augmentation baselines. Results in Table 3
with the SOTA proprietary Recraft V3 Model (Recraft.AI,                 show that CoDA is able to achieve a consistent performance
2024) and run the same LLaVA-updating experiments as in                 gain over existing baselines for ViT-base (9.1% for single-
Table 2. Here we note that Recraft V3 has better instruction-           shot augmentation). The ViT classifier provides stronger
following ability as well as better image generation quality            base performance compared to general VLMs, thus offering
compared to Stable Diffusion 3.5 Large Turbo. More details              less room for improvement. However, we note here that our
on these differences can be found in Sec.6. Our experiment              main focus on improving LMMs instead of such traditional
results in Table 3 show a significant performance boost                 classifiers stems from LMMs’ superior extensibility and
when LoRA fine-tuning LLaVA with Recraft V3 produced                    generalizability to other related tasks such as recognition-
synthetic images compared to fine-tuning on all-real data               based reasoning and explanation.
(28.7%) and also compared to fine-tuning on Stable Diffu-
sion 3.5 Large Turbo produced synthetic data (7.9%). This
demonstrates the potential increase of CoDA’s effective-                6. Discussions
ness along with improvements in Text-to-Image generative                In Figure 3, we compare example synthetic images gener-
models. We believe it is also possible to achieve similar               ated by CoDA and baseline visual data augmentation meth-
improvements by replacing the LLM/VLM components of                     ods including Cropping and ARMADA (Jin et al., 2024).
CoDA with superior models in the future.                                While providing localized feature emphasis, Cropping of-
Proprietary LMM While proprietary LMMs like GPT4o-                      ten results in the loss of crucial visual details necessary for
mini (Hurst et al., 2024) tend to have relatively strong 0-             concept identification. For instance, for Phyllobates Sam-
shot performance on existing datasets such as SUN and                   peri, cropping occludes the black spots on the frog’s skin,

                                                                    8
                                              Contrastive Visual Data Augmentation


                    CoDA Features: Prominent orange stripes, Dark shiny coloration, Black spots on legs, …



  Phyllobates
   Samperi

                                                                                              CoDA                CoDA
                     Real Images                 Cropping               ARMADA               (SD-3.5)          (Recraft V3)


    Tail-Spot
     Wrasse


                    CoDA Features: Vibrant horizontal stripes along body, Greenish-yellow cyan accents, …

Figure 3. Qualitative Comparison of CoDA and baseline visual data augmentation methods. Phyllobates Samperi and Tail-Spot
Wrasse are example concepts from the NovelSpecies dataset. All CoDA images are generated using contrastive textual + visual features.


an essential distinguishing feature. Without such essential           ability to accurately generate multiple feature details in a
distinguishing features, the cropped images provide less              single image. For example, while CoDA-Recraft-V3 is able
helpful learning signals compared to other methods.                   to accurately generate all three extracted features including
                                                                      ”prominent orange stripes”, ”dark shiny coloration”, and
Unlike Cropping, ARMADA successfully retains some
                                                                      ”black spots on legs”; CoDA-SD-3.5 is only able to generate
structural features of the target concept, using WikiData
                                                                      the first two features while failing to capture ”black spots
text features to guide its image-editing backbone (Brooks
                                                                      on legs”. With such limitations in mind, we give CoDA an
et al., 2023). However, this setup also induces two signif-
                                                                      extremely modularized design. This allows each pre-trained
icant issues: (1) Leveraging only existing textual features
                                                                      model component in CoDA to be easily replaced for newer
present in WikiData leads to an incomplete feature set, es-
                                                                      and stronger versions of similar models, including more
pecially for novel concepts. This is apparent in images
                                                                      perceptive VLMs and T2V generative models with stronger
generated for Phyllobates Samperi, where generated images
                                                                      instruction-following ability and higher generation quality.
contained ”black spots” but failed to specify their location
on the legs of the frog instead of the body. In addition, the
model completely failed to generate Phyllobates Samperi’s             7. Conclusion
iconic ”orange stripes” due to the feature not being recorded
                                                                      In this work, we propose CoDA, a contrastive visual data
in WikiData. (2) Image-editing models are not as strong
                                                                      augmentation approach that helps LMMs recognize novel,
in depicting precise details compared to text-to-image gen-
                                                                      confusing, and low-resource concepts through efficient and
erative models. In the case of the Tail-Spot Wrasse, the
                                                                      effective model updating. CoDA is a plug-and-play method
ARMADA generated image fails to accurately depict ”vi-
                                                                      which utilizes off-the-shelf models for contrastive feature
brant horizontal stripes along the body,” leading to a visually
                                                                      extraction, feature filtering, text-to-image generation, and
inconsistent and less biologically accurate representation.
                                                                      image filtering. We evaluate CoDA against four existing
In contrast to existing baselines, Figure 3 shows that CoDA           baselines and self-ablations on three datasets: INaturalist,
is much better at generating high quality synthetic images            SUN, and NovelSpecies, which we created in this work.
of the target novel concept that depict accurate and realistic        Consisting only of animal species discovered in recent years,
details. Both versions of CoDA using different backbone               NovelSpecies offers an ideal testbed for LMMs’ novel con-
models (Esser et al., 2024; Recraft.AI, 2024) are able to             cept recognition. We provide comprehensive additional
produce significantly more realistic images compared to the           experiments demonstrating CoDA’s effectiveness for tradi-
two baselines, maintaining general biological consistency.            tional classifiers and proprietary LMMs. Finally, we show
However, we should note that CoDA’s performance is in-                that CoDA can be easily improved by replacing off-the-shelf
herently bounded by the instruction-following ability of its          components, such as text-to-image generation model with
image generation backbone model, more specifically the                superior versions of similar models in the future.


                                                                  9
                                            Contrastive Visual Data Augmentation

Acknowledgment                                                        Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle,
                                                                       A., Letman, A., Mathur, A., Schelten, A., Yang, A., Fan,
This material is based on research supported by the ECOLE              A., et al. The llama 3 herd of models. arXiv preprint
program under Cooperative Agreement HR00112390060                       arXiv:2407.21783, 2024.
with the US Defense Advanced Research Projects Agency
(DARPA), an award from Office of Naval Research with                  Esser, P., Kulal, S., Blattmann, A., Entezari, R., Müller, J.,
#N00014-23-1-2780, Apple Research Award, and Amazon                     Saini, H., Levi, Y., Lorenz, D., Sauer, A., Boesel, F., et al.
AGI Research Award. The views and conclusions contained                 Scaling rectified flow transformers for high-resolution
herein are those of the authors and should not be interpreted           image synthesis. In Forty-first International Conference
as necessarily representing DARPA, or the U.S. Govern-                  on Machine Learning, 2024.
ment.
                                                                      Finn, C., Abbeel, P., and Levine, S. Model-agnostic meta-
                                                                        learning for fast adaptation of deep networks. In Interna-
Impact Statement                                                        tional conference on machine learning, pp. 1126–1135.
This paper presents work whose goal is to advance the field             PMLR, 2017.
of Machine Learning. There are many potential societal                Gidaris, S. and Komodakis, N. Dynamic few-shot visual
consequences of our work, none which we feel must be                    learning without forgetting. In Proceedings of the IEEE
specifically highlighted here.                                          conference on computer vision and pattern recognition,
                                                                        pp. 4367–4375, 2018.
References                                                            Google. Gemini: a family of highly capable multimodal
Afrasiyabi, A., Larochelle, H., Lalonde, J.-F., and Gagné, C.          models. arXiv preprint arXiv:2312.11805, 2023.
  Matching feature sets for few-shot image classification.
                                                                      Ha, H., Jin, X., Kim, J., Liu, J., Wang, Z., Nguyen, K. D.,
  In Proceedings of the IEEE/CVF conference on computer
                                                                        Blume, A., Peng, N., Chang, K.-W., and Ji, H. Synthia:
  vision and pattern recognition, pp. 9014–9024, 2022.
                                                                        Novel concept design with affordance composition. arXiv
Alexey, D. An image is worth 16x16 words: Transformers                  preprint arXiv:2502.17793, 2025.
  for image recognition at scale. arXiv preprint arXiv:
  2010.11929, 2020.                                                   Hao, X., Zhu, Y., Appalaraju, S., Zhang, A., Zhang, W.,
                                                                        Li, B., and Li, M. Mixgen: A new multi-modal data
Bhagat, S., Stepputtis, S., Campbell, J., and Sycara, K.                augmentation. In Proceedings of the IEEE/CVF winter
  Sample-efficient learning of novel visual concepts. In                conference on applications of computer vision, pp. 379–
  Conference on Lifelong Learning Agents, pp. 637–657.                  389, 2023.
  PMLR, 2023.
                                                                      Hurst, A., Lerer, A., Goucher, A. P., Perelman, A., Ramesh,
Brooks, T., Holynski, A., and Efros, A. A. Instructpix2pix:             A., Clark, A., Ostrow, A., Welihinda, A., Hayes, A.,
  Learning to follow image editing instructions. In Pro-                Radford, A., et al. Gpt-4o system card. arXiv preprint
  ceedings of the IEEE/CVF conference on computer vision                arXiv:2410.21276, 2024.
  and pattern recognition, pp. 18392–18402, 2023.
                                                                      Jin, X., Kim, J., Zhou, Y., Huang, K.-H., Wu, T.-L., Peng,
Chen, L., Li, J., Dong, X., Zhang, P., He, C., Wang, J.,                 N., and Ji, H. Armada: Attribute-based multimodal data
  Zhao, F., and Lin, D. Sharegpt4v: Improving large                      augmentation. arXiv preprint arXiv:2408.10086, 2024.
  multi-modal models with better captions. arXiv preprint
  arXiv:2311.12793, 2023.                                             Kumar, T., Brennan, R., Mileo, A., and Bendechache, M.
                                                                        Image data augmentation approaches: A comprehensive
Chun, S. and Park, S. Styleaugment: Learning texture                    survey and future directions. IEEE Access, 2024.
  de-biased representations by style augmentation without
  pre-defined textures. arXiv preprint arXiv:2108.10549,              LAION.    Laion-gpt-4v, 2024. URL https:
  2021.                                                                //huggingface.co/datasets/laion/
                                                                        gpt4v-dataset.
Cooper, A., Kato, K., Shih, C.-H., Yamane, H., Vinken, K.,
  Takemoto, K., Sunagawa, T., Yeh, H.-W., Yamanaka, J.,               Liu, A., Feng, B., Xue, B., Wang, B., Wu, B., Lu, C., Zhao,
  Mason, I., et al. Rethinking vlms and llms for image                  C., Deng, C., Zhang, C., Ruan, C., et al. Deepseek-
  classification. arXiv preprint arXiv:2410.14690, 2024.                v3 technical report. arXiv preprint arXiv:2412.19437,
                                                                        2024a.
Dhillon, G. S., Chaudhari, P., Ravichandran, A., and Soatto,
  S. A baseline for few-shot image classification. arXiv              Liu, H., Li, C., Li, Y., and Lee, Y. J. Improved baselines
  preprint arXiv:1909.02729, 2019.                                      with visual instruction tuning, 2023a.

                                                                 10
                                             Contrastive Visual Data Augmentation

Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction             Tian, Y., Wang, Y., Krishnan, D., Tenenbaum, J. B., and
  tuning, 2023b.                                                         Isola, P. Rethinking few-shot image classification: a good
                                                                         embedding is all you need? In Computer Vision–ECCV
Liu, H., Li, C., Li, Y., and Lee, Y. J. Improved baselines               2020: 16th European Conference, Glasgow, UK, August
  with visual instruction tuning. In Proceedings of the                  23–28, 2020, Proceedings, Part XIV 16, pp. 266–282.
  IEEE/CVF Conference on Computer Vision and Pattern                     Springer, 2020.
  Recognition, pp. 26296–26306, 2024b.
                                                                       Uddin, A., Monira, M., Shin, W., Chung, T., Bae, S.-H.,
Liu, H., Li, C., Li, Y., Li, B., Zhang, Y., Shen, S.,                    et al. Saliencymix: A saliency guided data augmenta-
  and Lee, Y. J.      Llava-next: Improved reason-                       tion strategy for better regularization. arXiv preprint
  ing, ocr, and world knowledge, January 2024c.                          arXiv:2006.01791, 2020.
  URL https://llava-vl.github.io/blog/
  2024-01-30-llava-next/.                                              Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C.,
                                                                         Shepard, A., Adam, H., Perona, P., and Belongie, S. The
Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction tun-          inaturalist species classification and detection dataset. In
  ing. Advances in neural information processing systems,                Proceedings of the IEEE conference on computer vision
  36, 2024d.                                                             and pattern recognition, pp. 8769–8778, 2018.
Liu, Z., Tang, Z., Shi, X., Zhang, A., Li, M., Shrivastava,            Vinyals, O., Blundell, C., Lillicrap, T., Wierstra, D., et al.
  A., and Wilson, A. G. Learning multimodal data augmen-                 Matching networks for one shot learning. Advances in
  tation in feature space. arXiv preprint arXiv:2212.14453,              neural information processing systems, 29, 2016.
  2022.
                                                                       Wikidata. Wikidata: A free, collaborative, multilin-
Liu, Z., Liang, H., Huang, X., Xiong, W., Yu, Q., Sun, L.,              gual, secondary database, 2024. URL https://www.
  Chen, C., He, C., Cui, B., and Zhang, W. Synthvlm:                    wikidata.org.
  High-efficiency and high-quality synthetic data for vi-
  sion language models. arXiv preprint arXiv:2407.20756,               Wu, D., Wan, Y., and Chang, K.-W. Visualized text-to-
  2024e.                                                                image retrieval. arXiv preprint arXiv:2505.20291, 2025.
                                                                       Wu, Q., Zhao, M., He, Y., Huang, L., Ono, J., Wakaki,
Nichol, A. On first-order meta-learning algorithms. arXiv
                                                                        H., and Mitsufuji, Y. Towards reporting bias in
  preprint arXiv:1803.02999, 2018.
                                                                        visual-language datasets: bimodal augmentation by de-
OpenAI. Gpt-4v(ision) system card, 2023. URL https:                     coupling object-attribute association. arXiv preprint
 //api.semanticscholar.org/CorpusID:                                    arXiv:2310.01330, 2023a.
  263218031.
                                                                       Wu, T.-L., Zhou, Y., and Peng, N. Localizing active objects
Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G.,              from egocentric vision with symbolic world knowledge.
  Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J.,          arXiv preprint arXiv:2310.15066, 2023b.
  et al. Learning transferable visual models from natural              Wu, Z., Chen, X., Pan, Z., Liu, X., Liu, W., Dai, D., Gao,
  language supervision. In International conference on                  H., Ma, Y., Wu, C., Wang, B., Xie, Z., Wu, Y., Hu, K.,
  machine learning, pp. 8748–8763. PMLR, 2021.                          Wang, J., Sun, Y., Li, Y., Piao, Y., Guan, K., Liu, A.,
Recraft.AI. Recraft v3 model, 2024. URL https://www.                    Xie, X., You, Y., Dong, K., Yu, X., Zhang, H., Zhao,
  recraft.ai/.                                                          L., Wang, Y., and Ruan, C. Deepseek-vl2: Mixture-of-
                                                                        experts vision-language models for advanced multimodal
Sharifzadeh, S., Kaplanis, C., Pathak, S., Kumaran, D., Ilic,           understanding, 2024. URL https://arxiv.org/
  A., Mitrovic, J., Blundell, C., and Banino, A. Synth2 :               abs/2412.10302.
  Boosting visual-language models with synthetic captions
  and image embeddings. arXiv preprint arXiv:2403.07750,               Xiao, J., Hays, J., Ehinger, K. A., Oliva, A., and Torralba, A.
  2024.                                                                  Sun database: Large-scale scene recognition from abbey
                                                                         to zoo. In 2010 IEEE computer society conference on
Stability AI.   Introducing stable diffusion 3.5,                        computer vision and pattern recognition, pp. 3485–3492.
  2024.    URL https://stability.ai/news/                                IEEE, 2010.
  introducing-stable-diffusion-3-5.
                                                                       Xie, T., Cheng, X., Wang, X., Liu, M., Deng, J., Zhou, T.,
Sung, Y.-L., Cho, J., and Bansal, M. Vl-adapter: Parameter-              and Liu, M. Cut-thumbnail: A novel data augmentation
  efficient transfer learning for vision-and-language tasks.             for convolutional neural network. In Proceedings of the
  In Proceedings of the IEEE/CVF conference on computer                  29th ACM International Conference on Multimedia, pp.
  vision and pattern recognition, pp. 5227–5237, 2022.                   1627–1635, 2021.

                                                                  11
                                             Contrastive Visual Data Augmentation

Yang, C.-F., Yin, D., Hu, W., Peng, N., Zhou, B., and
  Chang, K.-W. Verbalized representation learning for
  interpretable few-shot generalization. arXiv preprint
  arXiv:2411.18651, 2024.
Yang, K., Deng, J., An, X., Li, J., Feng, Z., Guo, J., Yang, J.,
  and Liu, T. Alip: Adaptive language-image pre-training
  with synthetic caption. In Proceedings of the IEEE/CVF
  International Conference on Computer Vision, pp. 2922–
  2931, 2023.
Yang, S., Xiao, W., Zhang, M., Guo, S., Zhao, J., and Shen,
  F. Image data augmentation for deep learning: A survey.
  arXiv preprint arXiv:2204.08610, 2022.

Yuksekgonul, M., Bianchi, F., Kalluri, P., Jurafsky, D., and
  Zou, J. When and why vision-language models behave
  like bags-of-words, and what to do about it? arXiv
  preprint arXiv:2210.01936, 2022.
Zhang, Y., Unell, A., Wang, X., Ghosh, D., Su, Y., Schmidt,
  L., and Yeung-Levy, S. Why are visually-grounded lan-
  guage models bad at image classification? arXiv preprint
  arXiv:2405.18415, 2024.
Zheng, X., Chalasani, T., Ghosal, K., Lutz, S., and Smolic,
  A. Stada: Style transfer as data augmentation. arXiv
  preprint arXiv:1909.01056, 2019.




                                                                   12
                                           Contrastive Visual Data Augmentation

A. Appendix
A.1. Limitations and Future Work
Our work is not without limitations. First, in our experiments, we focus on the fine-tuning use case as it is the most general
and intuitive way to utilize our augmented visual data. In the future, we plan to investigate other conceivable use cases for
our augmented data, include model adaptation (Sung et al., 2022), test-time augmentation (Gidaris & Komodakis, 2018),
visual information retrieval (Wu et al., 2025), and more. Third, the modularity of our method also invites other researchers
to replace components of CoDA with superior models to achieve better performance. The NovelSpecies dataset, which can
be updated with new species in future years, may also be used to evaluate future VLMs’ novel concept recognition abilities.
Finally, we also expect improved versions of T2I generation-based visual data augmentation techniques to eventually surpass
CoDA in effectiveness and efficiency. Potential improvements may include more robust image / feature filtering and more
controllable text-conditioned image generation like multi-view synthesis. We hope our work can pave the way for future
downstream advancements by demonstrating effective uses of our augmented visual data for enhancing model capabilities.

A.2. Data Selection Strategy
For each dataset, we focus on a randomly selected subset of concepts that the model is unable to recognize. The data
selection strategy is as follows: In each iteration, we select a random subset of 15 species across different supercategories,
including ”Birds,” ”Mammals,” and ”Reptiles.” This strategy allows us to identify confusing pairs without overloading the
system, progressively building a collection of challenging cases from each subset. For each species within a subset, we
create prompts in a multiple-choice format, incorporating the image and a randomized list of options from all species in the
subset. Based on the response from the LMM, we are able to highlight specific species that are commonly mistaken for
each other, guiding us in selecting pairs for further analysis. In particular, misclassification happens when an image of one
species is identified by the LLM to be an image of another species. A pair (A, B) is considered as a confusing pair if rate of
misclassification on either direction is above the threshold 0.2. The process is repeated across new subsets, incrementally
building an ample dataset of concepts the model has difficulty recognizing.

A.3. Experiment Details
A.3.1. F EATURE E XTRACTION
For textual feature extraction, we use GPT-4o-mini with chain-of-thought reasoning, running with OpenAI API calls. Each
API call processes up to 2048 tokens, costing approximately 0.0025 per 1K input tokens and 0.005 per 1K output tokens.
Given an average of 500 tokens per query and 10 queries per concept, the estimated cost per concept is around $0.0375.
For visual feature extraction, we utilize GPT-4o-mini running with OpenAI API calls. Images are preprocessed to a
resolution of 336x336 pixels and normalized before feature embedding extraction. Each image query incurs a cost similar to
textual feature extraction. With an estimated 5 images processed per concept, the cost per concept amounts to approximately
0.1875.
With the rapid advancement of open-weights large language models and vision language models including DeepSeekV3 (Liu
et al., 2024a), DeepSeekVL2 (Wu et al., 2024), Llama 3.2 (Dubey et al., 2024), and more; we expect that feature extraction
LLMs and VLMs can be replaced with these models with none or minimal impact to performance. We plan to perform
experiments on some of these models and provide comparison results in the next updated version of our work.

A.3.2. F EATURE F ILTERING
We employ CLIP for automatic feature filtering, evaluating Discriminability and Generability scores. Discriminability is
computed using cosine similarity between feature embeddings of target and misidentified concepts, with a threshold of
0.6. Generability is assessed by comparing feature presence in synthetic images using an ensemble of Stable Diffusion 3.5
Large and RecraftV3 models. The feature selection step is executed on an NVIDIA A100 GPU, processing features in
approximately 2 hours. Top 5 ranked features are selected per concept.

A.3.3. I MAGE G ENERATION AND V ERIFICATION
For synthetic image generation, we employ Stable Diffusion 3.5 Large, running on a single A100 GPU. Additionally, we
also integrate the RecraftV3 model through an API call. Image generation is performed at a resolution of 512x512 pixels

                                                             13
                                          Contrastive Visual Data Augmentation

with a guidance scale of 7.5. The pipeline generates 50 images per concept in approximately 1.2 seconds per image.
Post-generation, we perform automated verification using LLaVA V1.6-34b, running on an A6000 GPU. Each image would
take approximately 1 minutes to run for feature presence using a feature-matching confidence threshold of 0.85. Images
with a satisfaction rate S(isynthetic , F, M) < 1.0 are discarded.

A.3.4. M ODEL U PDATING
We train V1.6-34b with supervised fine-tuning (SFT) using LoRA with rank 128 and alpha 256, optimizing memory
efficiency while maintaining model expressiveness. The training runs on two NVIDIA A6000 GPUs, leveraging DeepSpeed
Zero-3 for distributed optimization and mixed precision (bf16) for efficiency. The vision encoder is CLIP-ViT-Large-
Patch14-336, with an MLP projector aligning visual and text features. We use a cosine learning rate scheduler with a 3%
warmup ratio, training for 30 epochs with a batch size of 5 and a learning rate of 2e-4. Images are padded for aspect ratio
consistency, and gradient checkpointing is enabled to reduce memory usage. Checkpoints are saved every 50,000 steps,
retaining only the most recent one.

A.3.5. E VALUATION
Automatic evaluation measures zero-shot classification accuracy on a held-out test set. Inference runs on a single A6000
GPU with a batch size of 20, taking approximately 1 hour to complete. The prompt templates for evaluation are attached to
Appendix A.4

A.4. Prompt Construction

## Prompt for Visual/Text Feature Extractions:
# Contrastive Visual
GPT_Contrastive_Visual_Prompt = "You are an experienced and meticulously observant
    biological scientist who is asked to carefully assess the provided image. As labelled
    in the image, the left half of the image contains a picture of the animal {main_class}
     and the right half contains a picture of the animal {confusing_class}. Now, your task
     is summarize the key distinctive visual attributes possessed by {main_class} (on the
    left of the image) that makes uniquely discernible from the {confusing_class} (on the
    right half of the image). Reason step by step to produce an answer. Finally, output
    the key visual attributes of a {main_class} (that make it distinct from a {
    confusing_class}) in a python list format containing short phrases of less than 8
    words each. Do not output any features of the {confusing_class} in your python list.
    Make sure not to name the {main_class} or the {confusing_class} in any of the
    attributes in your list. Also, please try not to use negation in the visual attributes
     you generate: for example, change features like ’lack of facial markings’ to ’plain
    brown face’. Additionally, do not use comparative form in any of the features you
    output, for example, change features like ’thinner body than the other class’ to ’thin
     body’."

# Visual
GPT_Visual_Prompt = "You are an experienced and meticulously observant biological
    scientist who is asked to carefully assess the provided image. The image contains a
    picture of the animal {main_class}. Now, your task is summarize the key distinctive
    visual attributes possessed by {main_class}. Reason step by step to produce an answer.
     Finally, output the key visual attributes of a {main_class} in a python list format
    containing short phrases of less than 8 words each. Make sure not to name the {
    main_class} in any of the attributes in your list. Also, please try not to use
    negation in the visual attributes you generate: for example, change features like ’
    lack of facial markings’ to ’plain brown face’. Additionally, do not use comparative
    form in any of the features you output, for example, change features like ’thinner
    body than the other class’ to ’thin body’."

# Contrastive Text
GPT_Contrastive_Text_Prompt = "You are an experienced and knowledgeable scene
    classification specialist who is tasked to summarize the key distinctive visual
    attributes possessed by {main_class} that makes uniquely discernible from the {
    confusing_class} (just based on a visual image). First retrieve your knowledge about
    the two different types of scenes, then reason step by step to produce an answer.

                                                            14
                               Contrastive Visual Data Augmentation

   Finally, output the key visual attributes of a {main_class} (distinct from a {
   confusing_class}) in a python list format containing short phrases of less than 8
   words each. Do not output any features of the {confusing_class} in your python list.
   Make sure not to name the {main_class} or the {confusing_class} in any of the
   attributes in your list. Also, please try not to use negation in the visual attributes
    you generate: for example, instead of saying ’no bright lights,’ use ’dark
   environment.’ Additionally, do not use comparative forms in any of the features you
   provide. For instance, instead of saying ’smaller windows than the other place,’ use ’
   small windows.’"

# Text
GPT_Text_Prompt = "You are an experienced and knowledgeable scene classification
    specialist who is tasked to summarize the key distinctive visual attributes possessed
    by {main_class}. First retrieve your knowledge about the {main_class}, then reason
    step by step to produce an answer. Finally, output the key visual attributes of a {
    main_class} in a python list format containing short strings of less than 8 words each
    . Make sure not to name the {main_class} in any of the attributes in your list. Do not
     output any features of the {confusing_class} in your python list. Also, please try
    not to use negation in the visual attributes you generate: for example, instead of
    saying ’no bright lights,’ use ’dark environment.’ Additionally, do not use
    comparative forms in any of the features you provide. For instance, instead of saying
    ’smaller windows than the other place,’ use ’small windows.’"

## Text to Image Generation Prompt
Stable_Diffusion_Text_to_Image_Generation_Prompt = "Generate a 4K realistic image of {
    main_class} that contains the following attributes: " + ’, ’.join(attributes)

## Feature Verification Prompt
llava_Verification_Prompt = "You are an image verification specialist. Your task is to
    meticulously assess the image for specific attributes and confirm their presence. For
    each attribute in the list, carefully check the image, examine visual elements such as
     color, shape, texture, position, and context clues that might indicate whether the
    attribute is present. Provide a binary python output list, where each element is
    either 1 (attribute is present) or 0 (attribute is absent), corresponding exactly to
    the order of attributes provided.\\n\\nAttributes to Verify:{attributes}\\n\\nExpected
     Output: A list of 0s and 1s indicating the presence or absence of each attribute, in
    the same order as listed. Here is an example output: [0, 1, 1]."

## Finetune and Evaluation Prompt
llava_Finetune_and_Evaluation_Prompt = "You are an image classification specialist with
    expertise in categorizing images into specific groups. Given an image, identify its
    category from the following options: " + ", ".join(provided_options_capitalized[:-1])
    + ", or " + provided_options_capitalized[-1] + ". Provide your answer as only one
    category name for precise classification. Please response with the category name only.
    "

## Deduplication Prompt
GPT_Deduplication_Prompt = "You are an experienced and knowledgeable biological scientist
    who is tasked to summarize the key distinctive visual attributes possessed by {
    main_class} into a coherent list. Given the following list of attributes describing
    the animal species {main_class}: {attributes_list}. You task is to combine the
    duplicate features (which have the same or very similar meanings) into one. Then, you
    will order the remaining features in order of visual importance, the most visually
    significant / observable features will be at the front of the list while the least
    visually observable features will be at the back. Finally, output the key visual
    attributes of a {main_class} in a python list format containing short phrases of less
    than 8 words each. Make sure not to name the {main_class} in any of the attributes in
    your list. Also, please try not to use negation in the visual attributes you generate:
     for example, change features like ’lack of facial markings’ to ’plain brown face’.
    Additionally, do not use comparative form in any of the features you output, for
    example, change features like ’thinner body than the other class’ to ’thin body’."

## System Prompt
GPT_System_Prompt = "You are a helpful assistant."


                                               15
