Superposition and Polysemanticity in Neural Networks: How High-Dimensional Geometry and Sparsity Allow LLMs to Store More Features Than Dimensions

Superposition and Polysemanticity in Neural Networks: How High-Dimensional Geometry and Sparsity Allow LLMs to Store More Features Than Dimensions In neural network interpretability, one of the most persistent puzzles has been the phenomenon of polysemantic neurons: individual neurons in large language models that activate for seemingly unrelated concepts. A single hidden unit in an MLP layer might fire in response to Python syntax errors, academic citations, and geographic place names. For ye

7 min
Superposition and Polysemanticity in Neural Networks: How High-Dimensional Geometry and Sparsity Allow LLMs to Store More Features Than Dimensions

Superposition and Polysemanticity in Neural Networks: How High-Dimensional Geometry and Sparsity Allow LLMs to Store More Features Than Dimensions

In neural network interpretability, one of the most persistent puzzles has been the phenomenon of polysemantic neurons: individual neurons in large language models that activate for seemingly unrelated concepts. A single hidden unit in an MLP layer might fire in response to Python syntax errors, academic citations, and geographic place names.

For years, researchers debated whether polysemanticity was an artifact of imperfect optimization, poor regularization, or noisy training data. In 2022, researchers at Anthropic formalized the mathematical framework of Toy Models of Superposition, demonstrating that polysemanticity is neither a bug nor an accident. Instead, it is the mathematically optimal compression strategy for neural networks operating under finite dimensional constraints.

Superposition describes a fundamental geometric phenomenon: high-dimensional neural networks represent more independent features than they have dimensions by packing non-orthogonal feature vectors into shared activation spaces, relying on natural data sparsity and non-linear filtering to eliminate cross-feature interference.


The Capacity Dilemma and the Linear Representation Hypothesis

To understand superposition, one must first examine how neural networks represent information. Under the Linear Representation Hypothesis, concepts, properties, and computational variables (collectively termed "features") are represented as 1D direction vectors within the network's activation vector spaces Rd\mathbb{R}^d.

When a particular feature ii is present in the input with magnitude xi0x_i \ge 0, its contribution to the hidden state is given by the vector xivix_i v_i, where viRdv_i \in \mathbb{R}^d is a unit vector (vi=1\|v_i\| = 1) representing that feature's direction.

This framing immediately exposes a severe linear algebra bottleneck:

  • In a vector space of dimension dd (for example, d=4096d = 4096 in typical 7B-parameter models or d=8192d = 8192 in larger foundation models), there can be at most dd mutually orthogonal vectors.
  • If every distinct feature required its own orthogonal dimension to avoid interfering with other features, a model with d=4096d = 4096 could represent at most 4,096 distinct concepts across its entire forward pass.
  • Real-world language modeling requires tracking millions of distinct linguistic patterns, grammatical rules, entities, historical facts, reasoning heuristics, and stylistic markers (ndn \gg d).

If neural networks were restricted to 1 feature per dimension, large language models could not function at their observed capability levels. Superposition resolves this capacity bottleneck.


High-Dimensional Geometry: Almost-Orthogonal Vector Packing

The geometric foundation that enables superposition is the unique property of high-dimensional vector spaces. In low-dimensional Euclidean spaces, our geometric intuition fails:

  • In 2D space (d=2d = 2), exactly two vectors can be orthogonal (9090^\circ apart). If we allow an error margin ϵ=0.1\epsilon = 0.1 such that vi,vj0.1|\langle v_i, v_j \rangle| \le 0.1, we can still only fit a handful of vectors.
  • In 3D space (d=3d = 3), exactly three mutually orthogonal vectors exist.

However, as the dimension dd scales to hundreds or thousands, the surface area and volume of a unit hypersphere Sd1S^{d-1} concentrate sharply around the equator relative to any chosen pole. As established by the Johnson-Lindenstrauss lemma and mathematical bounds on spherical codes (such as the Welch bound and frame potential theory), the number of unit vectors nn that can be packed such that all pairwise inner products satisfy vi,vjϵ|\langle v_i, v_j \rangle| \le \epsilon grows exponentially with the dimension dd.

Geometric comparison of orthogonal representation versus overcomplete almost-orthogonal superposition in activation space

In d=4096d = 4096 dimensions, an activation space can comfortably accommodate tens or hundreds of thousands of unit vectors whose pairwise inner products remain exceptionally small (e.g., vi,vj<0.05|\langle v_i, v_j \rangle| < 0.05). While these vectors are not strictly orthogonal, they are almost orthogonal.


Feature Sparsity: The Mathematical Engine of Superposition

Almost-orthogonal packing allows storing ndn \gg d features, but reading them out presents a challenge: cross-talk interference.

Consider a simple linear autoencoder model with an nn-dimensional sparse feature vector xRnx \in \mathbb{R}^n, an activation bottleneck of dimension dd (d<nd < n), an encoding matrix WRd×nW \in \mathbb{R}^{d \times n}, and an activation state hRdh \in \mathbb{R}^d:

h=Wx=i=1nxivih = W x = \sum_{i=1}^n x_i v_i

where each column vi=W:,iv_i = W_{:, i} is the unit-norm direction vector for feature ii.

When the network attempts to read out the value of feature ii using a linear projection viThv_i^T h, the resulting signal is:

x^i=viTh=viT(xivi+jixjvj)=xivi2+jivi,vjxj\hat{x}_i = v_i^T h = v_i^T \left( x_i v_i + \sum_{j \neq i} x_j v_j \right) = x_i \|v_i\|^2 + \sum_{j \neq i} \langle v_i, v_j \rangle x_j

Because vi=1\|v_i\| = 1, this simplifies to:

x^i=xi+jivi,vjxjIi (Interference)\hat{x}_i = x_i + \underbrace{\sum_{j \neq i} \langle v_i, v_j \rangle x_j}_{I_i \text{ (Interference)}}

The readout consists of the true feature activation xix_i plus an interference noise term IiI_i.

How Sparsity Suppresses Interference

Why does the interference term IiI_i not destroy the model's representations? The answer lies in feature sparsity.

In natural text, features are sparse: on any single token or prompt, only a tiny fraction of all known concepts are active (P(xj0)=p1P(x_j \neq 0) = p \ll 1).

  1. Zero-Mean Small Variance: When pp is small (e.g., p=0.001p = 0.001), almost all xj=0x_j = 0. The sum jivi,vjxj\sum_{j \neq i} \langle v_i, v_j \rangle x_j contains very few non-zero terms.
  2. Non-Linear Noise Gate: Because features are typically non-negative (xi0x_i \ge 0), the network can apply a learned negative bias bi<0b_i < 0 and a ReLU activation function:

x^i=ReLU(viTh+bi)=ReLU(xi+Ii+bi)\hat{x}_i = \text{ReLU}\left( v_i^T h + b_i \right) = \text{ReLU}\left( x_i + I_i + b_i \right)

When feature ii is inactive (xi=0x_i = 0), the small background interference IiI_i is offset by the negative bias (Ii+bi<0I_i + b_i < 0), causing the ReLU to output exactly zero. When feature ii is active (xi0x_i \gg 0), the true signal dominates the threshold, recovering xix_i with minimal distortion.

Thus, high sparsity (p1p \ll 1) combined with non-linear activation functions enables the network to pack vast numbers of features into a compressed subspace with negligible reconstruction loss.


Phase Transitions and Geometric Motifs

In their 2022 empirical and theoretical investigations, Elhage et al. trained small ReLU networks on synthetic sparse data across varying dimensions, feature counts, and sparsity levels. They discovered distinct geometric phase transitions:

1. The Orthogonal Regime (Dense Features)

When features are dense (probability of activation p1p \to 1), the expected squared interference E[Ii2]\mathbb{E}[I_i^2] is severe. The network refuses to use superposition. It allocates exactly one orthogonal basis dimension to each of the dd most important features and completely ignores the remaining ndn - d features.

2. Antipodal Pairs

When features are moderately sparse and non-negative, the network discovers a geometric trick: two independent features f1f_1 and f2f_2 can share a single 1D subspace by pointing in opposite directions (v1=v2v_1 = -v_2).

  • A positive activation along that axis represents f1f_1: ReLU(h)=f1\text{ReLU}(h) = f_1.
  • A negative activation along that axis represents f2f_2: ReLU(h)=f2\text{ReLU}(-h) = f_2.

As long as f1f_1 and f2f_2 are rarely active at the exact same time, two features occupy 1 dimension with zero interference.

3. Regular Polyhedral Superposition

As sparsity increases further (p0.05p \le 0.05), features arrange themselves into highly symmetric non-orthogonal polytopes:

  • In 2D: 5 features self-organize into the vertices of a regular pentagon.
  • In 3D: Features form regular octahedra (6 features in 3D) or icosahedra (12 features in 3D).
  • In High Dimensions: Features form higher-dimensional cross-polytopes, simplex constellations, and spherical codes, maximizing the minimum angle between any two feature vectors.

4. Importance-Driven Geometry

When features have unequal importance weights IiI_i, the network builds a hybrid architecture:

  • High-importance, frequently firing features receive dedicated orthogonal dimensions.
  • Low-importance, ultra-sparse features are packed into dense multi-feature superposition clusters.

Polysemanticity and the Privileged Basis

Superposition directly explains why individual neurons in large language models are polysemantic.

The distinction depends on whether an activation space has a privileged basis:

| Vector Space | Privileged Basis? | Geometric Behavior | | :--- | :--- | :--- | | Residual Stream | No | Rotation-invariant linear space. Features can point in arbitrary directions without aligning to specific coordinate axes. | | Attention Query/Key/Value | No | Rotatable subspace projections governed by head dimensions. | | MLP Intermediate Layer | Yes | Element-wise non-linearities (ReLU, GeLU, SwiGLU) establish a fixed coordinate basis tied to individual neurons. |

In the MLP intermediate layer, activations are computed as a=σ(Winx+b)a = \sigma(W_{\text{in}} x + b), where σ\sigma is an element-wise activation function. Because σ\sigma operates independently on each coordinate, the basis of individual neurons is privileged.

When nn sparse features exist in superposition across an MLP layer of width dmlpd_{\text{mlp}}, each neuron kk corresponds to a standard basis vector eke_k. The activation of neuron kk is given by:

ak=σ(i=1nWk,ixi+bk)a_k = \sigma\left( \sum_{i=1}^n W_{k, i} x_i + b_k \right)

Because the weight matrix WW projects multiple non-orthogonal feature vectors across the neuron coordinates, the row Wk,:W_{k, :} has non-zero overlaps with many distinct features ii.

Consequently, neuron kk will fire whenever Feature A is present, OR whenever Feature B is present, OR whenever Feature C is present. To an outside observer inspecting single neurons, neuron kk appears polysemantic and incomprehensible. In reality, the neuron is merely an arbitrary 1D coordinate projection slicing through a multi-feature superposition polytope.


Implications for AI Safety and Mechanistic Interpretability

The realization that neurons are not the fundamental units of neural computation fundamentally altered AI interpretability research:

  1. The Failure of Single-Neuron Ablation: Early interpretability attempts tried to label neurons individually. Because neurons are polysemantic mixtures of superposed features, single-neuron inspection and ablation inevitably cause collateral damage to multiple unrelated capabilities.
  2. Dictionary Learning via Sparse Autoencoders (SAEs): Because features exist as directions rather than individual neurons, researchers at Anthropic (Bricken et al., 2023; Templeton et al., 2024) developed overcomplete Sparse Autoencoders. By training an SAE with an expansion factor of 8x to 64x and an L1 or TopK sparsity penalty, the autoencoder learns to disentangle the superposed activation space back into monosemantic feature directions.
  3. Computation in Superposition: Neural networks do not merely store features in superposition; they perform linear transformations, attention routing, and logical operations directly on superposed representations before unpacking them at downstream layers.
  4. Attention Superposition: Beyond MLP layers, attention mechanisms pack relational and syntactic queries into superposed subspaces within multi-head attention projections, enabling heads to track multiple distinct semantic relations simultaneously.

Sources

Written by

More to read

  • Representation Degeneration and Anisotropy in Large Language Models: Why Embeddings Collapse into Narrow Cones

    In neural language modeling, high-dimensional vector spaces are expected to distribute token and sequence representations uniformly across their ambient dimensions. A space that utilizes all available geometric directions provides maximal representational capacity, allowing subtle semantic and syntactic differences between tokens to be resolved cleanly. Empirical analysis across architectures from BERT and GPT-2 to modern frontier foundation models reveals the opposite behavior: learned token a

    1 min
  • Circuit Breakers and Graceful Degradation in Production AI Systems: Architecture, Failure State Machines, Fallback Cascades, and Dead-Letter Queues

    Circuit Breakers and Graceful Degradation in Production AI Systems: Architecture, Failure State Machines, Fallback Cascades, and Dead-Letter Queues Running LLM inference and multi-agent workflows in production introduces failure dynamics distinct from traditional microservice architectures. While standard REST APIs typically fail with deterministic status codes and predictable latency profiles, generative AI applications face multi-dimensional failure vectors: provider outages, regional rate li

    1 min
  • OpenAI VP of Americas Sales Kaylin Voss Resigns Following CRO Denise Dresser Exit

    OpenAI Vice President of Americas Sales Kaylin Voss has resigned from the company, according to reporting by The Information. The departure comes one week after the exit of Chief Revenue Officer Denise Dresser, signaling continued turnover across the company's enterprise go-to-market leadership. Voss had overseen commercial sales operations in the Americas after joining OpenAI following previous sales leadership roles at Salesforce and Slack. Leadership Changes Across Enterprise GTM The depa

    1 min