SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.07154 · CVPR · 2022

MiniViT: Compressing Vision Transformers with Weight Multiplexing

Lu Yuan, Houwen Peng, Jianlong Fu, Mengchen Liu, Bin Xiao, Kan Wu, Jinnian Zhang

arXiv · PDF · Open in the Atlas

Code that ran

None of the 4 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (4 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/2204.07154.json · badge: /api/ran/2204.07154.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
microsoft/AutoML community
Papers with Code archive
0 ran · 4 no recorded run
FunctionStatusWhere it lives
BasicLayer Not yet run
unverified (harvested, no recorded run)
microsoft/AutoML/MiniViT/Mini-Swin/models/swin_transformer_minivit.py
code served (permissive licence) · get_code("2cbff10d73eb7a6c")
How it ran

no invocation recorded.

SwinTransformerBlock Not yet run
unverified (harvested, no recorded run)
microsoft/AutoML/MiniViT/Mini-Swin/models/swin_transformer_minivit.py
code served (permissive licence) · get_code("4f8688d9e12ea3d2")
How it ran

no invocation recorded.

SwinTransformerMiniViT Not yet run
unverified (harvested, no recorded run)
microsoft/AutoML/MiniViT/Mini-Swin/models/swin_transformer_minivit.py
code served (permissive licence) · get_code("9d3f653a351ddc1b")
How it ran

no invocation recorded.

WindowAttention Not yet run
unverified (harvested, no recorded run)
microsoft/AutoML/MiniViT/Mini-Swin/models/swin_transformer_minivit.py
code served (permissive licence) · get_code("3095ac15907de9ab")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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-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

Vision Transformer (ViT) models have recently drawn much attention in computer vision due to their high model capability. However, ViT models suffer from huge number of parameters, restricting their applicability on devices with limited memory. To alleviate this problem, we propose MiniViT, a new compression framework, which achieves parameter reduction in vision transformers while retaining the same performance. The central idea of MiniViT is to multiplex the weights of consecutive transformer blocks. More specifically, we make the weights shared across layers, while imposing a transformation on the weights to increase diversity. Weight distillation over self-attention is also applied to transfer knowledge from large-scale ViT models to weight-multiplexed compact models. Comprehensive experiments demonstrate the efficacy of MiniViT, showing that it can reduce the size of the pre-trained Swin-B transformer by 48%, while achieving an increase of 1.0% in Top-1 accuracy on ImageNet. Moreover, using a single-layer of parameters, MiniViT is able to compress DeiT-B by 9.7 times from 86M to 9M parameters, without seriously compromising the performance. Finally, we verify the transferability of MiniViT by reporting its performance on downstream benchmarks. Code and models are available at here.

For agents

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

get_harvested_code_for_paper("2204.07154")
get_code_for_paper("2204.07154")
have("2204.07154")

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

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

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

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

Connect an agent — have() is free.