Circuit in a neural network
In interpretability research, a circuit is a small part of a neural network, a set of features and the connections between them, that carries out one identifiable piece of the model's computation.
A trained neural network is a huge web of numbers, and nobody wrote down what each part does. Circuits research tries to read it anyway, by finding small subnetworks that carry out a specific, understandable job. A circuit is a group of features, meaning patterns the network detects, together with the weighted connections that combine them into something new. Researchers borrow the word from electronics: the goal is to reverse-engineer a network as one might trace the wiring of an unknown device.
The approach was laid out in Zoom In: An Introduction to Circuits, by Chris Olah and colleagues at OpenAI, published on Distill in March 2020. It made three claims, offered as working hypotheses: features are the basic units of neural networks; features are connected by weights to form circuits; and similar features and circuits form across different models and tasks. Its examples came from image-recognition networks, such as separate detectors for dog heads facing left and dog heads facing right.
The method moved to language models in December 2021, when Anthropic researchers published A Mathematical Framework for Transformer Circuits. Studying tiny transformers with one or two attention layers, they described how attention heads pass information through a shared channel and found induction heads, a two-step mechanism for copying patterns that appears only once a model has at least two attention layers. In November 2022 Kevin Wang and colleagues mapped a circuit of 26 attention heads in GPT-2 small that works out the indirect object in sentences such as "When Mary and John went to the store, John gave a drink to", which should end with Mary.
The hard part has been scale. Individual neurons in large models often respond to several unrelated things at once, which makes clean circuits hard to see. Newer tools such as sparse autoencoders and the attribution graphs Anthropic introduced in 2025 try to find cleaner features first and then trace the circuits between them in production-scale models.
The practical case for circuits is verification. If researchers can show the mechanism behind a behaviour, they can check whether a model is doing what it appears to be doing, rather than relying on its outputs or its own account of itself.
It is a subnetwork of a model, made of features and the weighted connections between them, that performs an identifiable piece of computation. Finding circuits is a central goal of mechanistic interpretability, which tries to explain models in terms of the algorithms they implement. A well-known example is the indirect object identification circuit in GPT-2 small, mapped in 2022. It uses 26 attention heads in seven groups to complete sentences such as one where John gives something to Mary, by tracking which name has not been repeated. Induction heads, which continue repeated patterns, are another. Large models have billions of parameters, and single neurons often respond to several unrelated concepts at once. That makes it hard to isolate clean features to build circuits from. Researchers use tools such as sparse autoencoders to separate features first, but explanations still cover only part of a model's computation.Common questions
What is a circuit in mechanistic interpretability?
What is an example of a circuit in a language model?
Why is it hard to find circuits in large models?
Search for "circuits interpretability", "transformer circuits", "indirect object identification circuit" or "induction heads" to see the research. The Distill circuits thread, Anthropic's transformer-circuits.pub papers and peer-reviewed interpretability work on arXiv are the most reliable sources. Treat claims that a model has been fully understood with scepticism, since published circuits explain specific behaviours in specific models.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.