Papers › DN-DETR: Accelerate DETR Training by Introducing Query DeNoising

DN-DETR: Accelerate DETR Training by Introducing Query DeNoising

2 Mar 2022CVPR 2022 1arXiv:2203.01305archive 2025-07-28

Feng Li, Hao Zhang, Shilong Liu, Jian Guo, Lionel M. Ni, Lei Zhang

We present in this paper a novel denoising training method to speedup DETR (DEtection TRansformer) training and offer a deepened understanding of the slow convergence issue of DETR-like methods. We show that the slow convergence results from the instability of bipartite graph matching which causes inconsistent optimization goals in early training stages. To address this issue, except for the Hungarian loss, our method additionally feeds ground-truth bounding boxes with noises into Transformer decoder and trains the model to reconstruct the original boxes, which effectively reduces the bipartite graph matching difficulty and leads to a faster convergence. Our method is universal and can be easily plugged into any DETR-like methods by adding dozens of lines of code to achieve a remarkable improvement. As a result, our DN-DETR results in a remarkable improvement ($+1.9$AP) under the same setting and achieves the best result (AP $43.4$ and $48.6$ with $12$ and $50$ epochs of training respectively) among DETR-like methods with ResNet-$50$ backbone. Compared with the baseline under the same setting, DN-DETR achieves comparable performance with 50% training epochs. Code is available at \url{https://github.com/FengLi-ust/DN-DETR}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.01305")

Code

Syntology Ran 15 of 22 code samples harvested from 6 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · violated contract; 4 ran · our draft was wrong; 7 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 12 samples from 2 repositories, 10 ran; community (archive-listed): 10 samples from 4 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

17 repositories listed; official and paper-mentioned ones first.

IDEA-Research/detrex officialmentioned in papermentioned on GitHubpytorch report
fengli-ust/dn-detr officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
idea-research/dn-detr officialmentioned in papermentioned on GitHubpytorch report
IDEA-opensource/DAB-DETR mentioned on GitHubpytorch report
IDEA-opensource/DN-DETR mentioned on GitHubpytorchApache-2.0 report
IDEACVR/DINO mentioned on GitHubpytorchApache-2.0 report
IDEACVR/MaskDINO mentioned on GitHubpytorchApache-2.0 report
helq2612/biadt mentioned on GitHubpytorchApache-2.0 report
horrible-dong/teamdetr mentioned on GitHubpytorchApache-2.0 report
idea-research/dab-detr mentioned on GitHubpytorchApache-2.0 report
idea-research/dino mentioned on GitHubpytorchApache-2.0 report
idea-research/maskdino mentioned on GitHubpytorchApache-2.0 report
slongliu/dab-detr mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 15 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
4ran · our draft was wrong
7ran · fixture could not drive it
3ran
7unverified

Licence: 9 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

window_partition FengLi-ust/DN-DETR/models/DN_DAB_DETR/swin_transformer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 144d10b49baeb8a6 · report
GenerateDNQueries IDEA-Research/detrex/detrex/layers/denoising.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · a33aa40d1ec31a21 · report
apply_box_noise IDEA-Research/detrex/detrex/layers/denoising.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · c8ea5508b3ca2db0 · report
apply_label_noise IDEA-Research/detrex/detrex/layers/denoising.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 95bd488170c50d24 · report
dice_loss FengLi-ust/DN-DETR/models/DN_DAB_DETR/segmentation.py official repository ran · violated contract fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · ac8fe530cdad4d8c · report
dn_post_process FengLi-ust/DN-DETR/models/DN_DAB_DETR/dn_components.py official repository ran · fixture could not drive it Apache-2.0 recorded; this copy not marked cleared · pointer only · 9db6a2fdc3039d38 · report
gen_sineembed_for_position FengLi-ust/DN-DETR/models/DN_DAB_DETR/transformer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 1455637eb5d8b21d · report
inverse_sigmoid IDEA-Research/detrex/detrex/layers/denoising.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 49611009ffc9cf17 · report
sigmoid_focal_loss FengLi-ust/DN-DETR/models/DN_DAB_DETR/DABDETR.py official repository ran · our draft was wrong fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 5c0711aada67957e · report
window_reverse FengLi-ust/DN-DETR/models/DN_DAB_DETR/swin_transformer.py official repository ran · our draft was wrong Apache-2.0 recorded; this copy not marked cleared · pointer only · 61bf152e6a42a184 · report
build_swin_transformer FengLi-ust/DN-DETR/models/DN_DAB_DETR/swin_transformer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · ddbe621fd9f33a35 · report
multi_head_attention_forward FengLi-ust/DN-DETR/models/DN_DAB_DETR/attention.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a82091666b9db8cf · report
MLP idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 1a575c1c202174f0 · report
MSDeformAttnFunction idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) ran Apache-2.0 (permissive) · 7205a619c51dd0ee · report
_get_clones idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 82ab53eb37ba2bf3 · report
gen_sineembed_for_position idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 4c82654ae6131ecc · report
ms_deform_attn_core_pytorch idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · c53ec291fabfc643 · report
DABDETR IDEA-opensource/DAB-DETR/models/DAB_DETR/DABDETR.py community (archive-listed) unverified Apache-2.0 (permissive) · 2f7664c2aea20776 · report
MSDeformAttn idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) unverified Apache-2.0 (permissive) · 107172bd7583403e · report
TransformerDecoder idea-research/maskdino/maskdino/modeling/transformer_decoder/dino_decoder.py community (archive-listed) unverified Apache-2.0 (permissive) · 947c7bd4504c7501 · report
gen_sineembed_for_position slongliu/dab-detr/models/DAB_DETR/transformer.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 376e5a5c1b978006 · report
prepare_for_dn alibaba/EasyCV/easycv/models/detection/detectors/dab_detr/dn_components.py community (archive-listed) unverified Apache-2.0 (permissive) · fd0493bda2a2352e · report

Tasks

DecoderObject Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Object Detection COCO minival DN-Deformable-DETR-R50++ AP50 67.6 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ AP75 53.8 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ APL 65.4 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ APM 52.6 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ APS 31.3 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ Params (M) 47 #85 of 220 Archive leaderboard report
Object Detection COCO minival DN-Deformable-DETR-R50++ box AP 49.5 #85 of 220 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDetrDropoutFeedforward NetworkLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections