Papers › LPViT: Low-Power Semi-structured Pruning for Vision Transformers

LPViT: Low-Power Semi-structured Pruning for Vision Transformers

2 Jul 2024arXiv:2407.02068archive 2025-07-28

Kaixin Xu, Zhe Wang, Chunyun Chen, Xue Geng, Jie Lin, Mohamed M. Sabry Aly, Xulei Yang, Min Wu, XiaoLi Li, Weisi Lin

Vision transformers have emerged as a promising alternative to convolutional neural networks for various image analysis tasks, offering comparable or superior performance. However, one significant drawback of ViTs is their resource-intensive nature, leading to increased memory footprint, computation complexity, and power consumption. To democratize this high-performance technology and make it more environmentally friendly, it is essential to compress ViT models, reducing their resource requirements while maintaining high performance. In this paper, we introduce a new block-structured pruning to address the resource-intensive issue for ViTs, offering a balanced trade-off between accuracy and hardware acceleration. Unlike unstructured pruning or channel-wise structured pruning, block pruning leverages the block-wise structure of linear layers, resulting in more efficient matrix multiplications. To optimize this pruning scheme, our paper proposes a novel hardware-aware learning objective that simultaneously maximizes speedup and minimizes power consumption during inference, tailored to the block sparsity structure. This objective eliminates the need for empirical look-up tables and focuses solely on reducing parametrized layer connections. Moreover, our paper provides a lightweight algorithm to achieve post-training pruning for ViTs, utilizing second-order Taylor approximation and empirical optimization to solve the proposed hardware-aware objective. Extensive experiments on ImageNet are conducted across various ViT architectures, including DeiT-B and DeiT-S, demonstrating competitive performance with other pruning methods and achieving a remarkable balance between accuracy preservation and power savings. Especially, we achieve up to 3.93x and 1.79x speedups on dedicated hardware and GPUs respectively for DeiT-B, and also observe an inference power reduction by 1.4x on real-world GPUs.

PaperPDFCodeCode 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="2407.02068")

Code

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

By repository: official repository: 12 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Akimoto-Cris/LPViT officialmentioned on GitHubpytorch 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

12 samples harvested; 12 ran; 0 honoured the contract we drafted; 0 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
1ran · our draft was wrong
10ran

Licence: 12 of the 12 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 Akimoto-Cris/LPViT. “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.

blocksparse_attention_mask Akimoto-Cris/LPViT/blocksparse_attention_module.py official repository ran fingerprinted no licence file found · pointer only · 1f571409b5239217 · report
check_sparsity Akimoto-Cris/LPViT/pruning_utils.py official repository ran no licence file found · pointer only · de2af715a05df3be · report
check_sparsity_dict Akimoto-Cris/LPViT/pruning_utils.py official repository ran no licence file found · pointer only · 181028f4d3a799d6 · report
extract_mask Akimoto-Cris/LPViT/pruning_utils.py official repository ran · our draft was wrong no licence file found · pointer only · cccbdd267d4f7850 · report
get_sparsity Akimoto-Cris/LPViT/engine.py official repository ran no licence file found · pointer only · 9f7f6915bde67e3d · report
get_spraseattention_vit_module Akimoto-Cris/LPViT/blocksparse_attention_module.py official repository ran no licence file found · pointer only · 73d3cb525b1c3172 · report
get_tau Akimoto-Cris/LPViT/engine.py official repository ran · violated contract fingerprinted no licence file found · pointer only · aa9253d77220768c · report
gumbel_softmax Akimoto-Cris/LPViT/sp_vision_transformer.py official repository ran no licence file found · pointer only · 7c73b690d9886b5d · report
resize_pos_embed Akimoto-Cris/LPViT/sp_vision_transformer.py official repository ran no licence file found · pointer only · 743923947c250e6c · report
scatter Akimoto-Cris/LPViT/sp_vision_transformer.py official repository ran no licence file found · pointer only · e11ddb5cae4f73b4 · report
sparse_attention_mask Akimoto-Cris/LPViT/blocksparse_attention_module.py official repository ran no licence file found · pointer only · 09f6b361c824b0d7 · report
test Akimoto-Cris/LPViT/prune_vit.py official repository ran no licence file found · pointer only · 49e75bdeacd88ac2 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

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