Papers › Unified Visual Transformer Compression

Unified Visual Transformer Compression

15 Mar 2022ICLR 2022 4arXiv:2203.08243archive 2025-07-28

Shixing Yu, Tianlong Chen, Jiayi Shen, Huan Yuan, Jianchao Tan, Sen yang, Ji Liu, Zhangyang Wang

Vision transformers (ViTs) have gained popularity recently. Even without customized image operators such as convolutions, ViTs can yield competitive performance when properly trained on massive data. However, the computational overhead of ViTs remains prohibitive, due to stacking multi-head self-attention modules and else. Compared to the vast literature and prevailing success in compressing convolutional neural networks, the study of Vision Transformer compression has also just emerged, and existing works focused on one or two aspects of compression. This paper proposes a unified ViT compression framework that seamlessly assembles three effective techniques: pruning, layer skipping, and knowledge distillation. We formulate a budget-constrained, end-to-end optimization framework, targeting jointly learning model weights, layer-wise pruning ratios/masks, and skip configurations, under a distillation loss. The optimization problem is then solved using the primal-dual algorithm. Experiments are conducted with several ViT variants, e.g. DeiT and T2T-ViT backbones on the ImageNet dataset, and our approach consistently outperforms recent competitors. For example, DeiT-Tiny can be trimmed down to 50\% of the original FLOPs almost without losing accuracy. Codes are available online:~\url{https://github.com/VITA-Group/UVC}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.08243")

Code

Syntology Ran 9 of 16 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 7 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

VITA-Group/UVC officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 9 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
3ran · our draft was wrong
5ran
7unverified

Licence: 3 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from VITA-Group/UVC. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Attention VITA-Group/UVC/UVC/models/modeling.py official repository ran · metamorphic tier: deterministic MIT (permissive) · bfc8fe0ddf96d4c7 · report
Mlp VITA-Group/UVC/UVC/models/modeling.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 3215e1b62b114566 · report
PreActBottleneck VITA-Group/UVC/UVC/models/modeling.py official repository ran MIT (permissive) · df180144004badc3 · report
ResNetV2 VITA-Group/UVC/UVC/models/modeling.py official repository ran · metamorphic tier: deterministic MIT (permissive) · e91e85b73a67665a · report
StdConv2d VITA-Group/UVC/UVC/models/modeling.py official repository ran fingerprinted MIT (permissive) · eadbbe03b5b32f01 · report
get_tau vita-group/uvc/UVC/joint_train.py official repository ran · violated contract fingerprinted MIT (permissive) · aa9253d77220768c · report
get_uvc_layers vita-group/uvc/UVC/post_train.py official repository ran · our draft was wrong MIT (permissive) · 80da1ef156cc3a88 · report
Block VITA-Group/UVC/UVC/models/modeling.py official repository unverified MIT (permissive) · 195dcd4e31d9f812 · report
Embeddings VITA-Group/UVC/UVC/models/modeling.py official repository unverified MIT (permissive) · 8020519bcd7e5931 · report
Encoder VITA-Group/UVC/UVC/models/modeling.py official repository unverified MIT (permissive) · f5a8c54634cf9950 · report
Transformer VITA-Group/UVC/UVC/models/modeling.py official repository unverified MIT (permissive) · a4485af62ba072e0 · report
VisionTransformer VITA-Group/UVC/UVC/models/modeling.py official repository unverified MIT (permissive) · 4900a340f86d38d4 · report
complex_accuracy vita-group/uvc/UVC/joint_train.py official repository unverified MIT (permissive) · 3e8918f575824271 · report
conv1x1 identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · b0f916df39e78ae5 · report
conv3x3 identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 4e5bf13dbdc4f008 · report
simple_accuracy identical code first harvested elsewhere unverified licence of this copy not recorded · 3c241ecfe3749a6d · report

Tasks

Knowledge Distillation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionAttention DropoutBPEConvolutionDeiTDense ConnectionsDropoutFeedforward NetworkLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerPruningResidual ConnectionSoftmaxT2T-ViTTransformerVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections