D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement

Yansong Peng, Hebei Li, Peixi Wu, Yueyi Zhang, Xiaoyan Sun, Feng Wu

Abstract

D-FINE introduces a paradigm shift in real-time object detection by redefining bounding box regression as a fine-grained distribution refinement task. Moving away from traditional fixed-coordinate predictions, D-FINE employs Fine-grained Distribution Refinement (FDR) to model localization uncertainty through iteratively refined probability distributions. Combined with Global Optimal Localization Self-Distillation (GO-LSD), D-FINE achieves state-of-the-art performance on the MS COCO dataset, outperforming both the YOLO series and existing real-time DETR models in accuracy and inference speed.

Introduction: The Localization Bottleneck

Real-time object detection has traditionally been dominated by the YOLO (You Only Look Once) series due to its efficiency. However, Detection Transformers (DETRs) have recently emerged as strong competitors, offering superior global modeling. Despite their success, DETRs often face challenges with high latency and a fundamental mathematical limitation in bounding box regression.

Most detectors treat object boundaries as precise, fixed values (Dirac delta distributions). This fails to account for localization uncertainty—the inherent ambiguity in defining the exact edges of objects like hair, shadows, or overlapping items. While some prior work explored probability distributions, they were often constrained by fixed anchors or lacked iterative refinement capabilities. D-FINE addresses these issues by treating regression as a dynamic refinement of probability distributions.

Methodology

D-FINE's architecture is built on two core innovations designed to enhance precision without sacrificing real-time performance.

Fine-grained Distribution Refinement (FDR)

Instead of predicting a single coordinate for a box edge, FDR predicts a probability distribution across multiple discrete "bins." A key feature of FDR is its non-uniform weighting function. This function is designed to be "steeper" at the boundaries of the search space to facilitate large, coarse corrections, and "flatter" in the center to enable high-precision, fine-grained adjustments. These distributions are refined layer-by-layer in a residual fashion across the decoder, allowing the model to converge on highly accurate localizations.

Global Optimal Localization Self-Distillation (GO-LSD)

To further boost performance without increasing inference time, D-FINE utilizes GO-LSD. This self-distillation strategy uses the final, most accurate layers of the model as a "teacher" for the earlier, shallower layers. By optimizing a "union set" of matching results from all layers, GO-LSD ensures global optimization. This "free lunch" improvement significantly enhances Average Precision (AP) while maintaining the original parameter count and latency at runtime.

Experimental Results

The model was rigorously evaluated on the MS COCO (val2017) dataset. To maximize performance, the authors also leveraged the Objects365 dataset for pre-training.

D-FINE achieves a superior Pareto frontier in terms of COCO AP vs. Latency compared to YOLO and other DETR models.

D-FINE sets new benchmarks across various model scales:

  • D-FINE-L: Achieves 54.0% AP on COCO at 124 FPS (on an NVIDIA T4), surpassing YOLOv10-L and RT-DETR-R50.
  • D-FINE-X: Reaches 55.8% AP at 78 FPS. With Objects365 pre-training, this performance scales to 59.3% AP, the highest recorded for a real-time detector.

The versatility of FDR and GO-LSD was also demonstrated by integrating them into other DETR models like DINO, where they provided up to a 5.3% AP improvement with minimal training overhead.

Conclusion and Future Work

D-FINE successfully redefines the regression task in DETRs, bridging the gap between high-precision modeling and real-time efficiency. While the model excels at larger scales, the authors noted that very light models still face challenges due to the limited capacity of shallow layers to act as effective teachers in the self-distillation process. Future work will focus on specialized architectures for lightweight students and training paradigms that allow for heavy decoders to be discarded at test time without performance loss.

Summary updated

BibTeX
@inproceedings{peng2025d,
  author = {Yansong Peng and Hebei Li and Peixi Wu and Yueyi Zhang and Xiaoyan Sun and Feng Wu},
  title = {{D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=MFZjrTFE7h},
}
Figure