DQ-DETR: Dual Query Detection Transformer for Phrase Extraction and Grounding

Shilong Liu, Yaoyuan Liang, Feng Li, Shijia Huang, Hao Zhang +3 more
11/28/2022
cs.CV
transformer-attention

Official code: IDEA-Research/DQ-DETR (58 stars, last commit 2022-11-28).

Abstract

In this paper, we study the problem of visual grounding by considering both phrase extraction and grounding (PEG). In contrast to the previous phrase-known-at-test setting, PEG requires a model to extract phrases from text and locate objects from images simultaneously, which is a more practical setting in real applications.

Show full abstract

As phrase extraction can be regarded as a $1$D text segmentation problem, we formulate PEG as a dual detection problem and propose a novel DQ-DETR model, which introduces dual queries to probe different features from image and text for object prediction and phrase mask prediction. Each pair of dual queries is designed to have shared positional parts but different content parts. Such a design effectively alleviates the difficulty of modality alignment between image and text (in contrast to a single query design) and empowers Transformer decoder to leverage phrase mask-guided attention to improve performance. To evaluate the performance of PEG, we also propose a new metric CMAP (cross-modal average precision), analogous to the AP metric in object detection. The new metric overcomes the ambiguity of Recall@1 in many-box-to-one-phrase cases in phrase grounding. As a result, our PEG pre-trained DQ-DETR establishes new state-of-the-art results on all visual grounding benchmarks with a ResNet-101 backbone. For example, it achieves $91.04\%$ and $83.51\%$ in terms of recall rate on RefCOCO testA and testB with a ResNet-101 backbone. Code will be availabl at \url{https://github.com/IDEA-Research/DQ-DETR}.

View on arXivView PDF

Code Implementations(1)

[AAAI 2023] DQ-DETR: Dual Query Detection Transformer for Phrase Extraction and Grounding

582Nov 28, 20224 years ago

Similar Papers

Cite this paper

@article{liu2022dqdetr,
  title  = {DQ-DETR: Dual Query Detection Transformer for Phrase Extraction and Grounding},
  author = {Shilong Liu and Yaoyuan Liang and Feng Li and Shijia Huang and Hao Zhang and Hang Su and Jun Zhu and Lei Zhang},
  year   = {2022},
  eprint = {2211.15516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.15516}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.15516.svg)](https://codeofpaper.com/paper/2211.15516)

Discussion