Abstract
DiffusionDet is a novel framework that formulates object detection as a denoising diffusion process, evolving random boxes into precise object boundaries. Unlike traditional detectors that rely on fixed candidates or learnable queries, DiffusionDet treats detection as a generative task. This approach offers high flexibility, allowing for dynamic adjustment of the number of boxes and refinement steps during inference without retraining. Experimental results on MS-COCO and LVIS benchmarks demonstrate that DiffusionDet achieves competitive performance and superior zero-shot transfer capabilities compared to established detectors.
Introduction
For years, the field of object detection has been dominated by methods relying on predefined candidates. Early approaches utilized "sliding windows" or hand-crafted "anchors," while recent state-of-the-art models like DETR introduced "learnable queries." However, these queries remain tied to fixed parameters optimized during training, limiting the model's flexibility.
DiffusionDet addresses a fundamental question: Is there a simpler approach that eliminates the need for learnable queries? By moving toward a "noise-to-box" paradigm, the model directly detects objects starting from a set of purely random boxes, mirroring how generative models like Stable Diffusion create images from noise.
Methodology
DiffusionDet adapts the principles of Denoising Diffusion Probabilistic Models (DDPM) to the domain of bounding boxes. The process consists of two main phases:
- Forward Diffusion (Training): Gaussian noise is added to ground-truth object boxes according to a variance schedule until they become nearly random.
- Reverse Diffusion (Inference): Starting with boxes sampled from a Gaussian distribution, the model iteratively "denoises" them to recover original object locations and sizes.
Architecture
The architecture comprises an Image Encoder (e.g., ResNet or Swin Transformer) to extract high-level feature maps and a Detection Decoder. The decoder does not operate on the raw image; instead, it takes noisy boxes, crops "Region of Interest" (RoI) features from the backbone's feature map, and predicts noise-free boxes.
A key innovation is Box Renewal. During iterative sampling, predicted boxes with low confidence scores are replaced with new random boxes, ensuring a consistent number of candidates for refinement.
Key Insights and Results
DiffusionDet introduces several paradigm shifts in object detection:
- Dynamic Inference: Unlike DETR, where query counts are fixed, DiffusionDet is dynamic. A model trained with 300 boxes can be evaluated with 2,000, making it robust to varying scene densities.
- Signal Scaling: The authors discovered that bounding box coordinates require a higher signal-to-noise ratio than image pixels. A higher scaling factor was implemented to facilitate learning for the four-coordinate box data.
- Iterative Refinement: The diffusion paradigm allows the same detection head to be reused multiple times. Each inference step acts as a refinement stage, increasing Average Precision (AP) without adding parameters.
Performance Benchmarks
The model was evaluated on MS-COCO 2017, LVIS v1.0, and CrowdHuman. On COCO with a ResNet-50 backbone, DiffusionDet achieved 45.8 AP, outperforming Faster R-CNN (40.2 AP) and DETR (42.0 AP). Its zero-shot transfer capability is particularly notable; when tested on the dense CrowdHuman dataset, DiffusionDet gained 5.3 AP by simply increasing evaluation boxes and steps, whereas traditional models like Sparse R-CNN saw performance degradation.
Conclusion and Future Work
While DiffusionDet offers a powerful new perspective on detection, it faces a trade-off in inference speed due to its iterative nature. A 1-step version maintains real-time performance (30 FPS), but the full potential of the model is realized through multiple steps. Future research will focus on integrating advanced components like deformable attention and exploring faster sampling techniques, such as consistency models, to further optimize the "diffusion revolution" for real-time perception tasks.
Summary updated