Where Do LLMs Retrieve Network Information? Identifying the Responsible Heads and Neurons

Md Abdul Kadir, Md Mohasin Hossain, Omair Shahzad Bhatti, Abdulrahman Mohamed Selim, Daniel Sonntag
10/6/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) used for Web information processing rely on retrieving relationships between network entities, such as domain names and IP addresses, but the internal components that causally enable this retrieval remain unclear, hindering targeted safeguards against unsafe actions. Therefore, we investigate whether their retrieval capabilities can be localized to specific attention heads or individual neurons within these LLMs.

Show full abstract

Across five LLMs from three architecture families, we identify heads through causal ablation screening, test their selectivity against matched negative and context-free controls, rank neurons within these heads using causal ablation and correlational measures, and leverage features from both causally validated heads and individual neurons to build network information retrieval detectors, which we evaluate without retraining on an independent reverse-DNS dataset. In every model, a small set of causally validated heads (1--9 out of 128--1152 candidates) builds a detector with 99.5--100\% held-out accuracy. At the neuron level, the results are model-specific, e.g., in one model, causal and correlational rankings identify the same neuron, matching full-head performance (AUC = 1.000), while in another, the best causally ranked neuron achieves only AUC = 0.665 despite the full head reaching 1.000. On independent CAIDA data, head detectors maintain AUC $\geq 0.971$, while single-neuron detectors fall below chance in three of five models. Overall, these findings highlight the importance of choosing an appropriate level of granularity when causally localizing how LLMs retrieve structured network information from context.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kadir2026where,
  title  = {Where Do LLMs Retrieve Network Information? Identifying the Responsible Heads and Neurons},
  author = {Md Abdul Kadir and Md Mohasin Hossain and Omair Shahzad Bhatti and Abdulrahman Mohamed Selim and Daniel Sonntag},
  year   = {2026},
  eprint = {2610.08200},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.08200v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.08200.svg)](https://codeofpaper.com/paper/2610.08200)

Discussion