Inferensys

Glossary

Superposition

A hypothesized phenomenon where a neural network represents more independent features than it has dimensions in a given layer, compressing sparse features into a lower-dimensional space.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
MECHANISTIC INTERPRETABILITY

What is Superposition?

Superposition is a hypothesized phenomenon where a neural network represents more independent features than it has dimensions in a given layer, compressing sparse features into a lower-dimensional space.

Superposition is the hypothesized mechanism by which a neural network layer represents more independent, sparse features than it has available neurons or dimensions. Instead of dedicating one neuron to one concept (monosemanticity), the model exploits the high-dimensional geometry of its activation space to pack features into nearly orthogonal directions, creating polysemantic neurons that fire for multiple unrelated inputs. This compression is only possible when features are sparse—meaning any given input activates only a tiny fraction of all possible features.

This phenomenon was identified as a core obstacle to mechanistic interpretability because it breaks the assumption that individual neurons correspond to single, human-understandable concepts. Superposition explains why dictionary learning and sparse autoencoders are necessary to disentangle a model's internal representations into a higher-dimensional, monosemantic feature basis. The model learns to leverage the Johnson-Lindenstrauss lemma property, where random projections can approximately preserve distances between sparse vectors, allowing it to simulate a much wider feature space within a constrained residual stream.

COMPRESSED REPRESENTATIONS

Core Characteristics of Superposition

Superposition is a hypothesized phenomenon where neural networks represent more independent features than they have dimensions, exploiting sparsity to compress information into a lower-dimensional space.

01

Dimensional Compression

The fundamental mechanism where a model layer with n neurons can represent m > n independent features. This is possible because features in natural data are sparse—only a small fraction are active at any given time. The network leverages this sparsity to pack features into a compressed representation, analogous to how compressed sensing in signal processing reconstructs signals from fewer samples than Nyquist-Shannon requires. This compression is not lossless; interference between non-orthogonal features creates the polysemanticity observed in individual neurons.

02

Sparsity as an Enabler

Superposition is only computationally viable when features exhibit high sparsity. If most features were active simultaneously, the compressed representation would suffer catastrophic interference. Key properties of sparsity in this context:

  • Feature sparsity: The probability that any given feature is active on a random input is low (often < 1%)
  • Dimensionality expansion: A layer with 512 neurons might represent 100,000+ sparse features
  • Interference floor: As more features are packed in, the noise floor rises, eventually degrading model performance
  • Sparsity penalty: Models appear to learn a trade-off between representing more features and maintaining feature purity
03

Polysemanticity as Evidence

The strongest empirical evidence for superposition comes from polysemantic neurons—individual neurons that activate for multiple unrelated concepts. For example, a single neuron in a vision model might fire for both cat faces and car fronts. Under the superposition hypothesis, this neuron participates in multiple almost-orthogonal feature directions in activation space. The neuron's activation is the projection of the input onto its learned direction, and when features are packed, each direction must serve multiple masters. This explains why monosemanticity is rare in dense models without explicit disentanglement pressure.

04

Mathematical Formalization

Superposition can be formalized using the sparse coding framework. Given a dictionary of features W (a matrix of feature directions) and a sparse activation vector h, the model's representation is x = Wh. When the number of features exceeds the dimensionality of x, the dictionary is overcomplete. The model learns to recover h from x by exploiting the fact that h is sparse. Key mathematical properties:

  • Mutual coherence: The maximum absolute inner product between distinct feature directions; lower coherence enables cleaner recovery
  • Restricted isometry property: A condition ensuring that sparse vectors can be uniquely recovered from compressed measurements
  • L1 minimization: The optimization objective that promotes sparsity in the recovered feature activations
05

Toy Models of Superposition

Researchers at Anthropic demonstrated superposition in controlled toy models—small ReLU networks trained on synthetic data with known ground-truth features. Key findings from these experiments:

  • Superposition emerges naturally when features are sparse and the model benefits from representing more features than dimensions
  • The model learns to pack features into antipodal pairs (opposing directions) and geometric structures like regular polytopes
  • Feature importance drives allocation: more important features get more orthogonal, higher-magnitude directions
  • The transition from monosemantic to polysemantic representations occurs as a phase change when the feature-to-dimension ratio crosses a critical threshold
  • These toy models provide a tractable sandbox for developing dictionary learning and sparse autoencoder techniques later applied to production models
06

Implications for Interpretability

Superposition is the central obstacle that mechanistic interpretability must overcome. If features are not aligned with individual neurons, then simply reading neuron activations is misleading. This has driven the development of:

  • Sparse autoencoders: Trained to decompose dense activations into a higher-dimensional, sparse set of interpretable features
  • Dictionary learning: Unsupervised discovery of the overcomplete basis of features actually used by the model
  • Causal interventions: Techniques like activation patching that test whether a direction causally mediates a behavior, even when it's distributed across neurons
  • Linear representation hypothesis: The conjecture that features are linear directions, making them recoverable through linear methods despite superposition Understanding superposition is prerequisite to any serious attempt at reverse engineering neural networks.
SUPERPOSITION EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the superposition hypothesis in neural networks, designed for engineers and researchers seeking to understand how models compress sparse features into lower-dimensional spaces.

Superposition is a hypothesized phenomenon where a neural network represents more independent features than it has dimensions in a given layer's activation space. Instead of dedicating one neuron to one concept (monosemanticity), the model compresses multiple sparse, unrelated features into a lower-dimensional representation by exploiting the fact that these features rarely co-occur in the training data. This allows the network to simulate a much larger effective feature space, trading off representational capacity against interference. The concept was formalized by researchers at Anthropic in their work on toy models, demonstrating that models prefer superposition when features are sparse and the model benefits from representing more features than available dimensions. It is a fundamental challenge for mechanistic interpretability, as it explains why individual neurons often appear polysemantic—responding to multiple, seemingly unrelated inputs—rather than cleanly mapping to single concepts.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.