SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.04756 · 2026

Darkness Visible: Reading the Exception Handler of a Language Model

Peter Balogh

arXiv · PDF · Open in the Atlas

Code that ran

13 of 21 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; 6 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 5 failures of our instrument; 8 no recorded run), measured 2026-11-23; 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/2604.04756.json · badge: /api/ran/2604.04756.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
pbalogh/transparent-gpt2 canonical (classifier label)
classifier basis: census
13 ran · 8 no recorded run
FunctionStatusWhere it lives
bootstrap_ci Ran
ran; our contract draft was wrong, not the code
pbalogh/transparent-gpt2/code/bootstrap_crossover.py
pointer only (licence: NONE) · get_code("e89cb415771641de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

eval_perplexity Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbalogh/transparent-gpt2/src/evaluate.py
pointer only (licence: NONE) · get_code("0b2e5b2bf25f4ff1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

eval_perplexity_quick Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/src/surgical_knowledge_injection.py
pointer only (licence: NONE) · get_code("d76c6c170021b38b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

eval_ppl Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/src/injection_followup.py
pointer only (licence: NONE) · get_code("3af04bf25d96d0f6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

find_token_position Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/code/garden_path_surprisal.py
pointer only (licence: NONE) · get_code("677786975f81b80d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

gelu Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/src/null_model_controls.py
pointer only (licence: NONE) · get_code("d8a18b42531fafae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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_l11_activations Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbalogh/transparent-gpt2/src/null_model_controls.py
pointer only (licence: NONE) · get_code("3efdcf6fcacac392")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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_prob_and_rank Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/src/injection_followup.py
pointer only (licence: NONE) · get_code("cbf2b8468c3877b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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_target_prob Ran
ran, honoured the contract we drafted
pbalogh/transparent-gpt2/src/knowledge_neurons_eval.py
pointer only (licence: NONE) · get_code("05d31e123cd04561")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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_target_prob Ran
ran; our contract draft was wrong, not the code
pbalogh/transparent-gpt2/src/surgical_knowledge_injection.py
pointer only (licence: NONE) · get_code("a5ffbdb25ed3cbdf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

inject Ran
ran on a synthesized input
pbalogh/transparent-gpt2/src/injection_followup.py
pointer only (licence: NONE) · get_code("08066f90d15ddeb7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

neuron_group_output Ran
ran on a synthesized input
pbalogh/transparent-gpt2/src/more_examples.py
pointer only (licence: NONE) · get_code("8b8986f15041b474")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

neuron_group_output Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbalogh/transparent-gpt2/src/progressive_prediction.py
pointer only (licence: NONE) · get_code("7bdf895e1e437aa8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

check_routing Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/surgical_knowledge_injection.py
pointer only (licence: NONE) · get_code("756c2029edd11423")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

consensus_holds Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/transparent_model.py
pointer only (licence: NONE) · get_code("c91075848d606362")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

gateway_fires Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/transparent_model.py
pointer only (licence: NONE) · get_code("9367d8b6c1ad8213")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

get_top_prediction Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/knowledge_neurons_eval.py
pointer only (licence: NONE) · get_code("0dfc30382839de07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

get_top_predictions Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/progressive_prediction.py
pointer only (licence: NONE) · get_code("2093d119d8614bd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

load_tokens Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/null_model_controls.py
pointer only (licence: NONE) · get_code("57865bee29e44983")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

neuron_fires Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/transparent_model.py
pointer only (licence: NONE) · get_code("434268a1d7c50289")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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.

setup_model Not yet run
unverified (harvested, no recorded run)
pbalogh/transparent-gpt2/src/knowledge_neurons_eval.py
pointer only (licence: NONE) · get_code("5374181db796fdd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pbalogh/transparent-gpt2 when it was checked. 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 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 19 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.

FunctionAlso present inEarliest-datedOthers named
gelu 1 other paper
1 dated earlier
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models

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

Repositories linked to this paper

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

Abstract

The final MLP of GPT-2 Small exhibits a fully legible routing program-27 named neurons organized into a three-tier exception handler-while the knowledge it routes remains entangled across ∼3,040 residual neurons. We decompose all 3,072 neurons (to numerical precision) into: 5 fused Core neurons that reset vocabulary toward function words, 10 Differentiators that suppress wrong candidates, 5 Specialists that detect structural boundaries, and 7 Consensus neurons that each monitor a distinct linguistic dimension. The consensus-exception crossover-where MLP intervention shifts from helpful to harmful-is statistically sharp (bootstrap 95% CIs exclude zero at all consensus levels; crossover between 4/7 and 5/7). Three experiments show that "knowledge neurons" [Dai et al., 2022], at L11 of this model, function as routing infrastructure rather than fact storage: the MLP amplifies or suppresses signals already present in the residual stream from attention, scaling with contextual constraint. A garden-path experiment reveals a reversed gardenpath effect-GPT-2 uses verb subcategorization immediately, consistent with the exception handler operating at token-level predictability rather than syntactic structure. This architecture crystallizes only at the terminal layer-in deeper models, we predict equivalent structure at the final layer, not at layer 11. Code and data: https://github.com/pbalogh/transparent-gpt2.

For agents

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

get_harvested_code_for_paper("2604.04756")
get_code_for_paper("2604.04756")
have("2604.04756")

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

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

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

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

Connect an agent — have() is free.