CVSep 15, 2021

Anchor DETR: Query Design for Transformer-Based Object Detection

arXiv:2109.07107v280 citationsHas Code
Originality Incremental advance
AI Analysis

This work improves object detection efficiency and interpretability for computer vision applications, though it is incremental by building on existing transformer and anchor-based methods.

The paper tackles the problem of unclear physical meaning and optimization difficulty in transformer-based object detection queries by introducing anchor-based queries and an attention variant, achieving 44.2 AP with 19 FPS on MSCOCO using ResNet50-DC5 trained for 50 epochs.

In this paper, we propose a novel query design for the transformer-based object detection. In previous transformer-based detectors, the object queries are a set of learned embeddings. However, each learned embedding does not have an explicit physical meaning and we cannot explain where it will focus on. It is difficult to optimize as the prediction slot of each object query does not have a specific mode. In other words, each object query will not focus on a specific region. To solved these problems, in our query design, object queries are based on anchor points, which are widely used in CNN-based detectors. So each object query focuses on the objects near the anchor point. Moreover, our query design can predict multiple objects at one position to solve the difficulty: "one region, multiple objects". In addition, we design an attention variant, which can reduce the memory cost while achieving similar or better performance than the standard attention in DETR. Thanks to the query design and the attention variant, the proposed detector that we called Anchor DETR, can achieve better performance and run faster than the DETR with 10$\times$ fewer training epochs. For example, it achieves 44.2 AP with 19 FPS on the MSCOCO dataset when using the ResNet50-DC5 feature for training 50 epochs. Extensive experiments on the MSCOCO benchmark prove the effectiveness of the proposed methods. Code is available at \url{https://github.com/megvii-research/AnchorDETR}.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes