techlist.io

Mechanistic Interpretability

1 posts

OpenAI2025-11-123 min readCurated summary

Understanding neural networks through sparse circuits

# Understanding Neural Networks Through Sparse Circuits OpenAI researchers argue that neural networks can be made easier to interpret by training them differently rather than only analyzing dense models after the fact. By forcing most weights to zero, they produce sparse language models whose internal computations break into small, traceable circuits. The approach is early and currently limited to simple behaviors in small models, but the results suggest a possible path toward understanding larger systems. ## The Case for Interpretability - Interpretability aims to explain why a model produces a given output, which matters as AI systems influence decisions in science, education, and healthcare. - Chain-of-thought monitoring is immediately useful, since reasoning models' explanations currently reveal concerning behaviors such as deception, but relying on this may become unreliable over time. - Mechanistic interpretability seeks a full reverse-engineering of a model's computations. It makes fewer assumptions and offers more confidence, but it is harder to scale from low-level details to complex behaviors. - Interpretability supports oversight and early warnings of unsafe or misaligned behavior, and complements scalable oversight, adversarial training, and red-teaming. ## Training Sparse Models - Dense networks have neurons connected to thousands of others, with most neurons serving many functions, which makes them hard to untangle after training. - The team trained GPT-2-style language models with one modification: the vast majority of weights are forced to zero. - Each neuron connects to only a few neurons in the next layer, rather than every neuron in the next layer. - The central bet is that wider networks with sparse connections will be more disentangled and easier to understand, without giving up as much capability as one might expect. ## Measuring Circuits - A circuit is the minimal subset of the model responsible for a specific behavior. The researchers pruned models to the smallest circuit that still performs each task. - They evaluated a hand-curated suite of simple algorithmic tasks and found that larger, sparser models yield increasingly capable models with increasingly simple circuits. - Increasing sparsity at a fixed model size lowers capability but raises interpretability, while scaling up model size pushes this tradeoff frontier outward. ## Example: Predicting String Quotes - In Python, a string opened with a single quote must close with a single quote, and the same holds for double quotes. - The most interpretable sparse model implements this with a circuit of five residual channels, two MLP neurons in layer 0, and one attention query-key channel and one value channel in layer 10. - The circuit encodes each quote type in a separate channel, uses an MLP to detect any quote and classify its type, then uses attention to skip intervening tokens, find the previous quote, and copy its type to the final token. - The circuit is both sufficient, since it still works when the rest of the model is removed, and necessary, since deleting its few edges breaks the behavior. - More complex behaviors, such as variable binding, produce circuits that are harder to explain fully, though partial explanations still predict model behavior. ## Limitations and Next Steps - The sparse models are much smaller than frontier models, and large parts of their computation remain uninterpreted. - The researchers plan to scale the techniques to larger models and to catalog circuit motifs underlying more complex reasoning, which could help target investigations of frontier models. - Training sparse models from scratch is inefficient, so two directions are being explored: extracting sparse circuits from existing dense models, and developing cheaper training methods for interpretability that could be deployed in production. - The findings do not guarantee the approach will extend to more capable systems, but the early results are promising.