TL;DR
InstaDA is a training-free, dual-agent data augmentation framework that solves the critical trade-off between data diversity and domain alignment in instance segmentation. By combining a text-driven agent with a self-correcting feedback loop and an image-driven agent that anchors generations to the training distribution, it achieves state-of-the-art performance on the highly imbalanced LVIS dataset, particularly boosting accuracy for rare object categories.
What Problem Does This Paper Address?
Instance segmentation—the task of identifying and delineating every individual object in an image—is notoriously bottlenecked by data scarcity. Annotating pixel-level masks is incredibly labor-intensive, leading to datasets with severe class imbalances where a few common categories dominate while hundreds of rare categories lack sufficient examples.
While recent methods leverage generative AI (like LLMs and diffusion models) to synthesize new objects for "Copy-Paste" data augmentation, they suffer from two major flaws:
- Poor LLM-Diffusion Collaboration: They rely on rigid, simplistic prompts that generate visually repetitive images.
- Domain Misalignment: Purely text-generated objects often drift away from the actual visual distribution of the training dataset, leading to suboptimal model performance.
InstaDA introduces a dual-agent architecture to simultaneously maximize visual diversity and maintain strict alignment with the target data distribution.
Methods
InstaDA splits the data generation workload into two parallel, automated workflows:
1. The Text-Agent (T-Agent) for Diversity
The T-Agent focuses on expanding the visual vocabulary of the dataset.
- Compositional Prompting: It uses DeepSeek-R1 to automatically extract diverse visual elements (styles, environments, textures) from category names, and DeepSeek-V3 to combine them into complex prompts for state-of-the-art diffusion models (FLUX.1 and SD3.5).
- Prompt Rethink Mechanism: If a generated image fails a quality check, instead of throwing it away, InstaDA triggers a self-correction loop. The LLM analyzes the failure based on a novel CLIP dual-similarity metric (which checks both text-to-image and image-to-image coherence) and iteratively refines the prompt up to two times to fix semantic or visual flaws.
2. The Image-Agent (I-Agent) for Distribution Alignment
The I-Agent ensures the generated data remains grounded in reality by creating variations of existing training images.
- Structural Guidance: It uses ControlNet guided by a fused edge map (combining edges from both the source image and its ground-truth mask) to maintain strict object structures.
- Adaptive Denoising: Using an image complexity parser (ICNet), it dynamically tunes the diffusion model's denoising strength. Simpler images receive stronger modifications to boost diversity, while complex scenes are modified subtly to preserve their integrity.
- SAM-box Mask Refinement: To fix any boundary drift caused by the image-to-image translation, the original bounding box is fed into the Segment Anything Model (SAM) to generate pristine, perfectly aligned new masks.
Datasets
The authors evaluated InstaDA on the challenging LVIS 1.0 dataset. LVIS contains roughly 100k training images across 1,203 categories, categorized into rare, common, and frequent groups based on appearance frequency, making it the gold standard for evaluating vocabulary-rich and imbalanced instance segmentation.
Key Insights and Ideas
- The Overfitting Threshold of Generative Data: The authors discovered that simply scaling up synthetic data using standard prompts actually degrades performance due to severe overfitting. True visual diversity is mandatory for large-scale generative augmentation to succeed.
- Synergy of Text and Image Agents: The T-Agent acts as an explorer, pushing the boundaries of what the model can recognize, while the I-Agent acts as an anchor, keeping the data distribution realistic. Together, they prevent the domain drift common in pure text-to-image augmentation pipelines.
Key Results
InstaDA achieved substantial performance gains when evaluated on a CenterNet2 baseline with a Swin-L backbone:
- Overall Boost: It achieved an increase of +4.2 in box AP and +3.4 in mask AP over the baseline.
- Outperforming State-of-the-Art: It surpassed DiverGen, the previous leading method, by +0.5 box AP and +0.2 mask AP overall, with a notable +0.7 box AP gain specifically on rare categories.
- Data Efficiency: The T-Agent proved incredibly efficient; generating just 240k samples matched the performance of DiverGen’s 600k samples, representing a 60% reduction in required data volume due to superior prompt engineering.
Limitations and Future Work
Despite its success, the authors note a few limitations:
- Computational Cost: The Prompt Rethink mechanism requires re-running the image generation pipeline for failed samples, which adds computational overhead (though this diminishes over iterations as fewer samples fail).
- Filtration Bottlenecks: The framework relies heavily on CLIP for filtering out low-quality images, meaning any inherent biases or blind spots in CLIP could cause the system to inadvertently discard high-quality, creative samples.
Future work could explore more lightweight feedback mechanisms or alternative multi-modal models for quality filtration.
Summary updated