You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection
Yuxin Fang, Bencheng Liao, Xinggang Wang, Jiemin Fang, Jiyang Qi, Rui, Wu, Jianwei Niu, Wenyu Liu

TL;DR
This paper introduces YOLOS, a simple Vision Transformer-based object detection model that achieves competitive results on COCO by treating detection as a sequence-to-sequence task without complex modifications.
Contribution
The paper demonstrates that a minimal modification Vision Transformer can perform effective object detection, challenging the need for specialized spatial inductive biases.
Findings
YOLOS-Base achieves 42.0 box AP on COCO val.
Pre-trained on ImageNet-1k, YOLOS performs competitively.
Discusses limitations of current pre-training and scaling strategies.
Abstract
Can Transformer perform 2D object- and region-level recognition from a pure sequence-to-sequence perspective with minimal knowledge about the 2D spatial structure? To answer this question, we present You Only Look at One Sequence (YOLOS), a series of object detection models based on the vanilla Vision Transformer with the fewest possible modifications, region priors, as well as inductive biases of the target task. We find that YOLOS pre-trained on the mid-sized ImageNet-1k dataset only can already achieve quite competitive performance on the challenging COCO object detection benchmark, e.g., YOLOS-Base directly adopted from BERT-Base architecture can obtain 42.0 box AP on COCO val. We also discuss the impacts as well as limitations of current pre-train schemes and model scaling strategies for Transformer in vision through YOLOS. Code and pre-trained models are available at…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗hustvl/yolos-tinymodel· 104k dl· ♡ 280104k dl♡ 280
- 🤗hustvl/yolos-basemodel· 3.6k dl· ♡ 263.6k dl♡ 26
- 🤗hustvl/yolos-smallmodel· 423k dl· ♡ 90423k dl♡ 90
- 🤗hustvl/yolos-small-dwrmodel· 205 dl· ♡ 4205 dl♡ 4
- 🤗hustvl/yolos-small-300model· 6.9k dl· ♡ 66.9k dl♡ 6
- 🤗nickmuchi/yolos-small-finetuned-masksmodel· 94 dl· ♡ 194 dl♡ 1
- 🤗nickmuchi/yolos-small-rego-plates-detectionmodel· 632 dl· ♡ 8632 dl♡ 8
- 🤗zoheb/yolos-small-balloonmodel· 24 dl· ♡ 124 dl♡ 1
- 🤗Fantast/yolos-small-finetuned-for-sealmodel· 26 dl· ♡ 126 dl♡ 1
- 🤗muqtadar/yolos-tinymodel· 12 dl12 dl
Videos
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · COVID-19 diagnosis using AI
MethodsLinear Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Weight Decay · Attention Dropout · Linear Warmup With Linear Decay · WordPiece · Refunds@Expedia|||How do I get a full refund from Expedia? · BERT · Convolution
