Enhanced Training of Query-Based Object Detection via Selective Query Recollection

Fangyi Chen, Han Zhang, Kai Hu, Yu-kai Huang, Chenchen Zhu +1 more
12/15/2022
73 citations
cs.CV

Official code: IDEA-Research/detrex (2,315 stars, Python, Apache-2.0, PyTorch, last commit 2025-09-11). 1 more implementation below.

Abstract

This paper investigates a phenomenon where query-based object detectors mispredict at the last decoding stage while predicting correctly at an intermediate stage. We review the training process and attribute the overlooked phenomenon to two limitations: lack of training emphasis and cascading errors from decoding sequence.

Show full abstract

We design and present Selective Query Recollection (SQR), a simple and effective training strategy for query-based object detectors. It cumulatively collects intermediate queries as decoding stages go deeper and selectively forwards the queries to the downstream stages aside from the sequential structure. Such-wise, SQR places training emphasis on later stages and allows later stages to work with intermediate queries from earlier stages directly. SQR can be easily plugged into various query-based object detectors and significantly enhances their performance while leaving the inference pipeline unchanged. As a result, we apply SQR on Adamixer, DAB-DETR, and Deformable-DETR across various settings (backbone, number of queries, schedule) and consistently brings 1.4-2.8 AP improvement.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
IDEA-Research/detrexOfficial2,315PythonApache-2.02025-09-11
Fangyi-Chen/SQROfficial104Jupyter NotebookMIT2023-07-07
PyTorchApache-2.0

detrex is a research platform for DETR-based object detection, segmentation, pose estimation and other visual recognition tasks.

2,315250Python, CudaAug 1, 20221 years agoApache-2.0
anchor-detrconditional-detrdab-detrdeformable-detrdeta+11 more
Fangyi-Chen/SQROfficial100%
MIT
1044Jupyter Notebook, PythonDec 7, 20223 years agoMIT

Similar Papers

Cite this paper

@article{chen2022enhanced,
  title  = {Enhanced Training of Query-Based Object Detection via Selective Query Recollection},
  author = {Fangyi Chen and Han Zhang and Kai Hu and Yu-kai Huang and Chenchen Zhu and Marios Savvides},
  year   = {2022},
  eprint = {2212.07593},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.07593}
}

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/2212.07593.svg)](https://codeofpaper.com/paper/2212.07593)

Discussion