arXiv:2610.08200cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08200

Finding the Heads and the Neurons Responsible for Network Information Retrieval in Language Models

Abdul Kadir, Md Mohasin Hossain, Daniel Sonntag

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We ask whether specific attention heads, and more finely specific neurons inside those heads, are responsible for recognizing that a language model's context contains network infrastructure information (a hostname paired with its IP address), and whether that responsibility can be validated causally rather than by correlation alone. At the head level the answer is yes, across five models spanning three architecture families: in every model, a small set of heads (1 to 9 out of 128 to 1152 candidates), found by causal ablation screening and tested for selectivity against matched negative and context-free controls, supports a detector with 99.5–100% held-out accuracy. We then ask whether a head's responsibility concentrates into one neuron or stays spread across its dimensions; this is model-specific. In one model, the top head's signal concentrates into a single neuron, found independently by both a causal intervention and a correlational ranking, which agree exactly (AUC = 1.000, matching the full head). In another, the single clean head works as a whole (AUC = 1.000) but the best causally ranked neuron inside it does not (AUC = 0.665), so the responsibility there is spread across the head. The remaining three models fall in between. On an independent dataset collected by a different institution (reverse-DNS records rather than the discovery data), every model's full-head detector flags 100% of positive records; the single-neuron versions transfer less reliably, and in one model score below chance. Causal head-finding for a specific network-information entity works across models and architectures; how far that finding can be pushed down to individual neurons varies, and needs to be checked for each model.

1. Introduction

Interpretability work increasingly asks not only whether a model behaves correctly but which internal components are responsible for its behavior. For factual knowledge this has a standard form: knowledge neurons (Dai et al., 2022), causal tracing to feed-forward layers (Meng et al., 2022), and knowledge circuits of information heads, relation heads and MLPs (Yao et al., 2024) each localize a fact to specific components and validate the localization causally. We are not aware of an equivalent result for network/internet-infrastructure information, that is, a statement such as “these heads (and this neuron) are responsible for recognizing that this context contains an IP address record,” validated causally in the way the factual-recall literature validates the recall of an attribute given its subject.

We use a simple task with a known answer: given a context containing a domain and its IP address, retrieve one of the two fields. This lets us check every result against ground truth instead of inferring “network-relatedness” as a latent property. We use causal interventions to find the responsible heads and the neurons inside them, and report where the two levels of description agree and where they diverge, across five models.

Findings. (1) A small set of causally-validated, selectivity-confirmed heads exists in every model tested (Section 4.1), supporting a 99.5–100%-accurate detector on held-out data in all five. (2) Whether that head-level responsibility is reducible to one neuron is model-specific, not a fixed property of “how good the head is” (Section 4.2): one model’s top head concentrates cleanly into a single neuron that two independent methods agree on; another model’s equally effective head is spread across its full dimensionality. (3) The head-level result, not the neuron-level one, is the one that transfers to an independent, real-world dataset (Section 4.3). Figure 1 summarizes the pipeline.

References (26)