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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 30 code samples harvested from 1 repository linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 9 where Syntology's instrument failed) · 16 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 30 samples from 1 repository, 14 ran (5 with no instrument failure; 9 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

eliacunegatti/SubFit found in paper text by SyntologySyntology: 30 samples, 14 ran (9 instrument-failed) · 16 unverified 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 (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 9 where Syntology's instrument failed) · 16 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
9ran · our draft was wrong
1ran
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

eliacunegatti/SubFit found in paper text by Syntology 30 samples, 14 ran (9 instrument-failed) · 16 unverified
WindowedDataset subfit/distill.py ran fingerprinted Apache-2.0 (permissive) · 22ade1d75a862541 · report fixture: signature idx:int/0/int · returned dict · level recorded 2026-09-24
_apply_attn_output_postprocess subfit/distill.py ran · honoured contract Apache-2.0 (permissive) · fdbf1092b0413252 · report fixture: signature layer:callable/0/?, out:Tensor/2/float · returned Tensor · level recorded 2026-09-24
_apply_mlp_output_postprocess subfit/distill.py ran · honoured contract Apache-2.0 (permissive) · fe56314f6b1d9c4a · report fixture: signature layer:callable/0/?, out:Tensor/2/float · returned Tensor · level recorded 2026-09-22
_assistant_token_weights subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · f15e611aa91a0505 · report fixture: signature assistant_flat:Tensor/1/float, n_tokens:int/0/int, assistant_weight:float/0/float, non_assistant_weight:float/0/float, device:device/0/? · returned Tensor · level recorded 2026-09-22
_collate_varlen_token_tensors subfit/distill.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 6ba2213d95e03c2b · report fixture: signature batch:list/1/Tensor · returned tuple · level recorded 2026-09-22
_flatten_token_features subfit/distill.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 12b2075f30cdf403 · report fixture: signature out:Tensor/3/float · returned Tensor · level recorded 2026-09-22
_flatten_token_features_masked subfit/distill.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5534aee17b434704 · report fixture: signature out:Tensor/3/float, attn_mask:Tensor/2/float · returned Tensor · level recorded 2026-09-22
_flatten_token_mask_masked subfit/distill.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 034932c0f705cff6 · report fixture: signature token_mask:Tensor/3/float, attn_mask:Tensor/3/float · returned Tensor · level recorded 2026-09-22
_get_attn_input_norm subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · 937d791503e3bbdb · report fixture: signature layer:callable/0/? · returned LayerNorm · level recorded 2026-09-22
_get_mlp_input_norm subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · 9026fa333bb5c5e1 · report fixture: signature layer:callable/0/? · returned LayerNorm · level recorded 2026-09-22
_get_mlp_output_linear subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · ea4ff3f930627b36 · report fixture: signature layer:callable/0/? · returned Linear · level recorded 2026-09-22
_paint subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · 4a9a9cc790153aa0 · report fixture: signature text:str/0/str, color:str/0/str, bold:bool/0/bool, dim:bool/0/bool · returned str · level recorded 2026-09-22
pad_collate_with_assistant subfit/distill.py ran · honoured contract Apache-2.0 (permissive) · 9e74419c2ab89e49 · report fixture: signature batch:list/1/dict, window_size:int/0/int · returned tuple · level recorded 2026-09-22
replaceModel subfit/distill.py ran · our draft was wrong Apache-2.0 (permissive) · 36012fe19343da69 · report fixture: signature model:callable/0/?, attnMask:list/1/int, mlpMask:list/1/int, attn_repl:callable/0/?, mlp_repl:callable/0/? · returned MinimalLlama · level recorded 2026-09-22
ResidualDiagLowRankBypass subfit/distill.py unverified Apache-2.0 (permissive) · 519cab6d0b778dd9 · report
_bar_color subfit/distill.py unverified Apache-2.0 (permissive) · daaa3c15c13a0768 · report
_fit_attention_diag_lowrank_streaming subfit/distill.py unverified Apache-2.0 (permissive) · 0581539059360498 · report
_fit_mlp_diag_lowrank_shared_streaming subfit/distill.py unverified Apache-2.0 (permissive) · 072be8cfc41ba44c · report
_fmt_layers subfit/distill.py unverified Apache-2.0 (permissive) · 4e21c9b35ed3b030 · report
_prepare_windowed_sentence_subset subfit/distill.py unverified Apache-2.0 (permissive) · d71432d675b8f997 · report
_print_legend subfit/distill.py unverified Apache-2.0 (permissive) · 0e8a596b6afd9aad · report
_select_attention_blocks_pass0 subfit/distill.py unverified Apache-2.0 (permissive) · 98e873a5f9cd57b7 · report
_select_layers_and_build_masks subfit/distill.py unverified Apache-2.0 (permissive) · c3700710c99d77cd · report
_select_layers_pass1 subfit/distill.py unverified Apache-2.0 (permissive) · ece209c7b9daf884 · report
_step subfit/distill.py unverified Apache-2.0 (permissive) · 9b772050197ea3c4 · report
_warn subfit/distill.py unverified Apache-2.0 (permissive) · 10440362d3aeac8f · report
maskModel subfit/distill.py unverified Apache-2.0 (permissive) · da72bdf599b63aed · report
set_seed in 49 papers subfit/distill.py unverified Apache-2.0 (permissive) · af9dc55c45798b01 · report
subfit subfit/distill.py unverified Apache-2.0 (permissive) · 74d13b755b96be54 · report
unmaskModel subfit/distill.py unverified Apache-2.0 (permissive) · 382d744050a412f3 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for SUB-FIT (graph method: SUB-FIT). 30 bricks; individually on a fixture: 14 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 9 where Syntology's instrument failed) · 16 unverified. The assembly has not been run end-to-end.

  1. subfit entry · level 0 · unverified · 74d13b755b96be54
  2. ResidualDiagLowRankBypass helper · level 0 · unverified · 519cab6d0b778dd9
  3. _fit_attention_diag_lowrank_streaming update_rule · level 0 · unverified · 0581539059360498
  4. _fit_mlp_diag_lowrank_shared_streaming update_rule · level 0 · unverified · 072be8cfc41ba44c
  5. _fmt_layers helper · level 0 · unverified · 4e21c9b35ed3b030
  6. _print_legend helper · level 0 · unverified · 0e8a596b6afd9aad
  7. _select_attention_blocks_pass0 helper · level 0 · unverified · 98e873a5f9cd57b7
  8. _select_layers_and_build_masks model · level 0 · unverified · c3700710c99d77cd
  9. _step helper · level 0 · unverified · 9b772050197ea3c4
  10. _warn helper · level 0 · unverified · 10440362d3aeac8f
  11. maskModel helper · level 0 · unverified · da72bdf599b63aed
  12. replaceModel model · level 1 · ran · our draft was wrong · 36012fe19343da69
  13. set_seed helper · level 0 · unverified · af9dc55c45798b01
  14. unmaskModel helper · level 0 · unverified · 382d744050a412f3
  15. WindowedDataset data_transform · level 1 · ran · 22ade1d75a862541
  16. _assistant_token_weights helper · level 1 · ran · our draft was wrong · f15e611aa91a0505
  17. _bar_color helper · level 0 · unverified · daaa3c15c13a0768
  18. _flatten_token_features_masked helper · level 1 · ran · our draft was wrong · 5534aee17b434704
  19. _flatten_token_mask_masked helper · level 1 · ran · our draft was wrong · 034932c0f705cff6
  20. pad_collate_with_assistant helper · level 1 · ran · honoured contract · 9e74419c2ab89e49
  21. _apply_mlp_output_postprocess helper · level 1 · ran · honoured contract · fe56314f6b1d9c4a
  22. _get_mlp_input_norm helper · level 1 · ran · our draft was wrong · 9026fa333bb5c5e1
  23. _get_mlp_output_linear helper · level 1 · ran · our draft was wrong · ea4ff3f930627b36
  24. _paint helper · level 1 · ran · our draft was wrong · 4a9a9cc790153aa0
  25. _apply_attn_output_postprocess helper · level 1 · ran · honoured contract · fdbf1092b0413252
  26. _collate_varlen_token_tensors helper · level 1 · ran · honoured contract · 6ba2213d95e03c2b
  27. _get_attn_input_norm helper · level 1 · ran · our draft was wrong · 937d791503e3bbdb
  28. _prepare_windowed_sentence_subset sampler · level 0 · unverified · d71432d675b8f997
  29. _select_layers_pass1 helper · level 0 · unverified · ece209c7b9daf884
  30. _flatten_token_features helper · level 1 · ran · our draft was wrong · 12b2075f30cdf403

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2606.02559") returns these assemblies with each brick's role and wiring (how to connect).

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.

Placed on leaderboards by Syntology Syntology

Syntology's extractor, the model Claude Sonnet 4.5, judged this paper's tables to report on 5 leaderboards (a model's judgement, not a result) and has not placed the paper on any of them: Arithmetic Reasoning · GSM8K (refused by a rule: one configuration gave two values for one column); GSM8K · GSM8K (rejected by the independent check); Language Modelling · LAMBADA (refused by a rule: the table's column header does not name the leaderboard's metric); Question Answering · BoolQ (rejected by the independent check); Question Answering · PIQA (rejected by the independent check). What is not shown.

Syntology has checked 8,886 of the 18,637 papers on this site that are newer than the archive (for 3,717 of them no archive leaderboard matched the paper's tables, so there was nothing further to check); 733 were read and have nothing to place (arXiv has no HTML version of the paper, or that version has no tables), 41 could not be read (the extractor's reply could not be parsed), and results from the other 8,977 appear after they are checked.

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