SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.10594 · 2024

BlockPruner: Fine-grained Pruning for Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2406.10594.json · badge: /api/ran/2406.10594.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
MrGGLS/BlockPruner canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
mean Ran
ran, violated the contract we drafted
MrGGLS/BlockPruner/lm_eval/lm_eval/metrics.py
pointer only (licence: NONE) · get_code("0928f497e20fb443")
How it ran

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

apply_block_masks Ran
ran; our contract draft was wrong, not the code
MrGGLS/BlockPruner/block_search.py
pointer only (licence: NONE) · get_code("be0b88c80be6d98b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrGGLS/BlockPruner 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_model_params Ran
ran, honoured the contract we drafted
MrGGLS/BlockPruner/block_search.py
pointer only (licence: NONE) · get_code("ab9ed9d781d2c6a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrGGLS/BlockPruner 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_result Ran
ran, honoured the contract we drafted
MrGGLS/BlockPruner/lm_eval/lm_eval/models/gguf.py
pointer only (licence: NONE) · get_code("53354f082d9addc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrGGLS/BlockPruner 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_result Ran
ran, honoured the contract we drafted
MrGGLS/BlockPruner/lm_eval/lm_eval/models/gpt3.py
pointer only (licence: NONE) · get_code("d253589f2c78dad0")
How it ran

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

hash_args Ran
ran; our contract draft was wrong, not the code
MrGGLS/BlockPruner/lm_eval/lm_eval/api/model.py
pointer only (licence: NONE) · get_code("20a7cc804eb22661")
How it ran

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

hash_args Ran
ran; our contract draft was wrong, not the code
MrGGLS/BlockPruner/lm_eval/lm_eval/base.py
pointer only (licence: NONE); the stored copy get_code serves, from opengvlab/videochat-r1, is pointer only (licence: NONE) · get_code("ea06eaae4fc1eaf0")
How it ran

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

pop_stddev Ran
ran; our contract draft was wrong, not the code
MrGGLS/BlockPruner/lm_eval/lm_eval/metrics.py
pointer only (licence: NONE) · get_code("518b2201c66c2ad3")
How it ran

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

sample_stddev Ran
ran; our contract draft was wrong, not the code
MrGGLS/BlockPruner/lm_eval/lm_eval/metrics.py
pointer only (licence: NONE) · get_code("d40f0123e8a8f5c0")
How it ran

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

evaluate_ppl Not yet run
unverified (harvested, no recorded run)
MrGGLS/BlockPruner/utils.py
pointer only (licence: NONE) · get_code("554f0413091d617d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrGGLS/BlockPruner 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_dataset Not yet run
unverified (harvested, no recorded run)
MrGGLS/BlockPruner/utils.py
pointer only (licence: NONE) · get_code("d4c8796ef8d53b49")
How it ran

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

map_tensors Not yet run
unverified (harvested, no recorded run)
MrGGLS/BlockPruner/utils.py
pointer only (licence: NONE) · get_code("f4933cb17b9eab96")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrGGLS/BlockPruner 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 5 later) and 4 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
hash_args 44 other papers
13 dated earlier, 2 the same month, 27 later, 1 same year, order not determinable, 1 undated
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 41 more not named here
mean 12 other papers
10 dated earlier, 2 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2212.11702 (2022-12)
Robust Meta-Representation Learning via Global Label Inference and Classification
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 9 more not named here
pop_stddev 9 other papers
7 dated earlier, 2 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
and 6 more not named here
sample_stddev 9 other papers
8 dated earlier, 1 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2306.09200 (2023-06)
ChessGPT: Bridging Policy Learning and Language Modeling
and 6 more not named here
get_result 5 other papers
5 dated earlier
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
and 2 more not named here
get_result 4 other papers
3 dated earlier, 1 later
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2312.15838 (2023-12)
SecQA: A Concise Question-Answering Dataset for Evaluating Large Language Models in Computer Security
2405.07938 (2024-05)
EconLogicQA: A Question-Answering Benchmark for Evaluating Large Language Models in Economic Sequential Reasoning
and 1 more not named here
map_tensors 1 other paper
1 dated earlier
2404.10934 (2024-04)
Shears: Unstructured Sparsity with Neural Low-rank Adapter Search

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

With the rapid growth in the size and complexity of large language models (LLMs), the costs associated with their training and inference have escalated significantly. Research indicates that certain layers in LLMs harbor substantial redundancy, and pruning these layers has minimal impact on the overall performance. While various layer pruning methods have been developed based on this insight, they generally overlook the finer-grained redundancies within the layers themselves. In this paper, we delve deeper into the architecture of LLMs and demonstrate that finer-grained pruning can be achieved by targeting redundancies in multi-head attention (MHA) and multi-layer perceptron (MLP) blocks. We propose a novel, training-free structured pruning approach called BlockPruner. Unlike existing layer pruning methods, BlockPruner segments each Transformer layer into MHA and MLP blocks. It then assesses the importance of these blocks using perplexity measures and applies a heuristic search for iterative pruning. We applied BlockPruner to LLMs of various sizes and architectures and validated its performance across a wide range of downstream tasks. Experimental results show that BlockPruner achieves more granular and effective pruning compared to state-of-the-art baselines.

For agents

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

get_harvested_code_for_paper("2406.10594")
get_code_for_paper("2406.10594")
have("2406.10594")

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

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

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

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

Connect an agent — have() is free.