Weight-sparse transformers have interpretable circuits

Leo Gao, Achyuta Rajaram, Jacob Coxon, Soham V. Govande, Bowen Baker, Daniel P Mossing

Introduction

Finding human-understandable circuits in language models is a central goal of mechanistic interpretability. In standard dense models, neurons often engage in "superposition," where a single neuron represents multiple unrelated concepts, and concepts are smeared across many dimensions. This black-box nature makes it nearly impossible to isolate the specific subgraph of weights and neurons—the "circuit"—responsible for a particular behavior.

Researchers from OpenAI have demonstrated that training Transformers with extreme weight sparsity—where the vast majority of weights are exactly zero—results in models with highly interpretable internal circuits. By scaling these sparse models, they found that larger models improve the trade-off between capability and interpretability, producing task-specific circuits that are roughly 16 times smaller and significantly easier for humans to reverse-engineer than those in traditional dense models.

Methodology: Designing for Interpretability

Rather than attempting to find an interpretable basis after a model is trained (e.g., using Sparse Autoencoders), this research flips the script, asking: Can we train a model to be interpretable by design? The authors hypothesize that forcing weights to be sparse discourages superposition and forces the model to implement algorithms using discrete, human-understandable components.

The training regime focuses on unstructured weight sparsity:

  • $L_0$ Constraint: A strict limit is enforced on the number of non-zero weights. During training, a "Top-K" approach is used, zeroing out all but the largest magnitude weights in every matrix.
  • AbsTopK Activations: To further simplify the model, activation sparsity is enforced, ensuring only a fraction of neurons fire at any given time.
  • Structured Pruning: To find a circuit for a specific task, the authors developed a novel pruning algorithm that identifies the minimal subset of nodes (neurons, attention channels, etc.) required to maintain performance.
  • Bridges: To apply these insights to existing dense models, they trained "bridges"—linear maps that connect the activations of a dense model to a sparse, interpretable "twin" model.

Experimental Setup

The models were pretrained on a 35-billion-token dataset of Python code, comprising a 10B token subset of simple repetitive code and a 25B token subset of general Python code.

To evaluate the models, the authors created a suite of 20 handcrafted "unit tests" for model behavior. Examples include:

  • single_double_quote: Predicting the correct closing quote.
  • bracket_counting: Tracking nesting depth to close brackets correctly.
  • set_or_string: Identifying if a variable is a set or a string based on its initialization.

Key Findings

Sparsity as a Disentangler

By limiting each neuron to only a few connections, the model is physically prevented from distributing concepts across too many channels. This structural bottleneck forces the emergence of "monosemantic" neurons that represent single, clear concepts.

The Interpretability-Capability Frontier

There is a fundamental trade-off in this approach: more sparsity makes a model easier to understand but less capable (resulting in higher loss). Crucially, the authors found that scaling up the total number of parameters shifts this frontier, allowing for better performance at the same level of interpretability.

Algorithmic Clarity and Vulnerability Discovery

The circuits discovered in these sparse models are remarkably logical. For example, in the "bracket counting" task, the researchers identified a specific neuron that acts as an "open bracket detector," whose activation is averaged over the context to represent nesting depth. Because these circuits are understandable, the authors could predict and create adversarial examples. They found that long contexts "dilute" the mean activation of the nesting-depth neuron, causing the model to fail—a vulnerability that also exists in much larger, dense models.

16x Simpler Circuits

For a given level of performance, the task-specific circuits in weight-sparse models are approximately 16 times smaller (in terms of nodes and edges) than those in dense models. The authors validated these circuits using mean ablation, demonstrating both necessity and sufficiency: removing the tiny fraction of nodes in a discovered circuit destroys task performance, while removing everything except that circuit leaves performance nearly intact.

Steering Dense Models

Using their "bridge" method, the researchers successfully edited the behavior of a dense model by perturbing the corresponding interpretable node in the sparse model. For instance, they could "flip" a dense model's prediction from a double quote to a single quote by steering a single "quote type" channel.

Limitations and Future Work

While weight-sparse models offer unprecedented interpretability, they come with significant challenges:

  • Compute Inefficiency: Current GPU hardware is optimized for dense matrix multiplication. Consequently, these sparse models are 100–1000x less efficient to train and run than dense models of similar capability.
  • Scaling Limits: While progress was shown in models with tens of millions of parameters, scaling this approach to frontier models with billions of parameters remains a massive engineering and optimization challenge.
  • Residual Polysemanticity: Even with extreme sparsity, some neurons still represent multiple concepts, suggesting that weight sparsity alone may not completely eliminate superposition.

Looking forward, the authors aim to use these sparse "model organisms" to discover universal circuit motifs that might exist across all Transformers. This could pave the way for automated tools capable of interpreting much larger, dense models in the future.

Summary updated

BibTeX
@inproceedings{gao2026weight,
  author = {Leo Gao and Achyuta Rajaram and Jacob Coxon and Soham V. Govande and Bowen Baker and Daniel P Mossing},
  title = {{Weight-sparse transformers have interpretable circuits}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Vw10TpuFCp},
}
Figure