Skip to main content
QUICK REVIEW

[Paper Review] Dense Distinct Query for End-to-End Object Detection

Shilong Zhang, Wang xinjiang|arXiv (Cornell University)|Mar 22, 2023
Advanced Neural Network ApplicationsComputer Science3 citations
TL;DR

This paper proposes Dense Distinct Queries (DDQ), a novel paradigm for end-to-end object detection that combines dense query initialization for high recall with a distinct query selection mechanism to enable stable one-to-one label assignment. DDQ achieves state-of-the-art performance, attaining 52.1 AP on MS-COCO in just 12 epochs with a ResNet-50 backbone, outperforming existing end-to-end detectors while maintaining robustness in crowded scenes.

ABSTRACT

One-to-one label assignment in object detection has successfully obviated the need for non-maximum suppression (NMS) as postprocessing and makes the pipeline end-to-end. However, it triggers a new dilemma as the widely used sparse queries cannot guarantee a high recall, while dense queries inevitably bring more similar queries and encounter optimization difficulties. As both sparse and dense queries are problematic, then what are the expected queries in end-to-end object detection? This paper shows that the solution should be Dense Distinct Queries (DDQ). Concretely, we first lay dense queries like traditional detectors and then select distinct ones for one-to-one assignments. DDQ blends the advantages of traditional and recent end-to-end detectors and significantly improves the performance of various detectors including FCN, R-CNN, and DETRs. Most impressively, DDQ-DETR achieves 52.1 AP on MS-COCO dataset within 12 epochs using a ResNet-50 backbone, outperforming all existing detectors in the same setting. DDQ also shares the benefit of end-to-end detectors in crowded scenes and achieves 93.8 AP on CrowdHuman. We hope DDQ can inspire researchers to consider the complementarity between traditional methods and end-to-end detectors. The source code can be found at \url{https://github.com/jshilong/DDQ}.

Motivation & Objective

  • Address the limitations of sparse queries in end-to-end detectors, which suffer from low recall due to limited query count.
  • Overcome the optimization challenges of dense queries in one-to-one assignment, where similar queries receive conflicting labels.
  • Propose a unified query paradigm that combines the high recall of dense queries with the stable optimization of distinct queries.
  • Demonstrate the effectiveness of DDQ across multiple architectures, including FCN, R-CNN, and DETR, under standard and long-training schedules.
  • Achieve superior performance on both MS-COCO and CrowdHuman, especially in crowded scenes where traditional detectors struggle with NMS tuning.

Proposed method

  • Initialize a large number of dense queries across the feature map, similar to traditional detectors, to ensure high recall.
  • Apply a distinct query selection (DQS) mechanism based on IoU similarity to filter out redundant, highly similar queries before one-to-one assignment.
  • Use a pyramid shuffle operation in DDQ FCN to model query interactions efficiently, replacing heavy self-attention mechanisms.
  • Integrate DDQ into two-stage detectors (DDQ R-CNN) and transformer-based detectors (DDQ DETR) by applying DQS only to the refinement heads.
  • Adopt a class-agnostic NMS during both training and inference to filter out duplicate predictions, ensuring end-to-end differentiability.
  • Leverage DETR-style data augmentation and multi-scale training to improve generalization and convergence speed.

Experimental results

Research questions

  • RQ1Can dense queries be effectively used in one-to-one label assignment without suffering from optimization instability due to query similarity?
  • RQ2Does selecting only distinct queries from a dense set preserve high recall while enabling stable training in end-to-end detectors?
  • RQ3Can the DDQ paradigm improve performance across diverse detector architectures, including FCN, R-CNN, and DETR?
  • RQ4How does DDQ perform in crowded scenes where traditional detectors require careful NMS tuning and end-to-end detectors struggle with overlapping predictions?
  • RQ5Can DDQ achieve state-of-the-art accuracy with significantly fewer training epochs compared to existing end-to-end detectors?

Key findings

  • DDQ-DETR achieves 52.1 AP on MS-COCO using only 12 epochs with a ResNet-50 backbone, outperforming all existing end-to-end detectors under the same training schedule.
  • DDQ FCN and DDQ R-CNN achieve 41.5 AP and 44.6 AP on MS-COCO under the standard 1x schedule, respectively, demonstrating strong performance across one-stage and two-stage detectors.
  • On the CrowdHuman dataset, DDQ FCN/R-CNN/DETR achieve 92.7/93.5/93.8 AP and 98.2/98.6/98.7 recall, surpassing both traditional and end-to-end detectors by a large margin.
  • DDQ maintains robust performance across different IoU thresholds for distinct query selection, with minimal degradation from 0.6 to 0.8, and only slight drops outside this range.
  • DDQ R-CNN with a DyHead encoder structure achieves 51.0 AP, showing that the framework is compatible with advanced architectural components and can be further enhanced.
  • The ablation study confirms that DDQ achieves recall comparable to 7000 dense queries but with only 31.3ms latency, significantly lower than the 135.0ms of the full dense query setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.