SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.15667 · 2021

Adaptive Token Sampling For Efficient Vision Transformers

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 2 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; 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/2111.15667.json · badge: /api/ran/2111.15667.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
adaptivetokensampling/ATS canonical (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
FunctionStatusWhere it lives
construct_optimizer Ran
ran on a synthesized input
adaptivetokensampling/ATS/libs/models/optimizer.py
pointer only (licence: Apache-2.0) · get_code("5c977fb3d083dfdc")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, adaptivetokensampling/ATS, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

create_transforms Ran
ran on a synthesized input
adaptivetokensampling/ATS/libs/datasets/imagenet.py
pointer only (licence: Apache-2.0) · get_code("b1311232bf2cbed9")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, adaptivetokensampling/ATS, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

get_loss_func Ran
ran; our contract draft was wrong, not the code
adaptivetokensampling/ATS/libs/models/losses.py
pointer only (licence: Apache-2.0) · get_code("ffe68781a7c4ab89")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, adaptivetokensampling/ATS, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

pil_loader Ran
ran, honoured the contract we drafted
adaptivetokensampling/ATS/libs/datasets/imagenet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhentingwang/diagnosis, is pointer only (licence: NONE) · get_code("f6be833ba409926f")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, adaptivetokensampling/ATS, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

initializer Not yet run
unverified (harvested, no recorded run)
adaptivetokensampling/ATS/libs/datasets/imagenet.py
pointer only (licence: Apache-2.0) · get_code("d1339f20714f6375")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, adaptivetokensampling/ATS, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 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
get_loss_func 13 other papers
4 dated earlier, 9 later
1812.03982 (2018-12)
SlowFast Networks for Video Recognition
2105.11731 (2021-05)
ST-HOI: A Spatial-Temporal Baseline for Human-Object Interaction Detection in Videos
2106.09703 (2021-06)
MaCLR: Motion-aware Contrastive Learning of Representations for Videos
and 10 more not named here
pil_loader 11 other papers
1 dated earlier, 10 later
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2207.01145 (2022-07)
Memory Population in Continual Learning via Outlier Elimination
and 8 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-23.

Repositories linked to this paper

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

Abstract

While state-of-the-art vision transformer models achieve promising results in image classification, they are computationally expensive and require many GFLOPs. Although the GFLOPs of a vision transformer can be decreased by reducing the number of tokens in the network, there is no setting that is optimal for all input images. In this work, we therefore introduce a differentiable parameter-free Adaptive Token Sampler (ATS) module, which can be plugged into any existing vision transformer architecture. ATS empowers vision transformers by scoring and adaptively sampling significant tokens. As a result, the number of tokens is not constant anymore and varies for each input image. By integrating ATS as an additional layer within the current transformer blocks, we can convert them into much more efficient vision transformers with an adaptive number of tokens. Since ATS is a parameter-free module, it can be added to the off-the-shelf pre-trained vision transformers as a plug and play module, thus reducing their GFLOPs without any additional training. Moreover, due to its differentiable design, one can also train a vision transformer equipped with ATS. We evaluate the efficiency of our module in both image and video classification tasks by adding it to multiple SOTA vision transformers. Our proposed module improves the SOTA by reducing their computational costs (GFLOPs) by 2X, while preserving their accuracy on the ImageNet, Kinetics-400, and Kinetics-600 datasets.

For agents

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

get_harvested_code_for_paper("2111.15667")
get_code_for_paper("2111.15667")
have("2111.15667")

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

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

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

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

Connect an agent — have() is free.