Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection

DINO improves DETR-like detectors with contrastive denoising and mixed query selection

  • Problem DETR-like detectors remained under 50 AP on COCO, and nobody had reported how they scale to larger backbones and datasets.
  • Method DINO adds negative denoising queries that teach the decoder to reject empty anchors, and it picks initial anchor boxes from encoder features.
  • Results DINO reaches 49.4 AP on COCO with ResNet-50, beating the previous best DETR-like model, DN-DETR.

Where DETR-like detectors fall short

DETR drops anchor generation and non-maximum suppression by casting detection as a set prediction problem solved with bipartite graph matching. Its training converges slowly, and what its learnable queries represent is unclear, so later work added deformable attention, decoupled positional and content information, and spatial priors.

DAB-DETR treats each query as a dynamic anchor box, and DN-DETR adds a denoising technique to stabilize bipartite matching, so the two together move DETR-like models closer to classical detectors.

The authors identify two open concerns. The best DETR-like models are still under 50 AP on COCO, and no report had shown how these models behave when the backbone and the training data are scaled up. DINO is designed to address both concerns by changing the denoising training, the query initialization and the box prediction of a DETR-like model built on DN-DETR, DAB-DETR and Deformable DETR.

Starting point and overall pipeline

A DETR query has a positional part and a content part, and DAB-DETR writes the positional part as a 4D anchor box with center coordinates x and y and size w and h. This explicit box form lets the anchor be refined layer by layer in the decoder.

Because a noised ground-truth box behaves like an anchor with a ground-truth box nearby, the auxiliary denoising loss can be added to any DETR-like model.

Deformable DETR contributes two ideas that DINO reuses: query selection, which takes features and reference boxes from the encoder as decoder inputs, and iterative box refinement with gradient detachment between decoder layers, which the authors call look forward once.

In the DINO pipeline, multi-scale features from a backbone such as ResNet-50 or SwinL pass through the Transformer encoder, the top-K encoder features initialize anchor boxes as positional queries, and the content queries stay learnable. The decoder uses deformable attention to combine encoder features and refines the queries layer by layer, with an extra denoising branch that carries the contrastive denoising queries.

Contrastive denoising queries

DN-DETR learns to predict from anchors that have a ground-truth box nearby, but it does not learn to predict no object for anchors without one. Contrastive denoising adds negative queries so that the decoder learns to reject such anchors.

Two noise scales, \(\lambda_1\) and \(\lambda_2\) with \(\lambda_1 < \lambda_2\), split the noised queries. Positive queries lie inside the inner square of noise and must reconstruct their ground-truth box, while negative queries lie between the inner and outer squares and must predict no object. The authors use a small \(\lambda_2\) because hard negatives close to a ground-truth box are more useful for learning.

For an image with n ground-truth boxes, one CDN group contains 2 × n queries, one positive and one negative for each box, and several groups are used as in DN-DETR. The reconstruction losses are the L1 and GIoU losses for boxes and the focal loss for classification, and the focal loss also classifies the negative queries as background.

The authors trace two failure modes to anchor confusion, in which several anchors sit near one object. The first is duplicate predictions, and in the left panel of their qualitative figure a boy has 3 duplicate boxes with DN queries, which CDN queries remove. The second is that an anchor far from its ground-truth box may be selected, and CDN is said to teach the model to reject such anchors more strongly than DN does.

Measuring how far anchors land from their targets

The authors define Average Top-K Distance, ATD(k), over the matched ground-truth boxes \(b_i\) and their initial anchors \(a_i\). For each match they take the L1 distance \(\|b_i - a_i\|_1\), keep the k largest distances and average them.

The authors focus on the largest distances because confusion is more likely when a ground-truth box is matched to a far anchor. They report that DN already picks good anchors overall, while CDN finds better anchors for small objects, as the ATD(100) curves on all objects and on small objects show.

On small objects in the 12-epoch ResNet-50 multi-scale setting, CDN queries improve AP by 1.3 over DN queries.

Mixed query selection

DETR and DN-DETR use static decoder queries that do not depend on the image, while Deformable DETR's query selection variant takes the top-K encoder features from the last encoder layer and uses them to build both positional and content queries. Efficient DETR also takes top-K encoder features, ranked by an objectness score.

DINO keeps the selection step but applies it only to the anchor boxes, which become the positional queries, while the content queries remain learnable. The authors' reason is that the selected encoder features are not yet refined content features and can mix several objects or cover only part of one, so using them as content queries could mislead the decoder.

Look forward twice box updates

In look forward once, detaching gradients between layers means that layer i is updated only from the auxiliary loss on its own boxes. Look forward twice instead lets the parameters of layer i receive losses from both layer i and layer i+1, so the box offset predicted in a later layer can also correct the earlier layer.

The final precision of a predicted box depends on two things, the quality of its initial box and the predicted offset. Look forward once improves only the offset, while look forward twice improves the initial box too.

The update for each layer can be written as follows, with \(b'_i\) the undetached box and \(b_i\) its detached copy. \[ \Delta b_i = \text{Layer}_i(b_{i-1}),\quad b'_i = \text{Update}(b_{i-1},\Delta b_i),\quad b_i = \text{Detach}(b'_i),\quad b^{(pred)}_i = \text{Update}(b'_{i-1},\Delta b_i) \] Update refines a box by an offset in the same way as Deformable DETR, where boxes are normalized to values between 0 and 1 and two boxes are summed after inverse sigmoid and mapped back with sigmoid.

Results with ResNet-50 at 12 epochs

Table 1 compares DINO against convolution-based and DETR-like detectors on COCO val2017 with ResNet-50, and DINO uses 900 queries while the other DETR-like models use 300 queries, except DETR with 100.

DN-Deformable-DETR with 4 scales reaches 43.4 AP, and DINO reaches 49.0 with 4 scales and 49.4 with 5 scales, which the table lists as +5.6 and +6.0 AP.

Speed and GFLOPS were measured on the same A100 GPU for all models in the table.

Results at 24 and 36 epochs

Table 2 compares DINO with several detectors at 24 and 36 epochs, against DN-Deformable-DETR trained for 50 epochs at 48.6 AP. The authors chose the 24 and 36 epoch settings instead of the common 50 epoch setting, because DINO converges faster and gains less from 50 epochs.

With 24 epochs, DINO reaches 50.4 AP with 4 scales, +1.8 over that baseline, and 51.3 AP with 5 scales, +2.7. With 36 epochs, DINO reaches 50.9 AP with 4 scales, +2.3, and 51.2 AP with 5 scales, +2.6.

The convergence curves for DINO and two earlier state-of-the-art models are compared in the same setting.

Scaling to SwinL and Objects365

The large model uses a SwinL backbone pre-trained on ImageNet-22K, is pre-trained on Objects365 and then fine-tuned on COCO train2017, and is evaluated on val2017 and test-dev. Objects365 has 1.7M annotated images.

The authors also compare pre-training data. Florence pre-trains its backbone on 900M image-text pairs and its detector on 9M images, and the authors state that DINO uses 1/60 of the backbone pre-training images and 1/5 of the detection pre-training images.

The ResNet-50 models are trained on train2017 without extra data, while the SwinL variant is pre-trained on Objects365 first.

Which components account for the gains

Table 4 starts from the original DN-DETR at 43.4 AP, adds optimized DN-DETR at 44.9 AP, then adds pure query selection for a strong baseline at 46.5 AP. Each later row adds one component on top of the row before it, so the rows are cumulative.

Mixed query selection raises AP from 46.5 to 47.0 over the pure query selection baseline.

Removing any of the added components lowers AP in this table, which supports keeping each one, but the ablation does not test each component alone on top of the baseline.

Limitations

Table 3 places DINO next to published results from other models, which were pre-trained on different data, and the authors list DyHead's detection pre-training data as undisclosed. These entries are not re-run under the same conditions as DINO.

The 63.3 AP test-dev figure uses test time augmentation, and without it the score is 63.2. The authors say that their result without test time augmentation is a plain result without extra tricks.

In Table 4, the small-object AP drops in the look forward twice row while overall AP rises, and the paper's reported ablation uses a cumulative order rather than testing each component alone.

Paper info

Authors
Hao Zhang, Feng Li, Shilong Liu, Lei Zhang, Hang Su, Jun Zhu, Lionel M. Ni, Heung-Yeung Shum
Venue
arXiv · Preprint
First published
2022-3-7
Added
2026-11-12
Updated
2022-7-11
Version
v4
arXiv
2203.03605
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Hao Zhang, Feng Li, Shilong Liu, Lei Zhang, Hang Su, Jun Zhu, Lionel M. Ni, Heung-Yeung Shum (2022). DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection. arXiv:2203.03605v4. https://arxiv.org/abs/2203.03605v4

BibTeX
@misc{zhang2022dino,
  title = {{DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection}},
  author = {Hao Zhang and Feng Li and Shilong Liu and Lei Zhang and Hang Su and Jun Zhu and Lionel M. Ni and Heung-Yeung Shum},
  year = {2022},
  eprint = {2203.03605},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03605v4}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up