arXiv:2611.23112cs.LGNov 2026

Manuscript Offprint

arXiv:2611.23112

Large-scale Neuron Community Discovery Reveals Neuron-Sparse Behaviors in Language Models

Igor Shilov, Thomas Fel, Tal Haklay, Lucius Bushnaq, Owen Lewis

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

Abstract

What reusable units of computation can we discover within a language model’s neurons? Prior work has shown that individual forward passes can often be sparsified post-hoc to small groups of neurons, but it has been unclear whether these groups form coherent computational entities reused across inputs. We introduce neuron community discovery, an unsupervised method for finding neuron groups that recur across prompts and are causally necessary and sufficient, within the layers they span, for common computations. The method combines gradient-based attribution, a graph connecting neurons that are repeatedly attributed together, and community detection. Applied to Llama-3.1-8B using ten million prompts, it discovers thousands of candidate communities. We evaluate them on held-out prompts through three causal tests: community necessity, sufficiency within a layer subset, and layer necessity. These tests identify groups whose removal disrupts predictions and whose retention preserves predictions despite ablating the remaining MLP neurons in the tested layers. Discovered communities support functions like grammatical agreement, token-probability calibration, fixed phrases, in-context copying, addition, and multiplication. With communities capped at 128 neurons across all layers, 10.3% of held-out prompts have at least one layer’s contribution explained on a neuron-sparse basis. Coverage remains 8.7% when requiring at least four layers and 3.3% when requiring at least twelve. These results show that small groups of existing neurons can provide reusable computational components across prompts, and that such groups can be discovered at scale.

github.com/goodfire-ai/neuron-communities

goodfire.com/demos/neuron-communities

\MTgreekfont

NotoSans-TLF \MTDeclareVersionfigurecaptionT1\cabinfamilymn \affiliations1Goodfire 2Imperial College London

\maketitlebox

1 Introduction

Figure

Figure 1: Discovering and testing neuron communities. A: We compute per-prompt neuron attributions, then construct a co-occurrence graph, and run the Leiden community detection algorithm. B: We test community necessity and sufficiency (within a subset of layers) for predictions on held-out prompts.

What are the basic units of computation in a language model? We would like to identify components of the model that consistently implement a certain function across different prompts. Ideally, this decomposition would reflect the model’s natural taxonomy of computations, and the building blocks would encode recurring patterns of model use. Existing techniques in interpretability make progress on parts of this goal. Sparse autoencoders (SAEs) learn a dictionary of reusable atoms directly from a heterogeneous corpus, but their training objective is to reconstruct a model’s activations rather than to capture its computation. Per-layer transcoders approximate MLP computation within a single layer.

Attribution graphs built from cross-layer transcoder features trace computation across layers (Ameisen et al., 2025; Lindsey et al., 2025). Neuron-based circuits also show promise: Arora et al. (2026) show that neuron-based circuits can be as sparse and faithful as circuits built from sparse-autoencoder features on subject–verb agreement, and recover neuron groups involved in intermediate steps of multi-hop reasoning. Feucht et al. (2026) identify 28 neurons in layer 18 of Llama-3.1-8B that implement a base-10 addition mechanism reused across arithmetic tasks. Still, these analyses typically use small sets of human-selected prompts, implicitly assuming that the model’s computations follow human task categories.

We reverse this approach: across millions of diverse prompts, we identify neuron groups repeatedly recruited together, then ask what computations they perform. This lets us discover recurring computational units without specifying their functions in advance. We introduce neuron community discovery to make this search scalable. We use gradient-based attribution to identify influential neurons in Llama-3.1-8B across ten million prompts from FineWeb-Edu, Wikipedia, and FineMath. We connect neurons repeatedly attributed together in a graph and use Leiden community detection at multiple resolution thresholds to find candidate communities (Figure 1). We evaluate these communities through causal interventions on held-out prompts. A community is necessary when ablating its neurons substantially changes the next-token distribution. It is sufficient when retaining its neurons, while ablating the other MLP neurons in the same set of layers, largely preserves the distribution.

As an example, one of the discovered communities is responsible for an + vowel agreement: six neurons across six layers promote words starting with a vowel after the article an. Removing these neurons substantially changes predictions on randomly sampled an-article prompts, with a median KL divergence of 4.99. Retaining these six neurons and four “always on” neurons while removing the remaining MLP computation in those six layers largely preserves the prediction, with a median KL divergence of 0.053. This illustrates how a small neuron group distributed across several layers can be necessary and sufficient for a common linguistic behavior.

Our method discovers thousands of other communities with similar properties, supporting grammatical agreement, morphology, common expressions, formatting, in-context copying, and numerical operations. To measure how broadly these sparse explanations apply, we count unique held-out prompts for which at least one community passes causal tests. Pooling communities across six resolution thresholds covers 10.3% of prompts within at least one layer. Coverage remains 8.7% when we require at least four layers and 3.3% when we require at least twelve, using communities of at most 128 neurons. The most common behaviors are grammatical and token-level, such as calibrating token probabilities or completing fixed phrases. Other communities support more complex behaviors, including in-context copying, addition, and multiplication.

These communities form a useful dictionary of reusable neuron groups, covering a substantial fraction of prompts. Many prompts remain unexplained, potentially reflecting computations that are not neuron-sparse as well as limitations of discovery.