Sparse Feature Circuits Explained: Method, SHIFT and Limits
Sparse feature circuits are small graphs of sparse autoencoder features, and the connections between them, that are shown to cause one specific behavior of a language model. Samuel Marks and five co-authors introduced them in a paper posted on 28 March 2024, which also showed how to change a model's behavior by deleting features from such a graph. The paper appeared at ICLR 2025.
If you want interpretability taught in order, Learn AI Alignment Theory has an Advanced course called Interpretability, in lessons of about 8 minutes that each list their sources.
What sparse feature circuits are, and what they replace
A circuit is a part of a network that explains one behavior. Earlier circuits were built from attention heads, MLP layers or single neurons. The paper, Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models, calls those units "polysemantic and difficult-to-interpret": one neuron responds to many unrelated things, so a circuit made of neurons is hard to read and hard to use.
The authors swap the unit. A sparse autoencoder rewrites an activation as a sum of a few features, each a direction that tends to stand for one concept, plus an error term for whatever the features miss. The key idea is to treat those features and error terms as if they were parts of the model itself. The model then becomes a graph whose nodes are feature activations and error terms at each token position, and a sparse feature circuit is the small part of that graph that matters for the behavior you care about.
The paper studies two open-weights models. For Pythia-70M the authors trained their own autoencoders, 64 times wider than the activations they read. For Gemma-2-2B they used the public Gemma Scope autoencoders, 8 times wider.
How the method finds a circuit, step by step
You need a model, autoencoders for its layers, a dataset and a metric. The paper's running example uses pairs of inputs that differ only in number: the clean input "The teacher" and the patch input "The teachers". The metric is the log probability of "are" minus the log probability of "is".
The quantity you want for each node is its indirect effect: how much the metric moves if you run the clean input but force that one node to the value it takes on the patch input. Measuring this exactly needs one run per node, which is too slow, so the method uses a linear estimate.

- Cache. Run both inputs and store every feature activation, every error term and the metric.
- Backpropagate. Compute the gradient of the metric with respect to each node.
- Score nodes. Multiply the gradient by the gap between the patch value and the clean value. This is attribution patching, and it scores every node with two forward passes and one backward pass. Average over the dataset and keep nodes above a node threshold.
- Score edges. Estimate the effect of each connection between nodes in a similar way and keep those above an edge threshold.
The paper reports that the cheap estimate is accurate except in the layer 0 MLP and the early residual stream, where it underestimates the true effect. There the authors use integrated gradients, which averages the gradient at 10 points between the clean and patch values. When there is only one input and no pair, the node is set to zero instead of to a patch value.
How much of the behavior the circuits explain
The authors test the method on four subject-verb agreement tasks, with two scores measured on held-out pairs. Faithfulness is the share of the model's performance that survives when every node outside the circuit is set to its average value; the ideal is 1. Completeness is the same score for everything outside the circuit; the ideal is 0.
Most of the performance is explained by about 100 nodes in Pythia-70M and about 500 in Gemma-2-2B. Circuits built from neurons need about 1,500 and about 50,000 neurons to explain half. Ablating only a few feature nodes wipes out task performance, while it takes hundreds of neurons in Pythia and thousands in Gemma to do the same.
The circuits are also readable. For agreement across a relative clause ("The athlete that the managers like..."), the authors annotate an 86-node circuit in Pythia and a 223-node circuit in Gemma. In both, some features detect whether the subject is singular or plural, others detect where the clause begins and ends and carry the number forward, and a last group promotes matching verb forms.
Worked example: SHIFT on a biased classifier
The paper's application is called SHIFT. Take the Bias in Bios dataset, where the task is to tell a person's profession from a short biography. The authors build a worst-case training set: every professor is male and every nurse is female, so gender predicts the label perfectly. A classifier trained on it can learn gender in place of profession, and no labeled example in that set can tell you which it learned.
SHIFT has four steps: compute the classifier's feature circuit, have a person read each feature and judge whether it is relevant to the task, ablate the irrelevant ones, and optionally retrain. In Pythia-70M the circuit held 67 features and the authors judged 55 of them irrelevant, such as features that promote female-associated words. In Gemma-2-2B it was 43 of 46.

Follow the Pythia column. On balanced data the original classifier scored 61.9 percent on profession and 87.4 percent on gender, so it had mostly learned gender. After ablating the 55 features it scored 88.5 and 54.0. After retraining its last layer on the same biased set it reached 93.1 and 52.0, next to 93.0 and 49.4 for an oracle trained on balanced labels. Accuracy on its worst group rose from 24.4 to 89.0 percent. Ablating the same number of random features changed almost nothing.
This matters for alignment because of a case the authors name: a model trained on human feedback where "overseer approval" and "desirable behavior" predict the training labels equally well. No extra labeled data separates the two, so SHIFT uses a human reading of the internals as the tiebreaker. By the paper's account, methods that edit a concept out, such as LEACE, rely on labeled data that separates the two signals.
Circuits for behaviors nobody wrote down
The last experiment drops the human-made dataset. The authors split a large text corpus into clusters of similar next-token predictions by Pythia-70M, with no labels, then compute a circuit for each cluster, giving thousands of circuits. One cluster is predicting "to" before an infinitive. Its circuit shows two separate mechanisms where the cluster looked like one. Another cluster, predicting the next number in a sequence, combines general succession features with narrow induction features. The authors call evaluating these clusters and circuits "an important open problem".
Limits of sparse feature circuits and what is unsettled
The most common mistake is to read a sparse feature circuit as a full account of the behavior. The paper's own numbers say otherwise.
- The error nodes carry real weight. Removing the residual stream error nodes "severely disrupts the model", so part of every circuit is a box nobody can read. The paper says components the autoencoders miss "will remain uninterpretable".
- The annotated circuits are partial. The authors tuned the node threshold to get circuits small enough to annotate, and the two case-study circuits have faithfulness of 0.21. The authors also leave the first third of each circuit out of the faithfulness score, because early layers process specific tokens that differ between the discovery and test data.
- The judgments are human. The paper says "Much of our evaluation is qualitative" and that feature labels "may vary across annotators".
Later work questions the unit itself. Dunefsky, Chlenski and Nanda argue that circuit analysis with autoencoder features through MLP layers "either yields intractably large circuits or fails to disentangle local and global behavior", and propose transcoders instead. Heap and co-authors report that, in many settings, autoencoders trained on randomly initialized transformers get automatic interpretability scores similar to those from trained models, and recommend treating such scores as "useful but insufficient". On the other side, Karvonen and co-authors, two of the sparse feature circuits authors among them, turned SHIFT into an automated test of autoencoder quality, with a language model in place of the human judge.
Still open, by the paper's own account: how to evaluate dictionaries and circuits when there is no downstream task to score them on. The paper also treats training better autoencoders as out of scope, so every result depends on the ones available.
Frequently asked questions
What does SHIFT stand for?
The paper's introduction expands it as Sparse Human-Interpretable Feature Trimming, and its Section 4 as Spurious Human-interpretable Feature Trimming.
How is a sparse feature circuit different from a sparse autoencoder?
A sparse autoencoder gives you a dictionary of features for one layer. A sparse feature circuit is a causal graph built on top of such dictionaries: it says which features, across layers, drive one behavior and how they connect.
Does SHIFT need labeled data for the bias it removes?
No. In the paper it used only the biased training set, plus unlabeled text to see what each feature responds to. The gender labels were used only to score the result.
Get started
Sparse feature circuits sit where three ideas meet: features, causal tests and editing a model from the inside. Learn AI Alignment Theory has two Advanced courses for this area, Interpretability and The Science of LLM Misalignment. Each lesson separates what is known from what is still open, and 71 debate cards set out where researchers disagree with no verdict. You sign in with Google or an emailed code.
Start Learn AI Alignment Theory: short hands-on lessons from first principles to open research, with every side of every debate and the sources to read next.
AI alignment, from first principles to open research.
Visit learnaialignment.vlvd.net↗


Comments
No comments yet.