[Paper Review] D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement
D-FINE redefines bounding box regression in DETR-based detectors as Fine-grained Distribution Refinement (FDR) with Global Optimal Localization Self-Distillation (GO-LSD), achieving state-of-the-art real-time DETR performance on COCO with efficient latency and parameter usage.
We introduce D-FINE, a powerful real-time object detector that achieves outstanding localization precision by redefining the bounding box regression task in DETR models. D-FINE comprises two key components: Fine-grained Distribution Refinement (FDR) and Global Optimal Localization Self-Distillation (GO-LSD). FDR transforms the regression process from predicting fixed coordinates to iteratively refining probability distributions, providing a fine-grained intermediate representation that significantly enhances localization accuracy. GO-LSD is a bidirectional optimization strategy that transfers localization knowledge from refined distributions to shallower layers through self-distillation, while also simplifying the residual prediction tasks for deeper layers. Additionally, D-FINE incorporates lightweight optimizations in computationally intensive modules and operations, achieving a better balance between speed and accuracy. Specifically, D-FINE-L / X achieves 54.0% / 55.8% AP on the COCO dataset at 124 / 78 FPS on an NVIDIA T4 GPU. When pretrained on Objects365, D-FINE-L / X attains 57.1% / 59.3% AP, surpassing all existing real-time detectors. Furthermore, our method significantly enhances the performance of a wide range of DETR models by up to 5.3% AP with negligible extra parameters and training costs. Our code and pretrained models: https://github.com/Peterande/D-FINE.
Motivation & Objective
- Motivate real-time object detection with DETR-based models and address inefficiencies in bounding box regression.
- Redefine regression from fixed coordinates to iterative, fine-grained distribution refinements to improve localization accuracy.
- Develop an efficient self-distillation strategy (GO-LSD) to transfer localization knowledge from deep to shallow layers with minimal cost.
- Introduce lightweight optimizations to DETR architectures to balance speed and accuracy.
- Demonstrate broad applicability by improving various DETR backbones with minimal parameter/training overhead.
Proposed method
- Fine-grained Distribution Refinement (FDR): iteratively refines per-edge probability distributions (top, bottom, left, right) using residual logits and a non-uniform weighting function W(n) to produce edge offsets.
- employs a new Fine-Grained Localization (FGL) loss to align distributions with ground-truth offsets via IoU-weighted cross-entropy over adjacent bins.
- Global Optimal Localization Self-Distillation (GO-LSD): distills final-layer refined distributions into shallower layers through a decoupled distillation loss (DDF) and union of Hungarian matches across layers.
- Decoupled Distillation Focal (DDF) loss weights matched and unmatched predictions differently to stabilize distillation.
- Lightweight architectural and computational optimizations to DETR backbones to improve speed with negligible accuracy loss.
- Demonstrates compatibility with anchor-free, end-to-end DETR-like frameworks (anchor-free and NMS-free).

Experimental results
Research questions
- RQ1Can bounding box regression in DETR be effectively modeled as iterative, fine-grained distributions rather than fixed coordinates?
- RQ2Does bidirectional, low-cost self-distillation (GO-LSD) improve early-layer localization without increasing training/inference costs?
- RQ3What is the impact of FDR and GO-LSD on real-time DETR models across various backbones and pretraining regimes?
- RQ4How do lightweight architectural optimizations affect speed-accuracy trade-offs in D-FINE?
- RQ5What gains are achievable when pretraining on larger datasets (e.g., Objects365) before fine-tuning on COCO?
Key findings
- D-FINE-L achieves 54.0 AP on COCO val2017 at 8.07 ms latency (8.07 ms, 31M params, 91 GFLOPs).
- D-FINE-X achieves 55.8 AP on COCO val2017 at 12.89 ms latency (62M params, 202 GFLOPs).
- Pretraining on Objects365 yields 57.1 AP (L) and 59.3 AP (X) on COCO, surpassing all existing real-time detectors.
- FDR + GO-LSD improve several DETR-based models by 2.0–5.3 AP on COCO val2017 without adding parameters or training cost.
- GO-LSD distills localization knowledge from deeper to shallower layers using union-based matching, improving early-stage predictions.
- Table 2 shows consistent AP gains (2–5.3) across Deformable-DETR, DAB-DETR, DN-DETR, and DINO when adding FDR & GO-LSD.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.