DiffuDETR: Rethinking Detection Transformers with Denoising Diffusion Process

Youssef Ahmed Nawar, Mohamed Badran, Marwan TorkiICLR 2026

TL;DR

DiffuDETR reimagines object detection by treating it as a generative task where object queries are "denoised" from random noise. By applying a denoising diffusion process specifically to the reference points of a Detection Transformer (DETR), the authors achieve significant accuracy gains—especially in crowded scenes—while maintaining high inference efficiency through a lightweight sampling scheme.

What Problem Does This Paper Address?

Since the introduction of the DEtection TRansformer (DETR), the field has moved away from hand-crafted components like anchor boxes and Non-Maximum Suppression (NMS). However, DETR-style models face a persistent "query initialization problem." Because queries often start as zero vectors or static learned embeddings, the model struggles to link these abstract placeholders to specific physical objects, leading to slow training convergence and sub-optimal localization.

While previous works like DiffusionDet applied diffusion to bounding boxes, they often required complex architectures. DiffuDETR addresses this gap by integrating the mathematical elegance of diffusion directly into the existing, high-performing DETR framework. Specifically, it targets the spatial priors (reference points) that guide the transformer's attention.

Methods

The core innovation is formulating detection as a conditional object query generation task.

Architecture of DiffuDETR
  1. Diffusion on Reference Points: Instead of diffusing the final bounding boxes, the authors add Gaussian noise to the ground-truth reference points during training. The model is then trained to "denoise" these points, effectively learning the conditional distribution of object locations given an image.
  2. Two Model Variants:
    • DiffuDETR: Built on the Deformable DETR architecture.
  3. DiffuDINO: Built on the DINO architecture, integrating Contrastive Denoising Queries (CDNs).
  4. Lightweight Sampling: To avoid the massive computational overhead typical of diffusion models (which often require hundreds of steps), DiffuDETR uses a deterministic DDIM sampler. At inference, the backbone and encoder run only once. The decoder then performs a small number of iterative refinement steps (typically just 3) to produce the final coordinates.
  5. Noise Scheduling: The authors experimented with various noise schedules (Linear, Square Root, Cosine) and found that a Cosine scheduler provided the smoothest distortion and best performance.

Datasets

The models were evaluated on three major benchmarks representing different challenges:

  • COCO 2017: The standard benchmark for general object detection.
  • LVIS: A dataset focused on "long-tail" distributions with over 1,200 categories, testing the model's ability to find rare objects.
  • V3Det: A massive-vocabulary dataset with over 13,000 categories, emphasizing extreme scale and diversity.

Key Insights and Ideas

  • Reference Points as Latent Variables: By treating reference points as low-dimensional latent variables, the model can effectively "search" the image space. This is more efficient than diffusing high-dimensional image pixels or even 4D bounding boxes.
  • The "Aha" of Efficiency: Because the diffusion happens in a very low-dimensional space (just 2D or 4D points), the authors could reduce the training timesteps from the standard 1,000 down to 100, and inference steps down to 3, without losing accuracy.
  • Superiority in Crowds: The generative nature of the process allows the model to better resolve overlapping objects. Qualitative results show DiffuDINO successfully detecting objects in crowded scenes that the baseline DINO missed entirely.
  • Robustness to Noise: Despite starting from random Gaussian noise at inference, the model is remarkably stable. Multi-seed testing showed a variance of less than ±0.2 AP, proving the "denoising" signal is incredibly strong.

Key Results

DiffuDETR consistently outperformed its baselines across the board.

Performance comparison on COCO 2017
  • COCO: DiffuDINO reached 51.9 mAP using a ResNet-50 backbone, a +1.0 improvement over the standard DINO.
  • LVIS: Observed a significant jump of +2.4 AP, highlighting its strength in long-tail scenarios.
  • V3Det: Achieved a +2.2 AP gain on ResNet-50 and a massive +8.3 AP gain when using a Swin-B backbone.
  • Computational Cost: With 3 decoder evaluation steps, the model only incurs a moderate increase in GFLOPs (approx. 285 G vs 244 G for DINO) because the heavy lifting of the backbone and encoder is not repeated.

Limitations and Future Work

  • Training Time: While inference is fast, diffusion models still generally require more training epochs to converge compared to standard discriminative models. The authors noted that DiffuDINO required 50 epochs to fully surpass DINO.
  • Step Diminishing Returns: Interestingly, increasing inference steps beyond 3 (e.g., to 10) actually led to a slight decline in performance. This suggests a potential distribution shift between the training noise and the inference sampling that needs further investigation.
  • Future Directions: The authors suggest exploring more complex noise functions beyond Gaussian and investigating how this generative approach might scale with even larger vision-language foundation models.

Summary updated

BibTeX
@inproceedings{nawar2026diffudetr,
  author = {Youssef Ahmed Nawar and Mohamed Badran and Marwan Torki},
  title = {{DiffuDETR: Rethinking Detection Transformers with Denoising Diffusion Process}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=nkp4LdWDOr},
}
Figure