Neural networks are more modular than single neurons suggest

Shreya Saha, Ben Bergen, Meenakshi KhoslaNeurIPS 2026

TL;DR

When we peer inside neural networks, individual neurons usually do five things at once, leading many to assume these models are hopelessly tangled spaghetti. This paper shows that if you stop looking at single neurons and simply rotate or linearly transform your perspective, crisp, independent functional modules suddenly snap into focus. Even better: you can cleanly lesion one capability without scratching another, and these hidden modules map remarkably well onto how the human brain organizes vision and language.

What Problem Does This Paper Address?

In neuroscience, the gold standard for proving two functions are separate is a double dissociation: damaging region A breaks function X while sparing Y, and damaging region B breaks Y while sparing X. When AI researchers look for this kind of neat modularity in artificial neural networks, they usually check individual neurons. Occasionally they find it, but in most modern architectures (like Transformers or tanh RNNs), neurons exhibit "mixed selectivity"—every neuron participates in multiple tasks.

The prevailing conclusion has been that these networks lack modular organization. The authors argue this conflates two very different things: that individual neurons aren't specialized, and that the computation itself isn't modular. What if the network's modules are completely separate, just rotated off the standard coordinate axes?

Methods

To test where modularity actually lives, the authors introduce a nested diagnostic hierarchy of linear transformations ($Q$) applied to a layer's hidden representation $h(x)$:

  1. Unit-level (Permutation): $Q$ just reorders neurons. Tests if functions already live on disjoint sets of neurons.
  2. Orthogonal: $Q$ is a rigid rotation ($Q^\top Q = I$). Tests if independent subspaces emerge when we rotate our coordinate system while preserving angles and distances.
  3. Linear (Invertible): $Q$ is a bounded invertible matrix, allowing non-orthogonal bases.
Figure 1: Illustration of functional modularity and our proposed decomposition framework. (A) In an entangled representation, individual dimensions participate in multiple functionalities, such that the representations of different functions overlap across dimensions. In an ideally modular representa- tion, each functionality occupies a distinct, non-overlapping set of dimensions, allowing the functions to be independently manipulated. (B) Our framework applies an information-preserving transforma- tion to an entangled representation to separate two target functionalities. Ideally, the transformed representation decomposes into three subspaces: two function-specific subspaces corresponding to the target functionalities being dissociated, and a residual subspace containing information associated with other, non-target functionalities.

Crucially, $Q$ splits the representation into three non-overlapping blocks: subspace $z_A$ (for function A), subspace $z_B$ (for function B), and a residual subspace $z_{\text{res}}$ to hold everything else so decomposition isn't confused with compression.

To find $Q$, they use two training setups:

  • Task-sufficiency (for RNNs): Jointly training $Q$ and linear readouts so $z_A$ alone can solve task A and $z_B$ alone can solve task B, then evaluating via causal ablation (zeroing out $z_A$, mapping back via $Q^{-1}$ at every timestep, and checking if task A fails while task B survives).
  • Contrastive minimal pairs (for pretrained Vision & Language models): Using standard contrastive losses where anchor inputs are paired with examples sharing only one property (e.g., same scene in a different artistic style, or a paraphrase with different grammar). Because gradients for each loss update disjoint columns of $Q$, separation is baked in. They evaluate these using nearest-neighbor retrieval selectivity.

Datasets

  • Cognitive Multitask RNNs: Synthetic cognitive task suites from Yang et al. (2019) (11 tasks, focusing on sensorimotor remapping Anti vs. perceptual decision-making DM1) and Mante et al. (2013).
  • Vision (Content vs. Style): Custom minimal-pair stylization test sets (where every image has 99 style-matched and 99 content-matched counterparts), plus Geirhos et al. (2018) cue-conflict and silhouette-edge stimuli.
  • Language (Syntax vs. Semantics): Trained on the Microsoft Research Paraphrase Corpus (MRPC) and evaluated on the Pereira dataset paired with syntactic/semantic counterparts.
  • Neuroscience (fMRI): Natural Scenes Dataset (NSD) for visual cortex and the Pereira dataset (with functional language localizers) for language cortex.

Key Insights and Ideas

  • "Un-modular" networks are modular in disguise: tanh RNNs famously lack neuron clusters and were thought to be non-modular. Yet under orthogonal and linear transformations, sharp double dissociations emerge—confirming that their functional machinery is cleanly separated, just tilted off the neuron axes.
  • Syntax and semantics separate cleanly in LLMs: Even though individual Transformer units mix grammar and meaning—and human fMRI voxels struggle to separate them—language models maintain distinct linear subspaces for syntax and semantics across all layers.
  • Brain alignment isn't monolithic: Instead of asking whether a whole model layer predicts brain scans, decomposing subspaces reveals what drives alignment. Content/semantic subspaces align with high-level visual and language cortices (even cross-modally!), whereas style subspaces map onto early visual cortex (V1/V2).

Key Results

  • Multitask RNNs: In tanh networks, unit-level ablation fails completely, yielding a Double Dissociation Index (DDI) of 0.00 (Sinkhorn permutation gets 0.08). Rotating the space recovers clear modularity: 0.37 DDI (orthogonal) and 0.47 DDI (invertible linear).
  • Vision (Swin-Base): Unit-level permutation yields near-chance retrieval selectivity ratios ($R_{\text{style}} = 1.10, R_{\text{content}} = 1.02$). Invertible linear transforms jump to $R_{\text{style}} = 16.08$ and $R_{\text{content}} = 5.26$, generalizing across ViTs, ConvNeXts, and VGGs (though ResNets struggled with linear style separation).
  • Language (Pythia 410M / GPT-2 XL): Top-1 syntactic selectivity ($S_1$) climbs from 0.33 (permutation) to 0.85 (orthogonal) and 0.94 (invertible), while semantic selectivity ($S_2$) rises from 0.16 to 0.66.
  • Brain Encoding: Style subspaces best predict early visual areas (V1, V2), while content subspaces predict higher object-recognition regions. Semantic subspaces beat syntactic ones in language cortex—though the intact, combined representation still predicts language cortex best overall.

Limitations and Future Work

  • Optimization sensitivity: Learning $Q$ requires non-convex optimization that is touchy about hyperparameters like learning rate, subspace dimensionality, and condition number bounds.
  • Correlation vs. causation in foundation models: While RNNs were tested with true causal ablations during inference, vision and language subspaces were only evaluated via nearest-neighbor retrieval. Next up is intervening on LLMs and vision models directly—e.g., projecting out the content subspace to see if object recognition drops while texture judgment stays intact.
  • The mystery of the residual: Appendix tests revealed $z_{\text{res}}$ isn't just leftover noise; it retains shared, redundant task-relevant information. Figuring out how this backup space is organized—and extending two-way splits into multi-way decompositions—remains wide open.

Summary updated

BibTeX
@inproceedings{saha2026neural,
  author = {Shreya Saha and Ben Bergen and Meenakshi Khosla},
  title = {{Neural networks are more modular than single neurons suggest}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4X3mMoAJwr},
}
Figure