Exploring Plain Vision Transformer Backbones for Object Detection

Yanghao Li, Hanzi Mao, Ross Girshick, Kaiming He
3/30/2022
cs.CV

Official code: facebookresearch/detectron2 (34,934 stars, Apache-2.0, last commit 2026-10-20).

Abstract

We explore the plain, non-hierarchical Vision Transformer (ViT) as a backbone network for object detection. This design enables the original ViT architecture to be fine-tuned for object detection without needing to redesign a hierarchical backbone for pre-training. With minimal adaptations for fine-tuning, our plain-backbone detector can achieve competitive results. Surprisingly, we observe: (i) it is sufficient to build a simple feature pyramid from a single-scale feature map (without the common FPN design) and (ii) it is sufficient to use window attention (without shifting) aided with very few cross-window propagation blocks. With plain ViT backbones pre-trained as Masked Autoencoders (MAE), our detector, named ViTDet, can compete with the previous leading methods that were all based on hierarchical backbones, reaching up to 61.3 AP_box on the COCO dataset using only ImageNet-1K pre-training. We hope our study will draw attention to research on plain-backbone detectors. Code for ViTDet is available in Detectron2.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.

34,9347,942C++, CudaSep 5, 20193 days agoApache-2.0

Similar Papers

Cite this paper

@article{li2022exploring,
  title  = {Exploring Plain Vision Transformer Backbones for Object Detection},
  author = {Yanghao Li and Hanzi Mao and Ross Girshick and Kaiming He},
  year   = {2022},
  eprint = {2203.16527},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.16527}
}

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

Discussion