SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.02321 · 2023

MSViT: Dynamic Mixed-Scale Tokenization for Vision Transformers

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2307.02321.json · badge: /api/ran/2307.02321.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
qualcomm-ai-research/batchshaping canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
get_normal_cdf Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/cdf_normal.py
pointer only (licence: NOASSERTION) · get_code("65c95846070f4562")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

get_relaxed_bernoulli_cdf Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/cdf_relaxedbernoulli.py
pointer only (licence: NOASSERTION) · get_code("2ff74f6eac0c1d2e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

get_relaxed_bernoulli_pdf Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/cdf_relaxedbernoulli.py
pointer only (licence: NOASSERTION) · get_code("8f0e248c0dd763e3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

init_anim_plot Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/viz_utils.py
pointer only (licence: NOASSERTION) · get_code("e880f7dc0d93c7c5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

init_gbas_anim_plot Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/viz_utils.py
pointer only (licence: NOASSERTION) · get_code("dc04c9c7a65027eb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

to_numpy Ran
ran, honoured the contract we drafted
qualcomm-ai-research/batchshaping/batchshaping/utils.py
pointer only (licence: NOASSERTION) · get_code("1c78c301af20fc6f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

validate_prior_param Ran
ran, honoured the contract we drafted
qualcomm-ai-research/batchshaping/batchshaping/utils.py
pointer only (licence: NOASSERTION) · get_code("737717d0bd22c5fb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

warmup_factory Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/batchshaping/batchshaping/utils.py
pointer only (licence: NOASSERTION) · get_code("e9256d0acc5a36e8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qualcomm-ai-research/batchshaping (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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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-24.

Repositories linked to this paper

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

Abstract

The input tokens to Vision Transformers carry little semantic meaning as they are defined as regular equal-sized patches of the input image, regardless of its content. However, processing uniform background areas of an image should not necessitate as much compute as dense, cluttered areas. To address this issue, we propose a dynamic mixed-scale tokenization scheme for ViT, MSViT. Our method introduces a conditional gating mechanism that selects the optimal token scale for every image region, such that the number of tokens is dynamically determined per input. In addition, to enhance the conditional behavior of the gate during training, we introduce a novel generalization of the batch-shaping loss. We show that our gating module is able to learn meaningful semantics despite operating locally at the coarse patch-level. The proposed gating module is lightweight, agnostic to the choice of transformer backbone, and trained within a few epochs with little training overhead. Furthermore, in contrast to token pruning, MSViT does not lose information about the input, thus can be readily applied for dense tasks. We validate MSViT on the tasks of classification and segmentation where it leads to improved accuracy-complexity trade-off.

For agents

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

get_harvested_code_for_paper("2307.02321")
get_code_for_paper("2307.02321")
have("2307.02321")

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

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

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

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

Connect an agent — have() is free.