Abstract
Deep learning models often struggle in data-scarce environments, such as few-shot learning. While generative models like Stable Diffusion can provide synthetic data, this data is often task-agnostic and fails to address the specific nuances required for downstream classification. This paper proposes a dynamic data augmentation framework that uses a Vision-Language Model (VLM) to identify classification failures and "instructs" a diffusion model to generate targeted synthetic data. By employing a guided self-contrastive fine-tuning strategy, the framework bridges the gap between generic synthetic images and the specific features needed to improve model performance.
Addressing the Misalignment Problem
Traditional data augmentation methods, such as rotation or cropping, provide only superficial variations. Modern generative models can create high-quality images, but they often lack the specific nuances required for difficult downstream tasks, such as distinguishing between visually similar species. This "misalignment" occurs because the generator is unaware of the classifier's specific struggles. This research aims to create a feedback loop where the classifier's failures guide the generator to produce more useful training samples.
Methodology: Guided Self-contrastive Fine-tuning
The proposed system consists of three core components designed to create an iterative improvement loop:
- The VLM Coordinator: A large VLM (e.g., GPT-4o) acts as a teacher. It compares images the model misclassified with those it correctly identified. If a semantic gap is detected (e.g., the model fails to recognize a specific breed of dog in a certain environment), the VLM rewrites the text prompts for the diffusion model to target that weakness.
- Two-Stage Diffusion Fine-tuning: The framework leverages the temporal nature of the diffusion denoising process. Semantic Fine-tuning targets early steps of the diffusion trajectory to correct high-level conceptual errors. Detail Fine-tuning targets later steps to adjust fine-grained textures and subtle details that are difficult to express in words.
- Self-contrastive Perception Loss ($L_C$): Using a triplet-style loss based on Structural Similarity (SSIM), the system pushes the diffusion model to generate images perceptually closer to "hard positives" (real images the model failed on) and further from "negatives" (synthetic images the model has already mastered).
Experimental Results
The method was evaluated on three standard benchmarks for Few-Shot Class Incremental Learning (FSCIL): CUB200 (fine-grained birds), CIFAR-100, and miniImageNet. The framework consistently outperformed state-of-the-art (SOTA) generative and non-generative baselines:
- Accuracy Boost: The method achieved an approximate 3% performance gain across all benchmarks.
- miniImageNet: Reached an average accuracy ($A_{Avg}$) of 96.54%, surpassing the previous SOTA (PriViLege) at 95.27%.
- CUB200: Reached an $A_{Avg}$ of 79.63%, a significant improvement over the previous SOTA's 77.50%.
- Qualitative Evolution: Visualizations show that over several epochs, prompts and generated images evolve from generic descriptions to highly specific, photorealistic instructions based on what most benefited the classifier.
Key Insights and Future Directions
The "aha moment" of this research is the use of a model's own validation failures as a compass for data generation. By targeting specific timesteps in the diffusion process, the system can choose whether to modify the "what" (semantics) or the "how" (fine details) of an image.
While the VLM occasionally struggles with the extremely subtle differences in fine-grained datasets like CUB200, the overall paradigm of "instructed failure" shows great promise. Future work may extend this framework beyond classification to more complex tasks such as object detection and image segmentation.
Summary updated