SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.03449 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2308.03449.json · badge: /api/ran/2308.03449.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
snudm-starlab/k-prune canonical (classifier label)
classifier basis: census
12 ran · 4 no recorded run
FunctionStatusWhere it lives
avg_seq_length Ran
ran, honoured the contract we drafted
snudm-starlab/k-prune/src/dataset/glue.py
pointer only (licence: NONE) · get_code("81a976f2d07691ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

eval_squad_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
snudm-starlab/k-prune/src/evaluate/squad.py
pointer only (licence: NONE) · get_code("3099ee2eb84029fc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
snudm-starlab/k-prune/src/prune.py
pointer only (licence: NONE) · get_code("9d9c2a0349979318")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flops_per_head Ran
ran, honoured the contract we drafted
snudm-starlab/k-prune/src/utils/capacity.py
pointer only (licence: NONE) · get_code("234ee0583e6aac86")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flops_per_neuron Ran
ran, honoured the contract we drafted
snudm-starlab/k-prune/src/utils/capacity.py
pointer only (licence: NONE) · get_code("d931d90b153fe3b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_basemodel Ran
ran; our contract draft was wrong, not the code
snudm-starlab/k-prune/src/utils/arch.py
pointer only (licence: NONE) · get_code("7b5ef8fb4fcbf0d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_encoder Ran
ran; our contract draft was wrong, not the code
snudm-starlab/k-prune/src/utils/arch.py
pointer only (licence: NONE) · get_code("04b8921a51f5f4bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_flops Ran
ran, violated the contract we drafted
snudm-starlab/k-prune/src/utils/capacity.py
pointer only (licence: NONE) · get_code("4b6648bada434292")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_layers Ran
ran; our contract draft was wrong, not the code
snudm-starlab/k-prune/src/utils/arch.py
pointer only (licence: NONE) · get_code("e710f0bc27cebd18")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

max_seq_length Ran
ran, honoured the contract we drafted
snudm-starlab/k-prune/src/dataset/glue.py
pointer only (licence: NONE) · get_code("a5972c71ba2fe6a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

num_labels Ran
ran, honoured the contract we drafted
snudm-starlab/k-prune/src/dataset/glue.py
pointer only (licence: NONE) · get_code("6d66e5c7114f28e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_validation_features Ran
ran; our contract draft was wrong, not the code
snudm-starlab/k-prune/src/dataset/squad.py
pointer only (licence: NONE) · get_code("0996b8ad517f85ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_scores Not yet run
unverified (harvested, no recorded run)
snudm-starlab/k-prune/src/prune.py
pointer only (licence: NONE) · get_code("6cc4ed90b06ca999")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

kprune Not yet run
unverified (harvested, no recorded run)
snudm-starlab/k-prune/src/prune.py
pointer only (licence: NONE) · get_code("eb1a415db932da8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

prepare_train_features Not yet run
unverified (harvested, no recorded run)
snudm-starlab/k-prune/src/dataset/squad.py
pointer only (licence: NONE) · get_code("a09579d64a06ab13")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

squad_dataset Not yet run
unverified (harvested, no recorded run)
snudm-starlab/k-prune/src/dataset/squad.py
pointer only (licence: NONE) · get_code("62cdd999358b2ea8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, snudm-starlab/k-prune when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

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

get_harvested_code_for_paper("2308.03449")
get_code_for_paper("2308.03449")
have("2308.03449")

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

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

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

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

Connect an agent — have() is free.