Papers › From Layers to Submodules: Rethinking Granularity in Replacement-Based LLM Compression

From Layers to Submodules: Rethinking Granularity in Replacement-Based LLM Compression

1 Jun 2026arXiv:2606.02559added by Syntology

Elia Cunegatti, Marcus Vukojevic, Erik Nielsen, Giovanni Iacca

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Post-training compression of Large Language Models (LLMs) removes entire architectural components, either deleting them or replacing them with fitted modules. Existing replacement-based methods share two design constraints: full-layer granularity and contiguous selection. We argue that this is overly restrictive: in fact, redundancy in pretrained transformers is not confined to contiguous regions, nor does it evenly distribute between Attention and FeedForward outputs, implying that different strategies best approximate different submodule types and that removable components need not cluster within contiguous depth ranges. Based on this intuition, we introduce SubFit (Submodule-level Fitted residual replacement), which compresses LLMs at the submodule level: Attention and FeedForward submodules are selected non-contiguously, and each receives its own lightweight fitted residual bypass. SubFit operates post-training and requires only calibration data. Across ten LLMs (five base, five instruction-tuned), five sparsity levels from 12.5% to 37.5%, and four replacement-based baselines, SubFit achieves the best aggregate perplexity-accuracy trade-off across the evaluated sparsity levels, with larger gains under aggressive compression. At 25% sparsity, it retains 84.6% of dense downstream accuracy and incurs 2.42x perplexity degradation, against 81.6% and 4.34x for the strongest baselines, while delivering measurable inference speedup and KV-cache savings. Code is available at https://github.com/eliacunegatti/SubFit.

PaperPDFCode 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="2606.02559")

Code

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

By repository: found in paper text by Syntology: 30 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

eliacunegatti/SubFit found in paper text by Syntology report

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

30 samples harvested; 14 ran; 3 honoured the contract we drafted; 16 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
8ran · our draft was wrong
3ran
16unverified

Licence: 0 of the 30 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 eliacunegatti/SubFit. “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.

WindowedDataset eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 22ade1d75a862541 · report
_apply_attn_output_postprocess eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran Apache-2.0 (permissive) · fdbf1092b0413252 · report
_apply_mlp_output_postprocess eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · fe56314f6b1d9c4a · report
_assistant_token_weights eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · f15e611aa91a0505 · report
_collate_varlen_token_tensors eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · 6ba2213d95e03c2b · report
_flatten_token_features eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 12b2075f30cdf403 · report
_flatten_token_features_masked eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5534aee17b434704 · report
_flatten_token_mask_masked eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 034932c0f705cff6 · report
_get_attn_input_norm eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 937d791503e3bbdb · report
_get_mlp_input_norm eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 9026fa333bb5c5e1 · report
_get_mlp_output_linear eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · ea4ff3f930627b36 · report
_paint eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 4a9a9cc790153aa0 · report
pad_collate_with_assistant eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 9e74419c2ab89e49 · report
replaceModel eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology ran Apache-2.0 (permissive) · 36012fe19343da69 · report
ResidualDiagLowRankBypass eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 519cab6d0b778dd9 · report
_bar_color eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · daaa3c15c13a0768 · report
_fit_attention_diag_lowrank_streaming eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0581539059360498 · report
_fit_mlp_diag_lowrank_shared_streaming eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 072be8cfc41ba44c · report
_fmt_layers eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4e21c9b35ed3b030 · report
_prepare_windowed_sentence_subset eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d71432d675b8f997 · report
_print_legend eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0e8a596b6afd9aad · report
_select_attention_blocks_pass0 eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 98e873a5f9cd57b7 · report
_select_layers_and_build_masks eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · c3700710c99d77cd · report
_select_layers_pass1 eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ece209c7b9daf884 · report
_step eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9b772050197ea3c4 · report
_warn eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 10440362d3aeac8f · report
maskModel eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · da72bdf599b63aed · report
set_seed eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · af9dc55c45798b01 · report
subfit eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 74d13b755b96be54 · report
unmaskModel eliacunegatti/SubFit/subfit/distill.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 382d744050a412f3 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.02559, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

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