SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.16880 · 2024

BESA: Pruning Large Language Models with Blockwise Parameter-Efficient Sparsity Allocation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 10 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 6 no recorded run), measured 2026-11-22; 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/2402.16880.json · badge: /api/ran/2402.16880.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
opengvlab/llmprune-besa canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
linkanonymous/besa canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FunctionStatusWhere it lives
calc_sparsity Ran
ran; our contract draft was wrong, not the code
opengvlab/llmprune-besa/hw_sim/utils.py
pointer only (licence: NONE) · get_code("65c00a6635e49555")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, opengvlab/llmprune-besa 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_layers Ran
ran; our contract draft was wrong, not the code
linkanonymous/besa/utils/tools.py
pointer only (licence: NONE) · get_code("14fab8e91e876c60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linkanonymous/besa 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.

pattern_match Ran
ran; our contract draft was wrong, not the code
linkanonymous/besa/utils/tools.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/weak_llm_teacher, is pointer only (licence: NONE) · get_code("c12b55ef635e9947")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linkanonymous/besa 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.

sparse_linear_flops Ran
ran, honoured the contract we drafted
opengvlab/llmprune-besa/hw_sim/ViTCoD_comp.py
pointer only (licence: NONE) · get_code("d5bc1562a14aa7f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, opengvlab/llmprune-besa 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_c4 Not yet run
unverified (harvested, no recorded run)
linkanonymous/besa/utils/data.py
pointer only (licence: NONE) · get_code("51a53fa33d2d9a6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linkanonymous/besa 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.

get_model Not yet run
unverified (harvested, no recorded run)
opengvlab/llmprune-besa/hw_sim/utils.py
pointer only (licence: NONE) · get_code("e19c4cba75bdc00a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, opengvlab/llmprune-besa 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.

get_ptb Not yet run
unverified (harvested, no recorded run)
linkanonymous/besa/utils/data.py
pointer only (licence: NONE) · get_code("3c22f52a4d22d5d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linkanonymous/besa 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.

get_wikitext2 Not yet run
unverified (harvested, no recorded run)
linkanonymous/besa/utils/data.py
pointer only (licence: NONE) · get_code("a8a15ad5400c13dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linkanonymous/besa 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.

process_sparse_layer Not yet run
unverified (harvested, no recorded run)
opengvlab/llmprune-besa/hw_sim/utils.py
pointer only (licence: NONE) · get_code("eb6549618213eabe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, opengvlab/llmprune-besa 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.

sparse_linear_simulate Not yet run
unverified (harvested, no recorded run)
opengvlab/llmprune-besa/hw_sim/ViTCoD_comp.py
pointer only (licence: NONE) · get_code("582d1cd9c741708f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, opengvlab/llmprune-besa 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 8 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.

FunctionAlso present inEarliest-datedOthers named
find_layers 21 other papers
6 dated earlier, 14 later, 1 same year, order not determinable · 5 only as an assembly brick
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2310.05175 (2023-10)
Outlier Weighed Layerwise Sparsity (OWL ): A Missing Secret Sauce for Pruning LLMs to High Sparsity
2310.08915 (2023-10)
Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs
and 18 more not named here
pattern_match 6 other papers
3 dated earlier, 1 the same month, 2 later
2306.03078 (2023-06)
SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression
2309.06256 (2023-09)
Mitigating the Alignment Tax of RLHF
2401.12873 (2024-01)
Improving Machine Translation with Human Feedback: An Exploration of Quality Estimation as a Reward Model
and 3 more not named here

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-22.

Repositories linked to this paper

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

Abstract

Large language models (LLMs) have demonstrated outstanding performance in various tasks, such as text summarization, text question-answering, and etc. While their performance is impressive, the computational footprint due to their vast number of parameters can be prohibitive. Existing solutions such as SparseGPT and Wanda attempt to alleviate this issue through weight pruning. However, their layer-wise approach results in significant perturbation to the model's output and requires meticulous hyperparameter tuning, such as the pruning rate, which can adversely affect overall model performance. To address this, this paper introduces a novel LLM pruning technique dubbed blockwise parameter-efficient sparsity allocation (BESA) by applying a blockwise reconstruction loss. In contrast to the typical layer-wise pruning techniques, BESA is characterized by two distinctive attributes: i) it targets the overall pruning error with respect to individual transformer blocks, and ii) it allocates layer-specific sparsity in a differentiable manner, both of which ensure reduced performance degradation after pruning. Our experiments show that BESA achieves state-of-the-art performance, efficiently pruning LLMs like LLaMA1, and LLaMA2 with 7B to 70B parameters on a single A100 GPU in just five hours. Code is available at https://github.com/OpenGVLab/LLMPrune-BESA.

For agents

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

get_harvested_code_for_paper("2402.16880")
get_code_for_paper("2402.16880")
have("2402.16880")

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

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

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

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

Connect an agent — have() is free.