{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-04756","title":"Darkness Visible: Reading the Exception Handler of a Language Model","arxiv_id":"2604.04756","date":"2026-04-06","proceeding":null,"authors":["Peter Balogh"],"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 garden-path 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","url_abs":"https://arxiv.org/abs/2604.04756","url_pdf":"https://arxiv.org/pdf/2604.04756","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2604.04756","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.04756"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/pbalogh/transparent-gpt2","reach":null}],"summary":{"unverified":21},"by_repo_kind":{"found_in_text":{"samples":21,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":21,"samples":[{"code_sha256_prefix":"e89cb415771641de","entry":"bootstrap_ci","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"code/bootstrap_crossover.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/code/bootstrap_crossover.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e89cb415771641de"}},{"code_sha256_prefix":"756c2029edd11423","entry":"check_routing","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/surgical_knowledge_injection.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/surgical_knowledge_injection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"756c2029edd11423"}},{"code_sha256_prefix":"c91075848d606362","entry":"consensus_holds","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/transparent_model.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/transparent_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c91075848d606362"}},{"code_sha256_prefix":"0b2e5b2bf25f4ff1","entry":"eval_perplexity","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/evaluate.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0b2e5b2bf25f4ff1"}},{"code_sha256_prefix":"d76c6c170021b38b","entry":"eval_perplexity_quick","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/surgical_knowledge_injection.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/surgical_knowledge_injection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d76c6c170021b38b"}},{"code_sha256_prefix":"3af04bf25d96d0f6","entry":"eval_ppl","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/injection_followup.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/injection_followup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3af04bf25d96d0f6"}},{"code_sha256_prefix":"677786975f81b80d","entry":"find_token_position","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"code/garden_path_surprisal.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/code/garden_path_surprisal.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"677786975f81b80d"}},{"code_sha256_prefix":"9367d8b6c1ad8213","entry":"gateway_fires","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/transparent_model.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/transparent_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9367d8b6c1ad8213"}},{"code_sha256_prefix":"d8a18b42531fafae","entry":"gelu","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/null_model_controls.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/null_model_controls.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d8a18b42531fafae"}},{"code_sha256_prefix":"3efdcf6fcacac392","entry":"get_l11_activations","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/null_model_controls.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/null_model_controls.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3efdcf6fcacac392"}},{"code_sha256_prefix":"cbf2b8468c3877b1","entry":"get_prob_and_rank","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/injection_followup.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/injection_followup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cbf2b8468c3877b1"}},{"code_sha256_prefix":"05d31e123cd04561","entry":"get_target_prob","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/knowledge_neurons_eval.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/knowledge_neurons_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"05d31e123cd04561"}},{"code_sha256_prefix":"a5ffbdb25ed3cbdf","entry":"get_target_prob","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/surgical_knowledge_injection.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/surgical_knowledge_injection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a5ffbdb25ed3cbdf"}},{"code_sha256_prefix":"0dfc30382839de07","entry":"get_top_prediction","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/knowledge_neurons_eval.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/knowledge_neurons_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0dfc30382839de07"}},{"code_sha256_prefix":"2093d119d8614bd2","entry":"get_top_predictions","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/progressive_prediction.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/progressive_prediction.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2093d119d8614bd2"}},{"code_sha256_prefix":"08066f90d15ddeb7","entry":"inject","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/injection_followup.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/injection_followup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"08066f90d15ddeb7"}},{"code_sha256_prefix":"57865bee29e44983","entry":"load_tokens","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/null_model_controls.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/null_model_controls.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"57865bee29e44983"}},{"code_sha256_prefix":"434268a1d7c50289","entry":"neuron_fires","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/transparent_model.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/transparent_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"434268a1d7c50289"}},{"code_sha256_prefix":"8b8986f15041b474","entry":"neuron_group_output","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/more_examples.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/more_examples.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8b8986f15041b474"}},{"code_sha256_prefix":"7bdf895e1e437aa8","entry":"neuron_group_output","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/progressive_prediction.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/progressive_prediction.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7bdf895e1e437aa8"}},{"code_sha256_prefix":"5374181db796fdd8","entry":"setup_model","repo":"pbalogh/transparent-gpt2","repo_kind":"found_in_text","path":"src/knowledge_neurons_eval.py","file_url":"https://github.com/pbalogh/transparent-gpt2/blob/HEAD/src/knowledge_neurons_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5374181db796fdd8"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}