TRANSMISSION // 2611.38535v1
Mapping the hidden networks between AI attention heads
Source published
A connectomics framework maps how transformer attention heads may interact and co-activate. Tests recover some known organization, but the maps do not prove causal communication.

Can we describe how an AI model’s attention heads are organized before we know which behavior to investigate? A new framework borrows network-analysis methods from neuroscience to map potential pathways between heads and correlations in their activity. Its results suggest the maps capture meaningful structure, while leaving causal explanations for future testing.
Mechanistic interpretability often starts with a specific question: which parts of a language model help produce a particular behavior? Researchers then try to identify a small circuit of components involved. But what if the behavior is not known in advance? Daming Li and colleagues propose a broader first step: map the relationships among a model’s attention heads as a network.
Their framework, called transformer connectomics, adapts statistical tools used to study networks in neuroscience. The analogy is about methods, not biology: the authors do not claim that transformers work like brains. In the framework, each attention head is a node, and two kinds of connections describe different aspects of the model.
Structural connectivity (SC) is calculated from model weights. It estimates how strongly an earlier head’s output could align with the directions a later head reads through its query, key or value pathways. Functional connectivity (FC) instead measures how similarly heads are active across tokens during inference. The researchers calculate correlations between each head’s activity over a text corpus. They also use a version of FC that statistically removes some influence from the shared residual stream, a communication channel that all heads read from.
The team applies network analyses including community detection, which groups nodes with related connections, and permutation tests that compare observed patterns with shuffled alternatives. They assess the framework in three ways: whether it recovers a known architectural arrangement, whether it reflects a previously mapped circuit, and whether it distinguishes models with similar architectures.
In Llama 3.1 8B, the maps reflected grouped-query attention (GQA), an architectural design in which several query heads share key and value projections. Heads in the same group had stronger functional similarity than heads in different groups, and communities found from activity data tended to respect the GQA groups. This is a useful check, though some structural similarities are built into the shared weights by design.
In GPT-2 Small, the researchers compared activity-based communities with a published circuit for indirect-object identification, or IOI. The communities partially recovered the circuit’s class structure and aligned with its head labels more than in a random-weight control. “Partially” matters: the method did not independently establish that those heads cause the behavior. The published circuit’s roles were defined through causal experiments, whereas this framework’s FC measure is correlational.
Finally, the authors compared GPT-2 Small with Pythia-160M, models with similar layer and head dimensions. Their connectivity patterns differed, including in how structural and functional connectivity aligned across layers. This suggests the method can capture differences associated with learned weights, not just the broad shape of a model’s architecture. The comparison does not isolate which training difference produced which pattern; the models also differ in training data and procedures.
The main promise is as a hypothesis generator: a global map may help researchers decide which groups of heads to examine with more targeted experiments. But the maps are not explanations on their own. SC describes potential influence through weights, not whether a pathway is used for a particular input. FC captures correlation, which can reflect indirect effects or shared causes; adjusting for residual-stream magnitude does not make it causal. The current framework also omits feed-forward layers, which contribute to transformer computation, and the paper emphasizes validation of known structures rather than discovery of new circuits.
This work is presented as an arXiv preprint, so its claims should be treated as provisional rather than as settled scientific consensus. The paper describes its code and data as planned for release, and the source text available here does not establish independent replication. The next test is whether connectomics can help discover previously unknown structures—and whether intervention-based experiments confirm that those structures matter for model behavior.
- transformer interpretability
- attention heads
- neural networks
- connectomics
- language models
- AI research
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A tiny transformer’s algorithm, drawn in two dimensions
Source published
Shared keywords: neural networks, transformer interpretability
Mapping the visual reasoning skills inside AI models
Source published
Shared keywords: attention heads
Can an AI model tell when its own answer is wrong?
Source published
Shared keywords: transformer interpretability
An AI agent writes new skills into model weights
Source published
Shared keywords: language models, neural networks
Neural Collapse, Seen Through Unit Connections
Source published
Shared keywords: neural networks