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

Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection

Grounding DINO adds text to DINO at three stages for open-set detection

  • Problem Closed-set detectors cannot find objects named in free text. Earlier open-set models fused language at only some stages, which may limit generalization.
  • Method Grounding DINO fuses text into the DINO detector at three phases: the neck, query initialization and the head. Unlike earlier models, it fuses language at all three.
  • Results Grounding DINO reaches 52.5 AP on COCO zero-shot detection, without any COCO training data. It also sets a record on ODinW zero-shot with 26.1 AP.

Why closed-set detectors stall

Standard DINO-style detectors learn a fixed set of categories, so they struggle with classes they never saw as labels. Open-set detection aims at whatever objects a user names in text, which removes that fixed label list. To make this work, region features must be tied to language, and the usual route is a contrastive loss between region outputs and language features.

Many earlier open-set models rely on CLIP, which is trained on image-text pairs rather than on image regions. The authors argue that this is weak for region-text detection, as the RegionCLIP study also found. GLIP avoids CLIP by treating detection as phrase grounding, but it joins all category names into one sentence in random order. Unrelated names can then influence each other's features while the text is encoded.

A second gap concerns where language enters the pipeline. GLIP fuses language only in the feature enhancement stage, and OV-DETR only injects it at the decoder inputs. Partial fusion of this kind may leave language generalization weaker than it could be.

Fusing language at every DINO stage

The key idea is to fuse text into a closed-set detector at all three of its phases, not only one. The three phases are the neck, query initialization and the head. The authors chose DINO because its layers are uniform Transformer blocks, so language blocks can sit between them without redesigning the detector.

Classical detectors such as Faster RCNN are hard to interleave with language, which is why earlier work fused in fewer places. Grounding DINO takes an image and a text and outputs object boxes paired with noun phrases. For detection, the category names are concatenated into one text, whereas referring expression comprehension takes one expression and returns the highest-scoring box.

How the three fusion stages run

Image features come from a Swin Transformer and text features from BERT, both extracted at multiple scales or from the text backbone. The feature enhancer then fuses them over six layers, each with deformable self-attention on image features, self-attention on text features, and image-to-text and text-to-image cross-attention. The two cross-attention directions let each modality pull information from the other before queries are chosen.

The next step picks 900 image positions to act as decoder queries, using a score between image tokens and text tokens. Image features are X_I with N_I rows and d columns, and text features are X_T with N_T rows and d columns, where d is 256. The selection is computed as \\[ I_{N_q} = \\mathrm{Top}_{N_q}\\bigl(\\mathrm{Max}(-1)(X_I X_T^{\\top})\\bigr) \\], with Max(-1) taken along the text dimension.

For each image position, the largest text match is kept, and the top N_q positions are then chosen.

The selected positions initialize the queries in mixed form, with learnable content parts and positional parts formed as dynamic anchor boxes from encoder outputs. The cross-modality decoder updates each query through self-attention, image cross-attention, an extra text cross-attention and an FFN, across six layers. The final queries predict boxes and extract matching phrases.

Training matches predictions to ground truths with Hungarian matching, using weighted classification, box L1 and GIoU costs. Box losses use L1 and GIoU, and the classification head dot-products each query with the text tokens and applies focal loss to each logit. Auxiliary losses follow each decoder layer and the encoder outputs.

Packing category names into one text input

Earlier work used a sentence level prompt or a word level prompt, and each loses something. The sentence level prompt encodes the whole sentence into one feature, which removes cross-word influence but loses fine-grained phrase detail. The word level prompt keeps per-word features in one pass, but unrelated category names still depend on each other.

The sub-sentence level text feature keeps per-word features and adds attention masks. The masks block attention between unrelated category names, so each name is encoded without the others. The authors say this keeps the fine-grained word features while removing the cross-category dependency.

Zero-shot COCO and LVIS results

Grounding DINO T trained on O365 alone scored 46.7 AP, and adding GoldG grounding data raised it to 48.1. Against DINO with Swin-T, which scored 46.2 zero-shot, the O365-only Grounding DINO T gains 0.5 AP under the same setting.

On LVIS minival, Grounding DINO T scored 25.6 AP with O365 and GoldG, and 27.4 once Cap4M caption data was added. The same table lists GLIP-T at 26.0 with Cap4M and DetCLIPv2 at 40.4, so the open-set gap on LVIS remains large. The authors also note it does better than GLIP on common categories but worse on rare ones.

Caption data helps Grounding DINO by 1.8 AP, compared to 1.1 AP for GLIP. The authors believe this shows better scalability, although a larger-scale run is left to future work. They attribute the gap to DetCLIPv2 to the data distribution of its training set compared to LVIS.

ODinW and referring detection results

In zero-shot, Grounding DINO T with Cap4M and GLIPv2-T both average 22.3 AP, but the median is 11.9 for Grounding DINO T and 8.9 for GLIPv2-T. The authors read this as more consistent performance across datasets, rather than a higher peak.

In full-shot, Grounding DINO T reaches 70.7 average AP, compared to 68.8 for DINO-Swin-L.

For referring detection, the authors report top-1 accuracy on RefCOCO, RefCOCO+ and RefCOCOg. Without RefC data, the Swin-T model reaches 50.41 on RefCOCO val, and with RefC data and fine-tuning it reaches 89.19. The authors note that both GLIP and Grounding DINO perform poorly on this task without REC data.

What the ablations and data studies show

The authors remove one component at a time from the full Swin-T model pre-trained on O365, then measure COCO minival and LVIS minival zero-shot AP. Removing encoder fusion lowers COCO zero-shot AP from 46.7 to 45.8 and LVIS zero-shot AP from 16.1 to 13.1. Removing text cross-attention lowers LVIS zero-shot AP to 14.3, and the word-level text prompt gives 15.6.

So encoder fusion is the largest drop in this table, and the prompt change is the smallest. Dropping static query selection gives LVIS zero-shot AP of 13.6. Each removal lowers the score, which supports keeping the removed component, though the study uses one backbone and pre-training set.

Adding RefC to O365 and GoldG pre-training raises COCO minival zero-shot AP only from 48.1 to 48.5. The same change lowers LVIS minival zero-shot from 25.6 to 21.9 and ODinW zero-shot from 20.0 to 17.7. Adding COCO raises COCO minival to 56.1, but COCO is then in training, so it is not a zero-shot number.

Limitations

The authors state that Grounding DINO can't be used for segmentation tasks, unlike GLIPv2. Their training data is smaller than the largest GLIP model's, which they say may limit results.

The ablations use only O365 pre-training with a Swin-T backbone. Whether the gains hold at larger training scale is left as future work. The authors also call for more attention to REC zero-shot performance in future studies.

Paper info

Authors
Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang
Venue
arXiv · Preprint
First published
2023-3-9
Added
2026-11-12
Updated
2024-7-19
Version
v5
arXiv
2303.05499
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

Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang (2023). Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection. arXiv:2303.05499v5. https://arxiv.org/abs/2303.05499v5

BibTeX
@misc{liu2023grounding,
  title = {{Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection}},
  author = {Shilong Liu and Zhaoyang Zeng and Tianhe Ren and Feng Li and Hao Zhang and Jie Yang and Qing Jiang and Chunyuan Li and Jianwei Yang and Hang Su and Jun Zhu and Lei Zhang},
  year = {2023},
  eprint = {2303.05499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.05499v5}
}

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