SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.00666 · NeurIPS · 2021

You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection

Jiemin Fang, Wenyu Liu, Xinggang Wang, Rui Wu, Yuxin Fang, Bencheng Liao, Jiyang Qi, Jianwei Niu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2106.00666.json · badge: /api/ran/2106.00666.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hustvl/YOLOS canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
convert_to_xywh Ran
ran, honoured the contract we drafted
hustvl/YOLOS/datasets/coco_eval.py
pointer only (licence: MIT); the stored copy get_code serves, from yuhangzang/contextdet, is pointer only (licence: NOASSERTION) · get_code("f31a58bf6457ced5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yuhangzang/contextdet, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

crop Ran
ran; our contract draft was wrong, not the code
hustvl/YOLOS/datasets/transforms.py
pointer only (licence: MIT); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("74f3f5c1bab38c14")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kellyiss/situformer, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hustvl/YOLOS/models/layers/drop.py
code served (permissive licence) · get_code("39eace7e2822504f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor for testing
# Shape: (batch_size=2, channels=4, height=3, width=3) - 4D tensor
x = torch.randn(2, 4, 3, 3, dtype=torch.float32)

ARGS = {
    "x": x,
    "drop_prob": 0.5,
    "training": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate Ran
ran; our contract draft was wrong, not the code
hustvl/YOLOS/datasets/coco_eval.py
pointer only (licence: MIT); the stored copy get_code serves, from yuhangzang/contextdet, is pointer only (licence: NOASSERTION) · get_code("fe0ddcc2d420c9a0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yuhangzang/contextdet, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hflip Ran
ran; our contract draft was wrong, not the code
hustvl/YOLOS/datasets/transforms.py
pointer only (licence: MIT); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("9be9e658b5bd688a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kellyiss/situformer, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_block_2d Not yet run
unverified (harvested, no recorded run)
hustvl/YOLOS/models/layers/drop.py
code served (permissive licence) · get_code("653d5a3aa2c473be")
How it ran

no invocation recorded.

drop_block_fast_2d Not yet run
unverified (harvested, no recorded run)
hustvl/YOLOS/models/layers/drop.py
pointer only (licence: MIT); the stored copy get_code serves, from summitgao/ss-mae, is pointer only (licence: NONE) · get_code("97aa7c942cfb7d3d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from summitgao/ss-mae, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

small Not yet run
unverified (harvested, no recorded run)
hustvl/YOLOS/models/backbone.py
code served (permissive licence) · get_code("a375c5fcb767baea")
How it ran

no invocation recorded.

small_dWr Not yet run
unverified (harvested, no recorded run)
hustvl/YOLOS/models/backbone.py
code served (permissive licence) · get_code("6d26e8d0c3a1056a")
How it ran

no invocation recorded.

tiny Not yet run
unverified (harvested, no recorded run)
hustvl/YOLOS/models/backbone.py
code served (permissive licence) · get_code("79c3d06885711f57")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 7 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
drop_path 224 other papers
6 dated earlier, 1 the same month, 216 later, 1 undated · 38 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2007.09384 (2020-07)
Multi-Scale Positive Sample Refinement for Few-Shot Object Detection
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
and 221 more not named here
convert_to_xywh 24 other papers
4 dated earlier, 20 later
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.11731 (2021-03)
Meta-DETR: Image-Level Few-Shot Object Detection with Inter-Class Correlation Exploitation
and 21 more not named here
evaluate 23 other papers
4 dated earlier, 19 later
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.11731 (2021-03)
Meta-DETR: Image-Level Few-Shot Object Detection with Inter-Class Correlation Exploitation
and 20 more not named here
drop_block_2d 12 other papers
12 later
2107.00644 (2021-07)
Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation
2108.05045 (2021-08)
Semi-Supervised Domain Generalizable Person Re-Identification
2110.07719 (2021-10)
Certified Patch Robustness via Smoothed Vision Transformers
and 9 more not named here
drop_block_fast_2d 11 other papers
11 later
2107.00644 (2021-07)
Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation
2108.05045 (2021-08)
Semi-Supervised Domain Generalizable Person Re-Identification
2110.07719 (2021-10)
Certified Patch Robustness via Smoothed Vision Transformers
and 8 more not named here
hflip 10 other papers
10 later
2112.05375 (2021-12)
Rethinking the Two-Stage Framework for Grounded Situation Recognition
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
2203.13954 (2022-03)
GEN-VLKT: Simplify Association and Enhance Interaction Understanding for HOI Detection
and 7 more not named here
crop 5 other papers
5 later
2112.05375 (2021-12)
Rethinking the Two-Stage Framework for Grounded Situation Recognition
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
2203.13954 (2022-03)
GEN-VLKT: Simplify Association and Enhance Interaction Understanding for HOI Detection
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 https://github.com/hustvl/YOLOS. * Yuxin Fang and Bencheng Liao contributed equally. † Xinggang Wang is the corresponding author. This work was done when Yuxin Fang was interning at Horizon Robotics mentored by Rui Wu. 1 There are various sophisticated or hybrid architectures termed as "Vision Transformer". For disambiguation, in this paper, "Vision Transformer" and "ViT" refer to the canonical or vanilla Vision Transformer architecture proposed by Dosovitskiy et al. [21] unless specified. 35th Conference on Neural Information Processing Systems (NeurIPS 2021).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2106.00666")
get_code_for_paper("2106.00666")
have("2106.00666")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2106.00666.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2106.00666.svg)](https://syntology.ai/paper/2106.00666)

Connect an agent — have() is free.