Abstract
Traditional mechanistic interpretability focuses on neural activations to understand Large Language Models (LLMs). This work introduces graph probing, a method that instead analyzes the functional connectivity—how neurons co-activate over time. By constructing dynamic neural graphs from temporal correlations, the authors demonstrate that this topological information is a far superior predictor of model performance and internal states than individual activations. The findings reveal that LLMs possess brain-like "hub neurons" and a "default network" that are critical for their language generation capabilities.
Introduction
The field of mechanistic interpretability has largely focused on identifying individual neurons or directions that represent specific features. However, inspired by neuroscience, where "functional connectivity" is central to understanding intelligence, this paper explores whether the dynamic interactions between neurons in LLMs hold deeper insights. The researchers propose that the way neurons fire together (topology) is more informative than how much they fire (activation magnitude).
Methodology: Graph Probing
The core of this research is the Graph Probing framework. Unlike standard probing, which uses a snapshot of activations, graph probing captures the temporal dynamics of a model's internal state during inference.
The process involves three main steps:
- Time Series Extraction: Hidden states for each neuron are recorded as the LLM processes a sequence of tokens.
- Graph Construction: A "neural graph" is built by calculating the Pearson correlation coefficient between the time series of every pair of neurons. This adjacency matrix represents the functional topology of the network for a given input.
- Probe Training: Simple probes (Linear, MLP, or GNN) are trained on these topological graphs to predict macro-level metrics such as perplexity or semantic accuracy.
Key Insights
Structure Over Magnitude
The most significant finding is that the functional topology of an LLM contains much richer information than activation magnitudes. Graph probes consistently outperform activation probes, suggesting that the model's "reasoning" is encoded in its connectivity patterns rather than just the strength of individual signals.
The "Default Network" and Hub Neurons
The study identifies a stable set of "hub neurons" that maintain high connectivity across diverse inputs, forming what the authors call a "default network." These hubs are topologically central and critical to the model's overall performance. Disabling these hubs causes a much more significant drop in performance than disabling highly activated neurons.
Functional Specialization
Neural topology is not static; it reorganizes based on the subject matter. For instance, the network exhibits distinct wiring patterns when processing STEM topics compared to social sciences, allowing for the identification of specialized "STEM neurons."
Experimental Results
The researchers evaluated graph probing across several architectures, including GPT-2, Pythia, and Qwen2.5, demonstrating its robustness and predictive power.
Performance Prediction
Graph probing improved the $R^2$ for predicting perplexity by up to 130.4% compared to activation-based methods. As shown in the results, the predictive signal is remarkably resilient to pruning; even at 99% sparsity, the topological graph retains most of its predictive power. Furthermore, the performance of graph probes remains consistently high across different model sizes and depths.
Causal Importance and Hallucination Detection
Causal interventions confirmed the importance of topological hubs: disabling the top 1% of neurons by degree led to a catastrophic 69.8% drop in MMLU accuracy for Qwen2.5-14B. Additionally, graph probes detected hallucinations on TruthfulQA with nearly 10% higher accuracy than activation baselines, proving that distinct topological patterns emerge when a model generates incorrect information.
Conclusion
Graph probing shifts the focus of interpretability from "what is active" to "how is it connected." By revealing the functional topology of LLMs, this work provides a more robust way to predict performance, detect hallucinations, and understand the internal organization of these models. Future work will look into scaling these techniques to even larger models and exploring the emergence of these structures during training.
Summary updated