Papers › Detection Transformer with Stable Matching

Detection Transformer with Stable Matching

10 Apr 2023ICCV 2023 1arXiv:2304.04742archive 2025-07-28

Shilong Liu, Tianhe Ren, Jiayu Chen, Zhaoyang Zeng, Hao Zhang, Feng Li, Hongyang Li, Jun Huang, Hang Su, Jun Zhu, Lei Zhang

This paper is concerned with the matching stability problem across different decoder layers in DEtection TRansformers (DETR). We point out that the unstable matching in DETR is caused by a multi-optimization path problem, which is highlighted by the one-to-one matching design in DETR. To address this problem, we show that the most important design is to use and only use positional metrics (like IOU) to supervise classification scores of positive examples. Under the principle, we propose two simple yet effective modifications by integrating positional metrics to DETR's classification loss and matching cost, named position-supervised loss and position-modulated cost. We verify our methods on several DETR variants. Our methods show consistent improvements over baselines. By integrating our methods with DINO, we achieve 50.4 and 51.5 AP on the COCO detection benchmark using ResNet-50 backbones under 12 epochs and 24 epochs training settings, achieving a new record under the same setting. We achieve 63.8 AP on COCO detection test-dev with a Swin-Large backbone. Our code will be made available at https://github.com/IDEA-Research/Stable-DINO.

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="2304.04742")

Code

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

By repository: official repository: 1 sample from 1 repository, 0 ran; found in paper text by Syntology: 8 samples from 2 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

idea-research/stable-dino officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
idea-research/stabledino 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

9 samples harvested; 6 ran; 0 honoured the contract we drafted; 3 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.

2ran · our draft was wrong
1ran · fixture could not drive it
3ran
3unverified

Licence: 1 of the 9 samples is 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 3 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.

sigmoid_focal_loss IDEA-Research/Stable-DINO/projects/stabledino/modeling/dn_criterion.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 97059585f50ae421 · report
FocalLossCost IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 3f8838b327e62992 · report
GIoUCost IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 570320cdbc1ac2d2 · report
L1Cost IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 12e38e14abb434a8 · report
box_cxcywh_to_xyxy IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 856982244cffd7e3 · report
box_iou IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · d8e49e4f454b76fc · report
generalized_box_iou IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · be174c5da2b1ca9a · report
HungarianMatcher IDEA-Research/detrex/detrex/modeling/matcher/modified_matcher.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f1c2b24b9f7949dd · report
SetCriterion fundamentalvision/Deformable-DETR/models/deformable_detr.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 66ff5da6253f8775 · report

Tasks

Decoder

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

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

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