Papers › SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blocks

SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blocks

14 Feb 2024arXiv:2402.09025archive 2025-07-28

Jiwon Song, Kyungseok Oh, Taesu Kim, HyungJun Kim, Yulhwa Kim, Jae-Joon Kim

Large language models (LLMs) have proven to be highly effective across various natural language processing tasks. However, their large number of parameters poses significant challenges for practical deployment. Pruning, a technique aimed at reducing the size and complexity of LLMs, offers a potential solution by removing redundant components from the network. Despite the promise of pruning, existing methods often struggle to achieve substantial end-to-end LLM inference speedup. In this paper, we introduce SLEB, a novel approach designed to streamline LLMs by eliminating redundant transformer blocks. We choose the transformer block as the fundamental unit for pruning, because LLMs exhibit block-level redundancy with high similarity between the outputs of neighboring blocks. This choice allows us to effectively enhance the processing speed of LLMs. Our experimental results demonstrate that SLEB outperforms previous LLM pruning methods in accelerating LLM inference while also maintaining superior perplexity and accuracy, making SLEB as a promising technique for enhancing the efficiency of LLMs. The code is available at: https://github.com/jiwonsong-dev/SLEB.

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.09025")

Code

Syntology Ran 6 of 12 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · honoured contract; 3 ran · our draft was wrong.

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

jiwonsong-dev/sleb officialmentioned in papermentioned on GitHub 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

12 samples harvested; 6 ran; 3 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.

3ran · honoured contract
3ran · our draft was wrong
6unverified

Licence: 0 of the 12 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 jiwonsong-dev/sleb. “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.

block_remove jiwonsong-dev/sleb/sleb.py official repository ran · our draft was wrong MIT (permissive) · 97b79932a67ad62d · report
block_remove_llama jiwonsong-dev/sleb/sleb.py official repository ran · our draft was wrong MIT (permissive) · 7a2e338ff7fb21b0 · report
block_remove_opt jiwonsong-dev/sleb/sleb.py official repository ran · our draft was wrong MIT (permissive) · 62cb0034e375daea · report
eval_ppl jiwonsong-dev/sleb/sleb.py official repository ran · honoured contract MIT (permissive) · a7e0158215732c17 · report
get_loss jiwonsong-dev/SLEB/sleb.py official repository ran · honoured contract MIT (permissive) · 084002d7f8a76578 · report
load_and_eval_ppl jiwonsong-dev/sleb/sleb.py official repository ran · honoured contract MIT (permissive) · ece3a1bcea1d0f62 · report
block_replace jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · 490bf0726aca1461 · report
eval_zero_shot jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · 01995feb8be8923d · report
get_llm jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · 3d35b1f3a44e3c8d · report
sleb jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · acd45bf0eb9cb9f4 · report
turn_off jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · cb61b072985a3343 · report
turn_on jiwonsong-dev/sleb/sleb.py official repository unverified MIT (permissive) · 19d5226fd25d03fc · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

PruningSPEED

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