Probing Neural Topology of Large Language Models

Yu Zheng, Yuan Yuan, Yue Zhuo, Yong Li, Gabriel Kreiman +2 more
6/1/2025
cs.CLcs.AI

Official code: DavyMorgan/llm-graph-probing (12 stars, Apache-2.0, last commit 2026-02-27). 1 more implementation below.

Abstract

Probing large language models (LLMs) has yielded valuable insights into their internal mechanisms by linking neural activations to interpretable semantics. However, the complex mechanisms that link neuron's functional co-activation with the emergent model capabilities remains largely unknown, hindering a deeper understanding and safer development of LLMs. In this work, we introduce graph probing, a method for uncovering the functional connectivity of LLM neurons and relating it to language generation performance. By probing models across diverse LLM families and scales, we discover a universal predictability of language generation and understanding performance using only neural topology, which persists even when retaining just 1% of neuron connections. Strikingly, probing on topology outperforms probing on activation by up to 130.4% and 67.7% on perplexity and space/time semantic regression respectively, suggesting that neural topology contains orders of richer information of LLM performance than neural activation, which can be easily extracted with simple linear or MLP probes. To explain the dependence between neural topology and language performance, we identify default networks and hub neurons in LLMs and provide causal evidence by interventional experiments on multiple benchmarks, showing that LLMs actually exploit these topological information. Further analyses suggest that graph probing can be effectively leveraged to improve the efficiency and reliability of LLMs through proof-of-concept applications in model pruning and hallucination detection. Codes and data for the graph probing toolbox are available at https://github.com/DavyMorgan/llm-graph-probing.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

A toolbox for learning neural topology of LLMs

123PythonApr 30, 20257 months agoApache-2.0

Graph probing data generated by method from PROBING NEURAL TOPOLOGY OF LARGE LANGUAGE MODELS

00Jan 21, 20267 months ago

Similar Papers

Cite this paper

@article{zheng2025probing,
  title  = {Probing Neural Topology of Large Language Models},
  author = {Yu Zheng and Yuan Yuan and Yue Zhuo and Yong Li and Gabriel Kreiman and Tomaso Poggio and Paolo Santi},
  year   = {2025},
  eprint = {2506.01042},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.01042v3}
}

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/2506.01042.svg)](https://codeofpaper.com/paper/2506.01042)

Discussion