Towards Data-Efficient Detection Transformers

Wen Wang, Jing Zhang, Yang Cao, Yongliang Shen, Dacheng Tao
3/17/2022
75 citations
cs.CVcs.AI
transformer-attention

Official code: encounter1997/DE-DETRs (77 stars, Python, Apache-2.0, last commit 2024-03-10). 1 more implementation below.

Abstract

Detection Transformers have achieved competitive performance on the sample-rich COCO dataset. However, we show most of them suffer from significant performance drops on small-size datasets, like Cityscapes.

Show full abstract

In other words, the detection transformers are generally data-hungry. To tackle this problem, we empirically analyze the factors that affect data efficiency, through a step-by-step transition from a data-efficient RCNN variant to the representative DETR. The empirical results suggest that sparse feature sampling from local image areas holds the key. Based on this observation, we alleviate the data-hungry issue of existing detection transformers by simply alternating how key and value sequences are constructed in the cross-attention layer, with minimum modifications to the original models. Besides, we introduce a simple yet effective label augmentation method to provide richer supervision and improve data efficiency. Experiments show that our method can be readily applied to different detection transformers and improve their performance on both small-size and sample-rich datasets. Code will be made publicly available at \url{https://github.com/encounter1997/DE-DETRs}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
encounter1997/DE-DETRsOfficial77PythonApache-2.02024-03-10
encounter1997/DE-CondDETRCommunity45PythonApache-2.02022-08-25
Apache-2.0

Official Implementation of DE-DETR and DELA-DETR in "Towards Data-Efficient Detection Transformers"

779Python, DockerfileMar 17, 20222 years agoApache-2.0
data-efficiencydetection-transformerobject-detection
Apache-2.0

Official Implementation of DE-CondDETR and DELA-CondDETR in "Towards Data-Efficient Detection Transformers"

455Python, ShellMar 21, 20224 years agoApache-2.0
data-efficiencydetection-transformerobject-detection

Similar Papers

Cite this paper

@article{wang2022towards,
  title  = {Towards Data-Efficient Detection Transformers},
  author = {Wen Wang and Jing Zhang and Yang Cao and Yongliang Shen and Dacheng Tao},
  year   = {2022},
  eprint = {2203.09507},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09507}
}

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

Discussion