Papers › Accurate Retraining-free Pruning for Pretrained Encoder-based Language Models

Accurate Retraining-free Pruning for Pretrained Encoder-based Language Models

7 Aug 2023arXiv:2308.03449archive 2025-07-28

Seungcheol Park, Hojun Choi, U Kang

Given a pretrained encoder-based language model, how can we accurately compress it without retraining? Retraining-free structured pruning algorithms are crucial in pretrained language model compression due to their significantly reduced pruning cost and capability to prune large language models. However, existing retraining-free algorithms encounter severe accuracy degradation, as they fail to handle pruning errors, especially at high compression rates. In this paper, we propose K-prune (Knowledge-preserving pruning), an accurate retraining-free structured pruning algorithm for pretrained encoder-based language models. K-prune focuses on preserving the useful knowledge of the pretrained model to minimize pruning errors through a carefully designed iterative pruning process composed of knowledge measurement, knowledge-preserving mask search, and knowledge-preserving weight-tuning. As a result, K-prune shows significant accuracy improvements up to 58.02%p higher F1 score compared to existing retraining-free pruning algorithms under a high compression rate of 80% on the SQuAD benchmark without any retraining process.

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

Code

Syntology Ran 12 of 16 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 16 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.

snudm-starlab/k-prune 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; 12 ran; 0 honoured the contract we drafted; 4 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.

12ran
4unverified

Licence: 16 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 snudm-starlab/k-prune. “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.

avg_seq_length snudm-starlab/k-prune/src/dataset/glue.py official repository ran no licence file found · pointer only · 81a976f2d07691ea · report
eval_squad_loss snudm-starlab/k-prune/src/evaluate/squad.py official repository ran no licence file found · pointer only · 3099ee2eb84029fc · report
find_mask snudm-starlab/k-prune/src/prune.py official repository ran no licence file found · pointer only · 9d9c2a0349979318 · report
flops_per_head snudm-starlab/k-prune/src/utils/capacity.py official repository ran fingerprinted no licence file found · pointer only · 234ee0583e6aac86 · report
flops_per_neuron snudm-starlab/k-prune/src/utils/capacity.py official repository ran fingerprinted no licence file found · pointer only · d931d90b153fe3b9 · report
get_basemodel snudm-starlab/k-prune/src/utils/arch.py official repository ran no licence file found · pointer only · 7b5ef8fb4fcbf0d1 · report
get_encoder snudm-starlab/k-prune/src/utils/arch.py official repository ran no licence file found · pointer only · 04b8921a51f5f4bc · report
get_flops snudm-starlab/k-prune/src/utils/capacity.py official repository ran no licence file found · pointer only · 4b6648bada434292 · report
get_layers snudm-starlab/k-prune/src/utils/arch.py official repository ran no licence file found · pointer only · e710f0bc27cebd18 · report
max_seq_length snudm-starlab/k-prune/src/dataset/glue.py official repository ran no licence file found · pointer only · a5972c71ba2fe6a0 · report
num_labels snudm-starlab/k-prune/src/dataset/glue.py official repository ran no licence file found · pointer only · 6d66e5c7114f28e9 · report
prepare_validation_features snudm-starlab/k-prune/src/dataset/squad.py official repository ran no licence file found · pointer only · 0996b8ad517f85ab · report
compute_scores snudm-starlab/k-prune/src/prune.py official repository unverified no licence file found · pointer only · 6cc4ed90b06ca999 · report
kprune snudm-starlab/k-prune/src/prune.py official repository unverified no licence file found · pointer only · eb1a415db932da8d · report
prepare_train_features snudm-starlab/k-prune/src/dataset/squad.py official repository unverified no licence file found · pointer only · a09579d64a06ab13 · report
squad_dataset snudm-starlab/k-prune/src/dataset/squad.py official repository unverified no licence file found · pointer only · 62cdd999358b2ea8 · report

Tasks

Language ModelingLanguage ModellingModel Compression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruningfail

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