Large-scale Neuron Community Discovery Reveals Neuron-Sparse Behaviors in Language Models
Igor Shilov, Thomas Fel, Tal Haklay, Lucius Bushnaq, Owen Lewis
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.
Create a lesson
Related papers
Power Setpoint Tracking for Large-Scale EV Charging: Transformer-Constrained Charging Policy Learning with Self-Tuning Constraint Prices
Shared title terminology · Daniyal Sajedi-Hosseini, Yoshihiko Fujisawa, Shubham Singh et al.
Intelligent Embedding Pruning for Large-Scale Recommendation Models
Shared title terminology · Anish Khazane, Alex Saad-Falcon, Guanchu Wu et al.
TabBioMed: A Large-Scale Benchmark for Biomedical Tabular Learning
Shared title terminology · Pau Mateo-Bernadó, Saivenkata Nagavyjayanthi Polapragada, David Bonet et al.
Reliable Behavior Discovery via False Discovery Rate Control
Shared title terminology · David Madras, Zi Wang, Marco Andreetto et al.
OceanCoder: A Verification-Guided Large Language Model for Automated Simulation Modelling in Ocean Engineering
Shared title terminology · Can Xue, Changhong He, Ziyi Sun et al.
Auditing black-box clinical prediction models with a large language model through queries alone: a blinded test with planted flaws
Shared title terminology · Zhiyu Liu, Xinyu Yang