Papers › Fast and Controllable Post-training Sparsity: Learning Optimal Sparsity Allocation...

Fast and Controllable Post-training Sparsity: Learning Optimal Sparsity Allocation with Global Constraint in Minutes

9 May 2024arXiv:2405.05808archive 2025-07-28

Ruihao Gong, Yang Yong, Zining Wang, Jinyang Guo, Xiuying Wei, Yuqing Ma, Xianglong Liu

Neural network sparsity has attracted many research interests due to its similarity to biological schemes and high energy efficiency. However, existing methods depend on long-time training or fine-tuning, which prevents large-scale applications. Recently, some works focusing on post-training sparsity (PTS) have emerged. They get rid of the high training cost but usually suffer from distinct accuracy degradation due to neglect of the reasonable sparsity rate at each layer. Previous methods for finding sparsity rates mainly focus on the training-aware scenario, which usually fails to converge stably under the PTS setting with limited data and much less training cost. In this paper, we propose a fast and controllable post-training sparsity (FCPTS) framework. By incorporating a differentiable bridge function and a controllable optimization objective, our method allows for rapid and accurate sparsity allocation learning in minutes, with the added assurance of convergence to a predetermined global sparsity rate. Equipped with these techniques, we can surpass the state-of-the-art methods by a large margin, e.g., over 30\% improvement for ResNet-50 on ImageNet under the sparsity rate of 80\%. Our plug-and-play code and supplementary materials are open-sourced at https://github.com/ModelTC/FCPTS.

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="2405.05808")

Code

Syntology Ran 13 of 21 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 9 ran with no contract checked.

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

modeltc/fcpts officialmentioned in papermentioned 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

21 samples harvested; 13 ran; 0 honoured the contract we drafted; 8 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
2ran · our draft was wrong
1ran · fixture could not drive it
9ran
8unverified

Licence: 21 of the 21 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 ModelTC/FCPTS. “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.

accuracy ModelTC/FCPTS/utils.py official repository ran · fixture could not drive it no licence file found · pointer only · b0f936d4d6ae3b8c · report
build_norm_layer ModelTC/FCPTS/models/mobilenet_v2.py official repository ran no licence file found · pointer only · c632289fded31a56 · report
build_optimizer ModelTC/FCPTS/train/optimizer.py official repository ran no licence file found · pointer only · 705619bc4a3a35a8 · report
conv1x1 ModelTC/FCPTS/models/resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 2a80220dabcb742a · report
conv3x3 ModelTC/FCPTS/models/resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 600ff2c45e0de056 · report
extract_block ModelTC/FCPTS/get_block_node_names.py official repository ran no licence file found · pointer only · a4f820f669b1e450 · report
extract_layer ModelTC/FCPTS/get_block_node_names.py official repository ran no licence file found · pointer only · 84d02ec15ff2aff3 · report
find_num_nodes ModelTC/FCPTS/get_block_node_names.py official repository ran no licence file found · pointer only · e140f4a58da9adb4 · report
get_resnet_cifar_func_by_name ModelTC/FCPTS/models/resnet_cifar.py official repository ran no licence file found · pointer only · 4722136a6a5bb904 · report
load_checkpoint_simple ModelTC/FCPTS/utils.py official repository ran no licence file found · pointer only · 5b54be7e3ef057b8 · report
shear_x ModelTC/FCPTS/train/randaug.py official repository ran no licence file found · pointer only · e866e1196986f728 · report
shear_y ModelTC/FCPTS/train/randaug.py official repository ran no licence file found · pointer only · 7b2503c99c9447fb · report
unwrap_model ModelTC/FCPTS/utils.py official repository ran · violated contract no licence file found · pointer only · 8ba24560996e7d76 · report
build_scheduler ModelTC/FCPTS/train/lr_scheduler.py official repository unverified no licence file found · pointer only · 07e8b4b487c0abb6 · report
check_keywords_in_name ModelTC/FCPTS/train/optimizer.py official repository unverified no licence file found · pointer only · b0a5beb34716d5a6 · report
create_logger ModelTC/FCPTS/train/logger.py official repository unverified no licence file found · pointer only · 80450600f7f09b0a · report
get_config ModelTC/FCPTS/train/config.py official repository unverified no licence file found · pointer only · 8720cb02339df51e · report
modify_state_dict ModelTC/FCPTS/models/mobilenet_v2.py official repository unverified no licence file found · pointer only · efb93a9be20060a5 · report
resnet18 ModelTC/FCPTS/models/resnet.py official repository unverified no licence file found · pointer only · 926cc8236c31bb61 · report
set_weight_decay ModelTC/FCPTS/train/optimizer.py official repository unverified no licence file found · pointer only · 284f23322c9df1e7 · report
trunc_normal ModelTC/FCPTS/models/mobilenet_v2.py official repository unverified no licence file found · pointer only · a65695fdc3ab22ca · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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