Introduction
Deep learning models for object detection and segmentation require vast amounts of annotated data, particularly for complex multi-object scenes. Traditional data augmentation techniques often fall short in these scenarios. While generative AI, specifically diffusion models, offers a potential solution, current text-to-image methods face two significant hurdles: the "text gap," where prompts fail to capture dataset-specific nuances, and the "diversity-fidelity trade-off," where models either replicate the input too closely or produce unrealistic layouts.
This research introduces a prompt-free diffusion framework designed to generate diverse, high-fidelity images for multi-object augmentation. By replacing imprecise text prompts with image-based semantic fusion and a novel counting loss, the method enables the generation of training data that significantly enhances the performance of downstream models like Mask R-CNN.
Methodology
The proposed framework leverages Stable Diffusion XL (SDXL) and introduces two primary architectural innovations: Local-Global Semantic Fusion (LGSF) and a Reward Model Based Counting Loss.
Local-Global Semantic Fusion (LGSF)
Instead of relying on text encoders, the system utilizes a pre-trained CLIP image encoder to extract semantics directly from a condition image. It captures global semantics from the full image and local semantics from cropped instances of individual objects. These features are fused and integrated into the diffusion model using Low-Rank Adaptation (LoRA), ensuring the model learns the specific visual characteristics of the target dataset without extensive retraining.
Reward Model Based Counting Loss
To ensure the generated images contain the correct number of objects while allowing for layout diversity, the authors implemented a counting loss. An open-vocabulary object detector (Grounding DINO) acts as a "reward model" during training. It evaluates the denoised images and applies a penalty if the object count for a specific category is incorrect. This approach constrains the quantity of objects rather than their exact pixel positions, encouraging the model to generate creative and varied scene layouts.
Experimental Results
The framework was evaluated using the MS-COCO dataset. The researchers generated 10,000 synthetic images, which were combined with the original training set to train a Mask R-CNN model.
Performance and Fidelity
- Downstream Accuracy: The proposed method achieved a 39.04 mAP for bounding boxes, outperforming the standard MS-COCO baseline (38.65) and other state-of-the-art augmentation methods like Dataset Diffusion and MosaicFusion.
- Realism and Diversity: The model reached a Frechet Inception Distance (FID) of 18.59 and a Diversity Score (DS) of 0.71, demonstrating a superior balance between image quality and variety compared to existing baselines.
- Generalization: The system showed a robust ability to handle out-of-domain categories and varying perspectives, such as satellite views, even when they were not the primary focus of the training data.
Conclusion
By moving away from text-based conditioning, this prompt-free diffusion framework provides a more precise and effective method for multi-object data augmentation. The combination of LGSF and counting loss allows for the generation of high-quality, diverse training data that directly improves object detection performance. Future work may focus on reducing the computational overhead of the reward model and improving the model's ability to handle complex physical interactions between objects.
Summary updated