DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception

Yibo Wang, Ruiyuan Gao, Kai Chen, Kaiqiang Zhou, Yingjie Cai, Lanqing Hong, Zhenguo Li, Lihui Jiang, Dit-Yan Yeung, Qiang Xu, Kai Zhang

Abstract

We present DetDiffusion, a novel framework designed to bridge the "perception gap" between generative diffusion models and perceptive object detectors. By integrating perception-aware losses and attributes, DetDiffusion enables the generation of high-quality synthetic data specifically tailored to enhance downstream detection tasks. Our approach achieves state-of-the-art performance in layout-to-image (L2I) generation on the COCO-Stuff benchmark and demonstrates that synthetic "hard" samples can significantly improve real-world detector training, particularly for long-tail object categories.

Introduction

Modern computer vision relies on massive, accurately labeled datasets, the collection of which is resource-intensive. While generative models like Stable Diffusion can theoretically produce infinite synthetic training data, a significant disconnect remains: images generated for visual fidelity often lack the precise spatial alignment and perceptual challenges required to train effective object detectors. This "perception gap" stems from treating generation and perception as independent tasks.

DetDiffusion addresses this by creating a synergy where the generative model is informed by the requirements of a perceptive model. By understanding which features make an object difficult to detect, the generative process can be steered to produce more informative training samples.

Conceptual comparison between general L2I and the proposed perception-aware L2I framework.

Methodology

DetDiffusion introduces two primary innovations to the standard Latent Diffusion Model (LDM) pipeline to ground generation in perceptual reality:

1. Perception-Aware Loss (P.A. Loss)

To improve layout controllability, the researchers added a lightweight segmentation head to the diffusion model's UNet. During training, this head utilizes multi-scale features to predict instance masks. This forces the generative model to internalize precise object boundaries and locations, ensuring that the generated pixels strictly adhere to the provided layout constraints.

2. Perception-Aware Attribute (P.A. Attr)

This component introduces a feedback loop from a pre-trained detector (e.g., YOLOv4). Real training images are evaluated by the detector; objects easily identified are labeled [easy], while those that challenge the detector are labeled [hard]. These labels are converted into text prompt tokens (e.g., "An image with [person, location, hard]"). By training with these attributes, the model learns to synthesize images with specific perceptual characteristics, such as heavy occlusion or complex lighting.

Detailed architecture of DetDiffusion, highlighting the Perception-Aware Attribute (P.A. Attr) and Perception-Aware Loss (P.A. Loss) modules.

Experimental Results

The framework was evaluated primarily on the COCO-Thing-Stuff benchmark. Key findings include:

  • State-of-the-Art Fidelity: DetDiffusion achieved a Fréchet Inception Distance (FID) of 19.28, outperforming existing methods like GeoDiffusion and ControlNet.
  • Enhanced Layout Control: The model reached 31.2 mAP for layout-guided generation, a significant improvement in spatial accuracy over previous baselines.
  • Detector Training Gains: A detector trained on synthetic data generated with the [hard] attribute achieved 35.4 mAP, surpassing the baseline trained only on real data (34.5 mAP). This confirms that challenging synthetic samples serve as high-quality data augmentation.
  • Long-Tail Performance: The method showed remarkable success in improving detection for rare categories, such as "scissors" and "parking meters," where real-world data is typically scarce.

Conclusion

DetDiffusion demonstrates that the synergy between "creating" and "seeing" is a powerful paradigm for computer vision. By making generative models perception-aware, we can produce synthetic data that is not just visually realistic, but functionally superior for training downstream models. Future work will explore extending this framework to 3D perception and video generation, further closing the loop between generative and perceptive AI.

Summary updated

BibTeX
@inproceedings{wang2024detdiffusion,
  author = {Yibo Wang and Ruiyuan Gao and Kai Chen and Kaiqiang Zhou and Yingjie Cai and Lanqing Hong and Zhenguo Li and Lihui Jiang and Dit-Yan Yeung and Qiang Xu and Kai Zhang},
  title = {{DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure