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

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

18 Feb 2024arXiv:2402.16880archive 2025-07-28

Peng Xu, Wenqi Shao, Mengzhao Chen, Shitao Tang, Kaipeng Zhang, Peng Gao, Fengwei An, Yu Qiao, Ping Luo

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.

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

Code

Syntology Ran 4 of 10 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran with no contract checked.

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

linkanonymous/besa officialmentioned in paperpytorch report
opengvlab/llmprune-besa 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

10 samples harvested; 4 ran; 0 honoured the contract we drafted; 6 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.

2ran · our draft was wrong
2ran
6unverified

Licence: 10 of the 10 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

calc_sparsity opengvlab/llmprune-besa/hw_sim/utils.py official repository ran fingerprinted no licence file found · pointer only · 65c00a6635e49555 · report
find_layers linkanonymous/besa/utils/tools.py official repository ran · our draft was wrong no licence file found · pointer only · 14fab8e91e876c60 · report
pattern_match linkanonymous/besa/utils/tools.py official repository ran · our draft was wrong no licence file found · pointer only · c12b55ef635e9947 · report
sparse_linear_flops opengvlab/llmprune-besa/hw_sim/ViTCoD_comp.py official repository ran no licence file found · pointer only · d5bc1562a14aa7f1 · report
get_c4 linkanonymous/besa/utils/data.py official repository unverified no licence file found · pointer only · 51a53fa33d2d9a6f · report
get_model opengvlab/llmprune-besa/hw_sim/utils.py official repository unverified no licence file found · pointer only · e19c4cba75bdc00a · report
get_ptb linkanonymous/besa/utils/data.py official repository unverified no licence file found · pointer only · 3c22f52a4d22d5d2 · report
get_wikitext2 linkanonymous/besa/utils/data.py official repository unverified no licence file found · pointer only · a8a15ad5400c13dc · report
process_sparse_layer opengvlab/llmprune-besa/hw_sim/utils.py official repository unverified no licence file found · pointer only · eb6549618213eabe · report
sparse_linear_simulate opengvlab/llmprune-besa/hw_sim/ViTCoD_comp.py official repository unverified no licence file found · pointer only · 582d1cd9c741708f · report

Tasks

Question AnsweringText Summarization

1 archive task tag without a task page not shown.

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