SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.16234 · 2026

No Free Swap: Protocol-Dependent Layer Redundancy in Transformers

Gabriel Garcia

arXiv · PDF · Open in the Atlas

Code that ran

20 of 25 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; 9 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/2605.16234.json · badge: /api/ran/2605.16234.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
Gpgabriel25/ProtocolGapDiagnostic canonical (classifier label)
classifier basis: census
20 ran · 5 no recorded run
FunctionStatusWhere it lives
compute_baseline_logits Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/bisimulation_experiment.py
pointer only (licence: NOASSERTION) · get_code("1481a586c1407812")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

compute_bootstrap_kl Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bi_score_comparison.py
pointer only (licence: NOASSERTION) · get_code("075ab64edd069f3a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

extract_scores Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/downstream_benchmark.py
pointer only (licence: NOASSERTION) · get_code("7f3fe518c40f3bd4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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_layer_removability Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/compression_sweep.py
pointer only (licence: NOASSERTION) · get_code("243851cc0eee1821")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

greedy_select Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gpgabriel25/ProtocolGapDiagnostic/bi_geometry_ablation.py
pointer only (licence: NOASSERTION) · get_code("881baeeeb30fce3e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

greedy_select Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/compression_sweep.py
pointer only (licence: NOASSERTION) · get_code("e22e7062f481d4bf")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

greedy_select_bi Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bi_vs_bisim_headtohead.py
pointer only (licence: NOASSERTION) · get_code("faf2e4d251cb99dc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

greedy_select_bisim Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bi_vs_bisim_headtohead.py
pointer only (licence: NOASSERTION) · get_code("1bf31e23ad48679a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

kl_div_pair Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bisimulation_experiment.py
pointer only (licence: NOASSERTION) · get_code("67099f736d6c4a2d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

kl_div_pair Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bloom_1b1_bisimulation.py
pointer only (licence: NOASSERTION) · get_code("778da11f4d63fe5e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

mean_gap_from_pairs Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/analyze_protocol_gap_trajectory.py
pointer only (licence: NOASSERTION) · get_code("9f98a4f0be012b90")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

optimal_select Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/bi_geometry_ablation.py
pointer only (licence: NOASSERTION) · get_code("da52b8ac64ad243e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

pair_gap_values Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/analyze_protocol_gap_trajectory.py
pointer only (licence: NOASSERTION) · get_code("89432512e6234a25")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

precompute_rope Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/clean_oracle_bootstrap_ci.py
pointer only (licence: NOASSERTION) · get_code("2c3e2520dd55d4d8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

random_distributed Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/bi_geometry_ablation.py
pointer only (licence: NOASSERTION) · get_code("f494d32e3c07ef5d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

remove_layer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gpgabriel25/ProtocolGapDiagnostic/downstream_benchmark.py
pointer only (licence: NOASSERTION) · get_code("87427dce86265325")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

remove_layers Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/bi_vs_bisim_headtohead.py
pointer only (licence: NOASSERTION) · get_code("f36f08ba54f97863")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

remove_layers Ran
ran; our contract draft was wrong, not the code
Gpgabriel25/ProtocolGapDiagnostic/compression_sweep.py
pointer only (licence: NOASSERTION) · get_code("1b33cd34b422c42e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

rms_norm Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/clean_oracle_bootstrap_ci.py
pointer only (licence: NOASSERTION) · get_code("e87ac474b28d38ca")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

step_int Ran
ran, honoured the contract we drafted
Gpgabriel25/ProtocolGapDiagnostic/analyze_protocol_gap_trajectory.py
pointer only (licence: NOASSERTION) · get_code("23bdae01f04f427b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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_rope Not yet run
unverified (harvested, no recorded run)
Gpgabriel25/ProtocolGapDiagnostic/clean_oracle_bootstrap_ci.py
pointer only (licence: NOASSERTION) · get_code("1d1f71ed01bdb63e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

build_diverse_prompts Not yet run
unverified (harvested, no recorded run)
Gpgabriel25/ProtocolGapDiagnostic/bisimulation_experiment.py
pointer only (licence: NOASSERTION) · get_code("9150ef273a402f9b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

compute_bi_scores Not yet run
unverified (harvested, no recorded run)
Gpgabriel25/ProtocolGapDiagnostic/bi_score_comparison.py
pointer only (licence: NOASSERTION) · get_code("03536c31aa1dc33a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

generate_diverse_prompts Not yet run
unverified (harvested, no recorded run)
Gpgabriel25/ProtocolGapDiagnostic/bloom_bisimulation.py
pointer only (licence: NOASSERTION) · get_code("50848c5d55e1afc9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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.

spearman Not yet run
unverified (harvested, no recorded run)
Gpgabriel25/ProtocolGapDiagnostic/d_repl_asymmetry.py
pointer only (licence: NOASSERTION) · get_code("6edd1bd3fa3950dc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Gpgabriel25/ProtocolGapDiagnostic (NOASSERTION). 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 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 25 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.

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

When researchers ask whether two transformer layers are "equivalent" for compression, they often conflate distinct tests. Replacement asks whether one layer's map can substitute for another's in place; interchange asks whether two layers approximately commute when their positions are swapped. Both are output-grounded swap-KL probes, but they need not agree: on pretrained transformers the protocol gap can change which layers look safe to prune by several-fold under the same evaluator, especially when replacement distances are high. We measure both protocols across checkpoints and architectures. On a Pythia training trajectory (410M and 1.4B; Figure 4), the replacement-interchange gap grows from initialization to convergence. Under one matched WikiText-2 contract at 8B scale, Qwen3-8B enters a divergent regime: interchange-guided removal is several-fold safer than replacement-guided at the same layer budgets, while Llama-3.1-8B ties the two protocols for pruning cost even though interchange KL is lower, showing metric gaps need not map one-to-one to removal. Before layer removal or merging, score both swap-KLs on the target checkpoint; the diagnostic requires only unlabeled forward passes.

For agents

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

get_harvested_code_for_paper("2605.16234")
get_code_for_paper("2605.16234")
have("2605.16234")

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

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

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

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

Connect an agent — have() is free.