Papers › Ghosted Layers: Unconstrained Activation Alignment for Recovering Layer-Pruned LLMs

Ghosted Layers: Unconstrained Activation Alignment for Recovering Layer-Pruned LLMs

15 May 2026arXiv:2605.15491added by Syntology

Vincent-Daniel Yun, Junhyuk Jo, Sai Praneeth Karimireddy, Sunwoo Lee

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

Layer pruning removes entire Transformer decoder blocks from large language models, but introduces a mismatch between the hidden state received by the next surviving layer and the distribution it was trained to process, leading to significant performance degradation. We propose Ghosted Layers, a training-free recovery module that addresses this issue by solving a boundary activation alignment problem. Our method derives a closed-form optimal linear operator from a small calibration set to reconstruct the activation discrepancy introduced by the pruned layers. We show that this solution corresponds to the unconstrained optimum of the alignment objective, whereas existing methods are restricted to constrained solutions over limited operator subspaces. Experiments across multiple LLM backbones and pruning strategies demonstrate that our method consistently improves accuracy and perplexity over prior training-free baselines, while preserving the efficiency gains of layer pruning. Official code repository: https://github.com/daniel-eai/ghosted_layers_official_repository/.

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.

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

Code

Syntology 22 code samples harvested from 4 repositories linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 3 honoured, 0 violated, 3 with no contract checked; 11 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 22 samples from 4 repositories, 17 ran (6 with no instrument failure; 11 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.

No sample is linked to this paper from 2 of its repositories that Syntology harvested for other papers:

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. 2 of the 17 samples that ran have no recorded date.

mts-ai/ReplaceMe found in paper text by SyntologySyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to ReplaceMe: Network Simplification via Layer Pruning and Linear Transformations (arXiv:2505.02819; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
chenxinrui-tsinghua/LinearPatch found in paper text by SyntologySyntology: 15 samples, 11 ran (7 instrument-failed) · 4 unverified report
EleutherAI/lm-evaluation-harness found in paper text by SyntologySyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to SCORE: Systematic COnsistency and Robustness Evaluation for Large Language Models (arXiv:2503.00137; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified) and NileChat: Towards Linguistically Diverse and Culturally Aware LLMs for Local Communities (arXiv:2505.18383; that paper's own run record: 0 ran · 1 unverified); nothing checks that they implement this paper's method. report
ruckbreasoning/llm-streamline found in paper text by SyntologySyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
daniel-eai/ghosted_layers_ found in paper text by Syntologynot reachable when probed 2026-09-16 — repositories for recent papers often appear after camera-readySyntology: not harvested report
sramshetty/ShortGPT found in paper text by SyntologySyntology: 2 samples, 2 ran (2 instrument-failed) · 0 unverified report
Nota-NetsPresso/shortened-llm found in paper text by SyntologySyntology: 4 samples, 3 ran (1 instrument-failed) · 1 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

22 samples harvested: 17 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 3 honoured, 0 violated, 3 with no contract checked; 11 where Syntology's instrument failed) · 5 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.

3ran · honoured contract
9ran · our draft was wrong
2ran; the contract check could not run
3ran
5unverified

Licence: 6 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. For 1 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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.

chenxinrui-tsinghua/LinearPatch found in paper text by Syntology 15 samples, 11 ran (7 instrument-failed) · 4 unverified
add_wrapper_after_function_call_in_method rotate_utils/monkeypatch.py ran MIT (permissive) · e649cf99e1985c23 · report fixture: signature module:callable/0/?, method_name:str/0/str, function_name:str/0/str, wrapper_fn:callable/0/? · returned function · level recorded 2026-09-24
copy_func_with_new_globals rotate_utils/monkeypatch.py ran · our draft was wrong MIT (permissive) · 76b345bcf88c8668 · report fixture: signature f:callable/0/?, globals:NoneType/0/? · returned function · level recorded 2026-09-24
create_logger in 172 papers utils.py ran · our draft was wrong MIT (permissive) · 253d01253fa57089 · report fixture: signature output_dir:str/0/str, dist_rank:int/0/int, name:str/0/str · returned Logger · level recorded 2026-09-24
format_example in 43 papers eval/mmlu_eval.py ran · our draft was wrong MIT (permissive) · cd763eaf1ac287e7 · report fixture: signature df:DataFrame/0/?, idx:int/0/int, include_answer:bool/0/bool · returned str · level recorded, date not recorded
format_subject in 26 papers eval/mmlu_eval.py ran · our draft was wrong fingerprinted MIT (permissive) · 6ab745408cb8648b · report fixture: signature subject:str/0/str · returned str · level recorded, date not recorded
gen_prompt in 35 papers eval/mmlu_eval.py ran · our draft was wrong MIT (permissive) · 3383488ea82b6c15 · report fixture: signature train_df:DataFrame/0/?, subject:str/0/str, k:int/0/int · returned str · level recorded 2026-09-24
get_pruned_layer_with_cosine layer_select.py ran MIT (permissive) · 6a159410399bfba3 · report fixture: signature model:callable/0/?, trainloader:DataLoader/0/?, num_to_prune:int/0/int, device:str/0/str · returned tuple · level recorded 2026-09-24
get_rope_function_name in 8 papers rotate_utils/model_utils.py ran; the contract check could not run (RAISES) MIT (permissive) · 8005fc23ccbe61fb · report fixture: signature model:callable/0/? · returned str · level recorded 2026-09-24
llama_down_proj_groupsize rotate_utils/utils.py ran · honoured contract MIT (permissive) · fe39dd44b7d2698b · report fixture: signature model:callable/0/?, groupsize:int/0/int · returned int · level recorded 2026-09-24
online_rotate rotate_utils/rotation_utils.py ran · our draft was wrong MIT (permissive) · f27e39c71c8ebfb4 · report fixture: signature module:callable/0/?, inp:tuple/1/Tensor · returned tuple · level recorded 2026-09-24
random_orthogonal_matrix in 5 papers rotate_utils/rotation_utils.py ran · honoured contract MIT (permissive) · 522f6e6438fa5941 · report fixture: signature size:int/0/int, device:str/0/str · returned Tensor · level recorded 2026-09-24
cleanup_memory in 8 papers rotate_utils/utils.py unverified MIT (permissive) here; the stored copy is pointer only · 88c8d591b4688832 · report
config_logging rotate_utils/utils.py unverified MIT (permissive) · cf7f28fedcdd19c5 · report
get_layers in 20 papers rotate_utils/model_utils.py unverified MIT (permissive) · eb59d0a73734e449 · report
model_type_extractor in 6 papers rotate_utils/model_utils.py unverified MIT (permissive) · cdd805f7fc7a0842 · report
ruckbreasoning/llm-streamline found in paper text by Syntology 1 sample, 1 ran (1 instrument-failed) · 0 unverified
replace_lightweight_network LLM_Streamline/train_mseloss.py ran · our draft was wrong no licence file found · pointer only · 084cfa0149d7a511 · report fixture: signature model:callable/0/?, lightweight_network:callable/0/?, pruned_model:callable/0/?, best_layer:int/0/int, layer_intervals:int/0/int, model_name:str/0/str, num_layers:int/0/int · returned LlamaForCausalLM · level recorded 2026-09-22
sramshetty/ShortGPT found in paper text by Syntology 2 samples, 2 ran (2 instrument-failed) · 0 unverified
block_influence short_gpt/metrics.py ran; the contract check could not run (RAISES) MIT (permissive) · a88f5625827ddf9d · report fixture: signature input_hidden_state:Tensor/3/float, output_hidden_state:Tensor/3/float, angular:bool/0/bool · returned Tensor · level recorded 2026-09-24
sample_top_p in 35 papers short_gpt/short_llama.py ran · our draft was wrong MIT (permissive) · ab63b7d19f77cc5c · report fixture: signature probs:Tensor/2/float, p:float/0/float · returned Tensor · level recorded 2026-09-24
Nota-NetsPresso/shortened-llm found in paper text by Syntology 4 samples, 3 ran (1 instrument-failed) · 1 unverified
b2mb in 12 papers src/gen_batch_eval_vram.py ran · honoured contract fingerprinted no licence file found · pointer only · 32380a050ca033d4 · report fixture: signature x:int/0/int · returned int · level recorded 2026-09-22
llama_eval in 6 papers src/eval_ppl.py ran · our draft was wrong no licence file found · pointer only · 9012ddbbaf4ee64f · report fixture: signature model:callable/0/?, test_lodaer:list/1/Tensor, device:device/0/? · returned float · level recorded 2026-09-24
process_data in 61 papers src/dataset.py ran no licence file found · pointer only · 8a69aa6e08dc65a9 · report fixture: signature samples:dict/0/?, tokenizer:callable/0/?, seq_len:int/0/int, field_name:str/0/str, add_bos_to_every:bool/0/bool · returned IndexDataset · level recorded 2026-09-24
get_gpu_metrics src/gen_batch_eval_time_gpuutil.py unverified no licence file found · pointer only · f8178f1b0c33cf48 · 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 Ghosted Layers (graph method: Ghosted Layers). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

  1. replace_lightweight_network entry · level 1 · ran · our draft was wrong · 084cfa0149d7a511

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="2605.15491") 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, 2605.15491, was issued in May 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 2 leaderboards (a model's judgement, not a result) and has not placed the paper on any of them: Language Modelling · C4 (refused by a rule: the row is an ablation variant, not the method itself); Language Modelling · WikiText-2 (refused by a rule: the row is an ablation variant, not the method itself). 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