---
title: "Sparse Feature Circuits — paper by Marks et al. (2024)"
description: "See how sparse feature circuits trace the causes of language model predictions, explain grammatical agreement, and reduce reliance on…"
canonical: "https://research.elamur.ai/free/en/papers/marks-2024-sparse-feature-circuits-discovering-editing/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/marks-2024-sparse-feature-circuits-discovering-editing/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models

# Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models

Paper · 2024 · Samuel Marks, Can Rager, Eric J. Michaud et al.

**Authors:** [Samuel Marks](https://md.research.elamur.ai/free/en/authors/samuel-marks/), [Can Rager](https://md.research.elamur.ai/free/en/authors/can-rager/), [Eric J. Michaud](https://md.research.elamur.ai/free/en/authors/eric-j-michaud/), [Yonatan Belinkov](https://md.research.elamur.ai/free/en/authors/yonatan-belinkov/), [David Bau](https://md.research.elamur.ai/free/en/authors/david-bau/) and [Aaron Mueller](https://md.research.elamur.ai/free/en/authors/aaron-mueller/) · **Year:** 2024 · **Venue:** arXiv:2403.19647 · International Conference on Learning Representations, 2025 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

arXiv:2403.19647 · International Conference on Learning Representations, 2025 · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2403.19647)
- [arXiv 2403.19647](https://arxiv.org/abs/2403.19647)

## Summary

A language model can choose the right verb even when another noun stands between it and the subject. Finding the part of the network that helps with that choice is a start. The harder question is what that part contributes. An attention head can participate in several computations, and an individual neuron can respond to a mixture of unrelated cues. This paper proposes building causal graphs out of smaller units whose roles are easier to describe. The graphs, called sparse feature circuits, let researchers trace how a particular prediction comes about and test what happens when they remove some of its causes. [Mechanistic interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) · [Language model](https://md.research.elamur.ai/free/en/concepts/language-model/)

The authors use sparse autoencoders, or SAEs, to express an internal activation as a sum of learned directions, with relatively few active directions at each token. They also keep the reconstruction error as a separate node, so the graph can show where a prediction still depends on information the autoencoder has left unexplained. To search a large graph, they use gradients to estimate the effects of changing nodes and connections. Attribution patching uses the gradient from the original run. Integrated gradients sample along the change and give better estimates where the original gradient misses much of the effect. In subject–verb agreement tests, circuits with 100 nodes for Pythia-70M and 500 for Gemma-2-2B recovered most of the agreement performance under the paper’s evaluation procedure. Neuron circuits needed around 1500 and 50,000 nodes, respectively, to recover half. The feature circuits can include whole reconstruction-error vectors, so those node counts have different units of granularity.

The authors then use the circuits to edit a profession classifier. They train it on biographies in which every professor is male and every nurse is female. Either gender or profession can therefore explain every training label. With SHIFT, a human reads the features implicated in classification and removes those judged irrelevant to profession. On balanced biographies, the resulting classifiers depend much less on gender. Gemma-2-2B initially loses profession performance after the removal, then recovers it when the authors retrain its classification head on the same ambiguous training data. The experiment shows how a human judgment about what should count as evidence can guide an edit even when the training labels cannot distinguish the intended signal from a shortcut. [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) · [Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/)

The final experiment begins with ordinary text from The Pile. The authors group contexts by features of Pythia-70M’s internal computation and build a circuit for each group. This yields thousands of circuits for automatically discovered prediction behaviors. In examples involving number sequences and infinitival *to*, the graphs reveal distinct routes to the same kind of output. Grouping the inputs and discovering the graphs are automatic. Explaining what the individual features do still takes inspection. The authors release the code, data, and autoencoders as `saprmarks/feature-circuits` and make the automatically discovered circuits available through an interactive browser.

## Deep dive: Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models

See how sparse feature circuits trace the causes of language model predictions, explain grammatical agreement, and reduce reliance on gender cues. · about 41 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a circuit is supposed to explain

An agreement test asks the predictor to favor a verb form that matches its subject in grammatical number. When an intervening phrase contains a noun of a different number, agreement also tests which noun the predictor is using. A high score at the output tells us that the system often chooses well under the test conditions. A circuit aims to explain how that preference arises. It can identify where subject number first becomes consequential, whether a later computation carries it past the intervening phrase, and where it begins to affect the verb scores. Each of these questions concerns the dependence of one part of the computation on another. [Syntax & grammar formalisms](https://md.research.elamur.ai/free/en/topics/syntax-grammar/) · [Causal analysis of syntactic agreement mechanisms](https://md.research.elamur.ai/free/en/papers/finlayson-2021-causal-analysis-syntactic-agreement-mechanisms/)

The authors place this work in a tradition that tests such dependencies through interventions. Researchers run an input, change an internal activation to a value observed in another run, and measure the change in an output of interest. If the replacement changes the verb preference, the chosen activation mattered to that decision under the intervention. Related work intervenes on particular paths so that a change can be traced through a selected connection. Once researchers have scores of this kind, they can search for a subgraph that explains a behavior with fewer parts than the entire network. The paper cites automated circuit discovery as one way previous work approached that search. [Towards Automated Circuit Discovery for Mechanistic Interpretability](https://md.research.elamur.ai/free/en/papers/conmy-2023-towards-automated-circuit-discovery-mechanistic/)

Where a circuit draws its boundaries determines the explanation it can provide. In earlier work described by the authors, induction heads helped explain in-context learning, and feed-forward modules called multilayer perceptrons, or MLPs, were implicated in factual recall. Such results can locate an important computation. The next question is which aspect of a head or MLP made the difference in a particular example. The paper calls these larger components polysemantic because their activity can have several meanings or consequences. An edit at that scale can affect several of those uses together. [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) · [In-context Learning and Induction Heads](https://md.research.elamur.ai/free/en/papers/olsson-2022-context-learning-induction-heads/) · [Locating and Editing Factual Associations in GPT](https://md.research.elamur.ai/free/en/papers/meng-2022-locating-editing-factual-associations-gpt/) · [Dissecting Recall of Factual Associations](https://md.research.elamur.ai/free/en/papers/geva-2023-dissecting-recall-factual-associations-auto/)

Switching from a whole component to one neuron makes the unit smaller, but there is still a question about what its activity means. The authors use *neuron* broadly for an existing coordinate direction in a hidden representation, including cases where that coordinate has no individual activation function immediately before it. This definition lets them compare learned feature directions against the network’s native coordinates at several sites. A native coordinate is easy to index and intervene on. A recognizable linguistic function may nonetheless be distributed across coordinates, and a single coordinate can respond to several patterns.

#### Starting with a behavior or with a hypothesis

Researchers can obtain finer units by looking for a particular concept that they suspect is already represented internally. A supervised linear probe, for example, uses labeled examples to find a direction that helps read out a property. Work on causal abstraction can begin with a proposed high-level mechanism and intervene to test whether a network implements that mechanism. Those approaches give researchers a precise question when they can specify the property or computation in advance. Here the authors also want to investigate cases in which a behavior is observable and the possible roles of the internal units are still open. [Probing Classifiers](https://md.research.elamur.ai/free/en/papers/belinkov-2022-probing-classifiers-promises-shortcomings-advances/) · [Causal Abstractions of Neural Networks](https://md.research.elamur.ai/free/en/papers/geiger-2021-causal-abstractions-neural-networks/) · [Representation Engineering](https://md.research.elamur.ai/free/en/papers/zou-2023-representation-engineering-top-down-approach/)

Dictionary learning provides a different starting point. It learns a collection of directions that can be used to reconstruct activations from ordinary text. Sparsity puts pressure on the reconstruction to use a small subset of that collection for any one token. Researchers can then inspect a direction’s strongest examples and ask what those examples have in common. A grammatical property, a kind of vocabulary, or a narrow prediction pattern can emerge during inspection even though none was used as a training label for the dictionary. The dictionary supplies candidates for an explanation. The intervention tests which candidates actually affect the behavior under study.

A rich dictionary also makes circuit discovery more expensive. There can be many more dictionary entries than native activation coordinates, and each entry can occur at several token positions. Even after finding relevant nodes, a researcher has to decide which connections between them matter. The authors draw on earlier work on attribution patching and integrated gradients to make those searches tractable. They use approximate causal scores to locate candidate parts of the graph, then evaluate selected circuits with interventions. [Attribution Patching Outperforms Automated Circuit Discovery](https://md.research.elamur.ai/free/en/papers/syed-2023-attribution-patching-outperforms-automated-circuit/)

#### Why the choice of unit matters for an edit

The classifier experiment puts pressure on the same distinction. A procedure that reduces a shortcut usually needs some evidence that separates the shortcut from the intended signal. In the paper’s account, earlier approaches obtain such evidence in ways that include reweighting data between groups, optimizing the worst group directly, and editing a protected concept out of a representation. The authors also describe a smaller body of work in image or multimodal tasks that can operate without disambiguating labels. An especially close inspiration interprets attention heads in CLIP and ablates ones judged undesirable. [Null It Out](https://md.research.elamur.ai/free/en/papers/ravfogel-2020-null-it-out-guarding-protected/)

If every labeled example containing one cue also contains the other, better prediction of those labels gives the classifier no reason to favor the cue the task designer intended. An inspection of the internal computation gives a human a different kind of evidence. The human can recognize that a feature responds to gendered names or that another responds to occupational terms. Whether to remove either is a decision about the task. For that decision to be practical, the selected units must both matter to the prediction and admit descriptions precise enough to guide the intervention.

### The method, step by step

#### Expose the features as places to intervene

The method begins with a trained predictor, autoencoders for some of its internal sites, a collection of examples, and a numerical score for the behavior. An internal site might be an attention output, an MLP output, or a vector in the residual stream, which carries information between computations in the network. At each selected site the authors insert the autoencoder’s decomposition into the computation graph. A feature activation and the reconstruction error thereby become variables that can receive separate interventions.

How the paper discovers a sparse feature circuit The steps in order.

An autoencoder takes an activation vector as input. Its encoder assigns a non-negative coefficient to each dictionary direction. Its decoder uses those coefficients to reconstruct the vector and adds a bias. Many of the coefficients are zero for a given input. Different tokens can activate different subsets, and the same direction can recur at different positions or in different examples. A direction is a vector in the original activation space. Its coefficient is a scalar that says how much of that direction the reconstruction uses at a particular site and token.

```
x = x̂ + ε(x) = ∑ᵢ₌₁ᵈˢᴬᴱ fᵢ(x) vᵢ + b + ε(x)
```

Here x is the original activation and x̂ is the reconstruction. The vector ε(x) is their difference. The sum ∑ ranges over dictionary indices i from 1 through the autoencoder width dˢᴬᴱ. Each vᵢ is a unit direction, fᵢ(x) is its non-negative coefficient, and b is the decoder bias. The original activation, reconstruction, error, directions, and bias all live in the activation space at that site. Multiplying a direction by its coefficient gives that feature’s contribution to the reconstruction.

Preserving ε(x) has a concrete effect. The original forward computation receives its full activation until an intervention changes it. If the authors then suppress a feature while holding the error fixed, the decoder contribution of that feature is removed and the rest of the vector is still available. The error itself can also be patched or ablated to ask how much the behavior depends on the information remaining outside the dictionary. It appears as a vector-valued node. A feature node has a single coefficient, so the same convention for counting nodes can count objects of very different sizes.

For Pythia-70M, the authors train a separate SAE for each relevant site, including embeddings and the attention, MLP, and residual-stream activations. Each dictionary is 64 times as wide as the activation it represents. The encoder subtracts the decoder bias before applying its linear transformation. The same bias is added back at decoding, so it serves as an offset for both operations.

```
f = ReLU(Wᴱ(x − bᴰ) + bᴱ)
```

Here f is the vector of feature coefficients, with entry fᵢ for dictionary index i. The input activation is x. The encoder matrix Wᴱ maps from the activation space to the wider feature space. The vectors bᴰ and bᴱ are the decoder and encoder biases. ReLU acts on each coordinate of its argument, replacing a negative value with zero and keeping a positive value.

```
x̂ = Wᴰ f + bᴰ
```

Here x̂ is the reconstructed activation, Wᴰ is the decoder matrix, f is the vector of encoded coefficients, and bᴰ is the decoder bias. A column of Wᴰ is a dictionary direction vᵢ. The authors constrain each column to have unit length, so the encoder cannot satisfy the sparsity penalty simply by making coefficients smaller and compensating with longer decoder directions.

```
ℒ = ‖x̂ − x‖₂ + λ‖f‖₁
```

Here ℒ is the training loss. The first term is the L2 norm of the difference between the reconstructed activation x̂ and the original x. The second uses the L1 norm of f, which sums the magnitudes of the coefficients. The weight λ controls the price of using those coefficients. The authors use λ of 0.1 and a learning rate of 10⁻⁴. The optimizer is a variant of Adam that respects the unit-length decoder constraint. [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/)

To obtain training examples for a given Pythia-70M SAE, the authors take the first 128 tokens of randomly sampled documents from The Pile and record the chosen activation at every token. They cache activations from 10,000 contexts and sample training batches of size 2¹⁴ from that buffer. When half the buffer has been used, they replenish it with fresh data. Training runs for 120,000 steps, with about 2 billion training tokens reported. These are examples for learning the dictionary. The agreement pairs and biography labels enter later, when the authors ask which learned directions participate in a specific computation.

A feature that seldom activates gets few opportunities to learn a useful role. Every 25,000 steps, the authors reinitialize features that have stayed inactive over the previous 12,500 steps. They use a linear learning-rate warmup lasting 1000 steps at the start and whenever they resample features. They evaluate the dictionaries using reconstruction, sparsity, and predictive-loss measures in addition to inspecting individual features. Those measurements answer different questions. A dictionary can preserve a substantial amount of an activation while still leaving researchers with hard-to-describe directions.

```
V = 1 − Var(x − x̂) / Var(x)
```

Here V is the reported fraction of variance explained, Var is the variance operation, x is the original activation, and x̂ is its reconstruction. The numerator of the ratio measures variance in the reconstruction error, and the denominator measures variance in the original activations. The authors also report the average L1 norm of the coefficients and their average L0 norm, which counts active entries. To measure the fraction of features alive, they check which entries activate at least once in a batch of 512 tokens.

The predictive-loss check compares the original cross-entropy with the loss obtained by replacing the activation with its reconstruction. The authors normalize the difference using the loss change when the activation is set to zero. Both changes use the same original loss as a reference. That denominator supplies a scale for asking how much the reconstruction has lost relative to removing the whole activation. The cross-entropy averages for this SAE evaluation use 128 contexts of length 128.

For Gemma-2-2B, the authors use pretrained Gemma Scope dictionaries with a Jump-ReLU encoder. They use the 8-times-width configuration, with dictionary width 16,384, and choose the available SAE for each site whose average number of active features is closest to 100. The selected dictionaries cover attention, MLP, and residual-stream sites across 26 layers. The attention dictionaries encode the input to the attention output projection. The MLP dictionaries encode the output of the normalization that follows the MLP. Those placements differ from the Pythia-70M placements. Experimental Gemma embedding dictionaries have width 4000 and are left out of these experiments. [Gemma 2](https://md.research.elamur.ai/free/en/papers/gemma-2024-team-gemma-2-improving-open-language/) · [Gemma Scope](https://md.research.elamur.ai/free/en/papers/lieberum-2024-gemma-scope-open-sparse-autoencoders/)

#### Measure the influence of a node

For agreement, the inputs come in pairs. One member is called clean and the other supplies the patch. In the paper’s example, the clean prompt ends with a singular subject and favors *is*, while the patch prompt ends with a plural subject and favors *are*. The output metric can compare the log probabilities of the two verb forms. The key operation is to run the clean prompt and substitute the patch value of a selected node. Any resulting score change can be attributed to that substitution under the conditions of the intervention.

```
m(x) = log P(are | x) − log P(is | x)
```

Here x is the input prompt, m(x) is its verb preference score in this example, and P(verb | x) is the probability assigned to the indicated next token given x. The vertical bar denotes conditioning and log denotes the logarithm. With this ordering, raising the score favors *are* relative to *is*. Which direction a change favors therefore depends on which form belongs to the patch and which to the clean input.

```
IE(m; a; x꜀, xₚ) = m(x꜀ | do(a = aₚ)) − m(x꜀)
```

Here IE is indirect effect, m is the scalar metric, and a is the node being tested. The clean and patch inputs are x꜀ and xₚ, and aₚ is the value a takes during the patch run. The expression do(a = aₚ) means that the clean computation is forced to use aₚ at that site. The second term is the score in the ordinary clean run. A large absolute effect means that this particular change to the node strongly moves the score. It measures influence relative to the specified replacement.

For biographies or clusters of ordinary text, the authors frequently have no matched counterfactual to use as the patch. They ask instead how the metric changes if the node is set to zero. A feature coefficient of zero removes that direction’s contribution at the intervention site. For a reconstruction error, the intervention sets its entire vector to zero. A large effect in this setting means the score depended on something the node contributed on that example.

```
IE(m; a; x) = m(x | do(a = 0)) − m(x)
```

Here IE is the score change from zero ablation, m is the metric, a is the intervened node, and x is the single input. The zero has the shape of a, so it represents either a zero coefficient or a zero vector. The do operator replaces the node value while the rest of the computation continues from the modified state. Zero is a reference value for measuring dependence. It can differ considerably from a value produced by another natural input.

#### Estimate many changes in parallel

Running an exact intervention separately for every candidate is expensive. Attribution patching uses the derivative of the score with respect to each candidate node. It multiplies that derivative by the proposed change. For a scalar feature the product has two factors. For a vector error node the gradient is contracted with the vector displacement. One backward pass supplies gradients for many different sites, so the authors can score a large collection of possible interventions using the activations from two forward passes and those gradients.

```
ÎEₐₜₚ(m; a; x꜀, xₚ) = [∇ₐm]ₐ₌ₐ꜀ · (aₚ − a꜀)
```

Here ÎEₐₜₚ is the estimated indirect effect under attribution patching. The scalar metric is m, the node is a, and x꜀ and xₚ are the clean and patch inputs. The expression ∇ₐm is the gradient of the score with respect to a. The subscript on the bracket says to evaluate the gradient at the clean activation a꜀. The quantity aₚ − a꜀ is the displacement toward the patch value, and · denotes the product or vector contraction appropriate to the node. For zero ablation the patch value aₚ is replaced by zero.

A derivative describes how the score responds to a small move at the point where it is measured. A patch can move the node much farther. If the slope changes along that move, the clean derivative may miss a large effect. The authors also use integrated gradients, which approximate the change by sampling derivatives along the straight line connecting the reference and original activations. This lets the estimate reflect regions where the slope differs from the clean one.

```
ÎEᵢᵍ(m; a; x꜀, xₚ) = (1/N) ∑ₐₗₚₕₐ [∇ₐm]ₐ₌αa꜀₊₍₁₋α₎aₚ · (aₚ − a꜀)
```

Here ÎEᵢᵍ is the integrated-gradients estimate, N is the number of sampled points, and the sum runs over interpolation coefficients α. The paper uses N = 10 and coefficients from 0 through (N − 1)/N in steps of 1/N. The metric is m, the intervened node is a, and a꜀ and aₚ are its values on x꜀ and xₚ. Each bracket gives the score gradient when a is forced to the corresponding interpolated value. Their average is contracted with the full displacement. For zero ablation the path runs between zero and the original activation.

Several nodes can share these computations when they are independent of one another. When a node is downstream of another candidate, changing both during the same intermediate run would conflate their individual interventions. The authors describe the extra cost of integrated gradients as increasing linearly with the number of sample points and the serial depth. That cost buys a better estimate in the components where a single gradient gives too little weight to a change.

#### Keep the important nodes and isolate their connections

For templates in which matching positions serve matching roles, the authors keep position in the identity of a node. The same dictionary feature at the subject and at the last token before the verb can have separate scores. They average signed effects across examples for each feature and position, then retain nodes whose average effect has absolute magnitude greater than the node cutoff. Effects that pull in opposite directions on different examples can cancel in this average. The chosen nodes therefore describe a consistent contribution under the metric and examples used to define the circuit.

For less regular text such as a biography, a particular kind of evidence can appear anywhere. The authors first sum an item’s effects over positions within each example and then average across examples. A feature can now appear once in the graph even if it has several occurrences in a biography. This aggregation also changes what can be read off the result. A biography circuit can show that a direction matters across the collection without identifying a fixed position at which it carries the signal.

A node effect says how a substitution influences the output through all the routes available from that node. An edge effect asks how much of the influence is carried directly into a specified downstream node. If the upstream change can reach that downstream node both directly and via a third node, the authors hold intervening nodes fixed while measuring the change to the downstream activation. They then measure how that downstream change affects the score.

```
d* = d(x꜀ | do(u = uₚ, q = q꜀ for q ∈ ℳ))
```

Here d* is the replacement value computed for the downstream node d. The upstream node is u, and uₚ is its patch value. The input remains x꜀. The set ℳ contains nodes between u and d, q denotes any member of that set, and q꜀ is its value on the ordinary clean run. The do operator applies these settings jointly. Freezing q for every member of ℳ blocks the routes through those nodes when computing d*.

```
ÎE(m; e; x꜀, xₚ) = [∇ᵈm]꜀ [∇ᵘ,ˢᵗᵒᵖ⁽ℳ⁾ d]꜀ (uₚ − u꜀)
```

Here ÎE is the estimated effect of edge e from u to d on metric m, with x꜀ and xₚ the clean and patch inputs. The first bracket is the gradient of the score with respect to d. The second is the Jacobian of d with respect to u, computed with intermediate nodes in ℳ treated as constants, as indicated by the stop superscript. The bracket subscripts ꜀ indicate evaluation at the corresponding clean activations. The final factor is the displacement from the clean value u꜀ to the patch value uₚ. The factors convert an upstream change into a direct downstream change and then into an estimated score change.

The authors average edge effects with the same position conventions used for nodes. They keep edges whose absolute average effect exceeds an edge threshold. The node threshold controls which variables warrant inclusion, while the edge threshold controls how densely the included variables are connected in the displayed graph. Edge estimates describe particular paths in this chosen decomposition. For example, drawing a connection from a number detector to a later feature gives a more specific account than observing that both affect the verb preference.

#### Make the backward pass respect the intervention

There is a subtlety when the autoencoder reconstruction and its error are both part of the computation. Numerically, changing the reconstruction in the expression for the error automatically changes that error by the opposite amount. Ordinary differentiation through the sum would therefore cancel the feature gradient. The intervention of interest holds the error fixed while changing a chosen feature, so the derivative must reflect that choice.

```
xᵈ = x̂ + stopgrad(xᵘ − x̂)
```

Here xᵘ and xᵈ are the activation immediately upstream and downstream of the inserted dictionary computation, and x̂ is the reconstruction. The function stopgrad returns its argument unchanged in the forward run but blocks derivatives through that expression. The sum still equals the original activation during the forward run. In the backward calculation the feature’s contribution survives because the error term is held fixed for that derivative.

Blocking the error derivative also interrupts gradients to sites earlier in the network. The authors address this by passing the downstream gradient through to the upstream activation, restoring the gradient of the original forward computation before the dictionary was inserted.

```
∇ₓᵘ m ← ∇ₓᵈ m
```

Here m is the output metric, ∇ₓᵘ m is its gradient with respect to the upstream activation, and ∇ₓᵈ m is the gradient at the downstream copy. The arrow denotes an assignment during the backward pass. This operation preserves the gradient reaching earlier sites while leaving the intermediate feature gradients available for the attribution calculation.

For an edge ending at a vector error node, the full Jacobian could require a backward pass per output coordinate. The authors only need the Jacobian after weighting its outputs by their influence on the score. They obtain that product by differentiating a weighted combination of the downstream outputs.

```
A∇ₓy = ∇ₓ(Ay)
```

Here x is a vector of input variables, y is a vector that depends on x, and A is a constant row of weights with one entry per output coordinate of y. The operation ∇ₓ differentiates with respect to x. The left side multiplies the full Jacobian by A. The right side first forms the scalar weighted output Ay and then differentiates it. In the edge computation, A comes from the gradient of the score at the downstream node and is held fixed. The authors can compute it in one backward pass and obtain the required weighted Jacobian in another.

#### Choose what the circuit is meant to explain

For SHIFT, the metric is the loss of a classifier on labeled training examples. Discovering the circuit identifies features that consequentially support or hinder the observed classification. A person then checks the features’ highly activating examples and output effects to decide whether they are relevant to the intended task. The ablated classifier is obtained by zeroing the features selected for removal. The paper allows further training after the edit. In the experiment it refits the linear head on representations from the edited network.

```
m = −log C(y | x)
```

Here m is the classifier loss on the example, C(y | x) is the probability the classifier assigns to label y when given input x, and log is the logarithm. The minus sign makes the metric larger when the classifier assigns less probability to the supplied label. A positive change under a zero ablation therefore means removing the node raises the loss for that example.

In the unsupervised application, the starting examples are context and next-token pairs from The Pile. The authors restrict attention to pairs Pythia-70M predicts confidently and correctly, with cross-entropy below 0.1 or 0.3 nats depending on the run. They filter out an example when the bigram consisting of the last context token and the answer has already occurred in the context. This rule reduces the prevalence of straightforward repetition cases. A context can still involve other kinds of induction, in which an earlier occurrence of a pattern informs what comes next. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

The authors experiment with clustering on dense activations, sparse activations, estimated ablation effects in either representation, and gradients with respect to network parameters. For activation or effect vectors they can concatenate information from the last positions before the answer or sum over positions. Both operations yield a fixed-length representation for contexts of varying lengths. Activations group examples by what is present in the network. Effects introduce information about what changes the next-token loss. Parameter gradients describe how the observed token probability responds locally to the predictor’s weights.

```
gᵢ = ∇θ log Pθ(yᵢ | xᵢ)
```

Here gᵢ is the parameter-gradient representation of example i before projection, θ denotes the predictor’s parameters, and ∇θ takes derivatives with respect to those parameters. The context is xᵢ and its observed next token is yᵢ. The conditional probability Pθ(yᵢ | xᵢ) is the probability assigned to that token by the predictor with parameters θ. The experiment using these gradients omits the embedding and normalization parameters.

For representations other than parameter gradients, the authors apply spectral clustering to 8192 examples. They compare every pair of example vectors by cosine similarity and turn the resulting values into angular similarities.

```
Cᵢⱼ = (xᵢ · xⱼ) / (‖xᵢ‖ ‖xⱼ‖)
```

Here Cᵢⱼ is the cosine similarity between the vectors xᵢ and xⱼ used for clustering examples i and j. The centered dot is their inner product, and the norm signs give their lengths. In this equation xᵢ and xⱼ stand for numerical representations of the examples.

```
Ĉᵢⱼ = 1 − arccos(Cᵢⱼ) / π
```

Here Ĉᵢⱼ is the angular similarity supplied to spectral clustering, Cᵢⱼ is the original cosine similarity, arccos is the inverse cosine, and π is the radian angle for opposite directions. The transformation puts the values in the interval from 0 to 1. The authors choose the number of clusters to maximize the number containing more than one context.

The parameter-gradient experiment uses 100,000 examples. At that size the authors use k-means directly and reduce the width of each gradient with a sparse random projection to 30,000 dimensions. A projection entry is non-zero with probability 32/30000, and a non-zero entry is equally likely to be −1 or 1. This keeps the projection sparse while giving each example a vector that can be clustered without retaining an entry for every parameter. After clustering, each group supplies examples for circuit discovery.

```
mᵢ = −log P(yᵢ | xᵢ)
```

Here mᵢ is the circuit-discovery metric on example i, xᵢ is its context, yᵢ is its observed next token, and P(yᵢ | xᵢ) is the token probability before or after the relevant intervention. The logarithm and minus sign define the next-token loss. The group supplies a common dataset over which effects can be aggregated even when the individual contexts are phrased very differently.

### Experiments and results

#### How much agreement performance does a small circuit preserve?

The agreement experiments use subject-number contrasts adapted from earlier work. Each pair changes the grammatical number of the subject and tests the corresponding verb preference. The authors build circuits for simple agreement, agreement within a relative clause, agreement across a relative clause, and agreement across a prepositional phrase. Agreement *within* a relative clause uses a subject inside that clause. Agreement *across* a relative clause requires the main subject’s number to remain available after the modifying clause. The parallel case with a prepositional phrase tests the effect of a different intervening structure. [Causal analysis of syntactic agreement mechanisms](https://md.research.elamur.ai/free/en/papers/finlayson-2021-causal-analysis-syntactic-agreement-mechanisms/)

For comparison, the authors run the discovery procedure with neurons as nodes. Those circuits use the network’s native coordinates and have no separate SAE error nodes. The quantitative circuit evaluation uses a test split of contrastive pairs held out from circuit discovery. This matters because the search chooses nodes by their estimated effects on its own examples. A circuit that merely picks up which words were used during discovery might perform poorly on new examples of the same syntactic structure.

The faithfulness test runs the system with nodes outside the circuit set to their mean activations. The means are specific to token position. This reference preserves the average activity at a site under the task distribution while taking away its ability to carry information that differs between particular inputs. The comparison is against both the full run and an empty circuit subject to the same ablation convention. The normalized score asks how much of the full run’s advantage over the empty circuit survives when the chosen nodes can vary normally.

```
F(C) = (m(C) − m(∅)) / (m(M) − m(∅))
```

Here F(C) is the circuit’s faithfulness, C is the selected circuit, M is the full predictor, and ∅ is the empty circuit. The value m(C) is the mean metric on the evaluation inputs when nodes outside C are mean-ablated. The values m(M) and m(∅) are the corresponding full and empty scores. The ideal value of F(C) is 1. A score near that value indicates that the retained computation accounts for much of the full score above the mean-ablation reference.

The authors find that early components often respond to particular input tokens. The discovery and evaluation splits use different words, so an early feature useful on the discovery examples may have little work to do on the test examples. The paper evaluates the later portion of the circuit, omitting the first third. Its held-out numbers are consequently evidence about how the later computation transfers across the agreement split. The setup leaves the early stages of that transfer less directly tested.

When the authors sweep the node cutoff, feature circuits recover the majority of agreement performance with 100 nodes for Pythia-70M and 500 for Gemma-2-2B. The neuron version needs around 1500 nodes for Pythia-70M and 50,000 for Gemma-2-2B to recover half. These figures describe the reported held-out faithfulness curves. The comparison involves slightly different amounts of performance recovered, and the nodes in the feature curves can include vector-valued errors. The paper also compares versions with errors removed to test how much those vectors contribute.

The authors test completeness by leaving the complement of the circuit active. This asks how much agreement performance is available outside the selected graph. A circuit can score well when preserved and still leave useful computation elsewhere, so the complement test supplies distinct evidence.

```
K(C) = F(M ∖ C)
```

Here K(C) denotes the completeness score in the paper’s convention, F is the faithfulness measure above, M is the full computation, and M ∖ C is the portion outside circuit C. Evaluating F on that complement means ablating the selected circuit and measuring what remains. The ideal value is 0, which means the complement preserves none of the full predictor’s advantage over the empty reference.

A few feature nodes suffice to eliminate task performance in this test, even when all autoencoder errors are allowed to remain. The comparable intervention takes hundreds of neurons for Pythia-70M or thousands for Gemma-2-2B. Faithfulness and completeness together distinguish two ways a representation can be useful. A compact retained graph can carry behavior in its own right, while a compact set of removed nodes can expose a strong dependency of the surrounding network. The paper obtains evidence of both on the agreement tasks.

#### What the agreement circuits reveal

For their detailed inspection of agreement across a relative clause, the authors choose small circuits that clear a faithfulness threshold of 0.2. Pythia-70M’s chosen circuit has 86 nodes and Gemma-2-2B’s has 223. Both have faithfulness 0.21. The chart compares the size of those selected examples at their common reported score. The star marks the smaller circuit under that condition. The authors use both for inspection.

Relative-clause agreement case study, circuit size at matched faithfulness Pythia reaches the shared faithfulness value with fewer nodes in the circuits chosen for inspection.

**The numbers**

| System or setting | circuit nodes |
| --- | --- |
| Pythia-70M sparse feature circuit (this paper) | 86 |
| Gemma-2-2B sparse feature circuit | 223 |

The annotated graphs suggest two routes from the main subject to the verb preference. In the first, features responsive to the number of the main subject support later features that broadly favor matching verb forms. The second route starts with the same information but has to make it available after the modifier. Features near the start of the modifier help identify the boundary, and attention transfers information about the subject to the final position of the relative clause. That position immediately precedes the predicted verb. Locating the relevant features at their token positions lets the authors tell apart detecting number and retrieving it when it matters to the prediction.

Gemma-2-2B also exhibits features that track the number of the noun heading a noun phrase. The highlighted plural tracker responds through positions in a phrase whose head is plural, with a gap on a singular distractor phrase inside it. The feature can therefore be active on tokens that are not themselves plural nouns while still supplying evidence about which verb form to favor. The authors describe these trackers as promoting the matching form across positions, especially at the end of the noun phrase.

The agreement-across-prepositional-phrase circuits share over 85% of their features with the agreement-across-relative-clause circuits for both predictors. Some of the boundary features are used for both sorts of modifier. Simple agreement and agreement within a relative clause show less overlap with the across-clause circuit. They still implicate a progression from detecting the relevant subject’s number to promoting a verb inflection. The comparison suggests that some tasks call on similar output preferences while differing in the steps required to bring the right number information to the output position.

#### Can the profession classifier give up a shortcut?

The Bias in Bios task keeps biographies from two occupations. The ambiguous training data pairs male professors with label 0 and female nurses with label 1. The balanced evaluation dataset contains the same number of men and women in each of the two professions, nursing and professorship, with all four groups equally represented. It carries both profession and gender labels. The authors report profession accuracy, gender accuracy, and worst-group profession accuracy, defined as the lowest profession accuracy among the demographic and occupational groups. An output that follows gender can seem successful on the ambiguous set and fail on the balanced groups where gender and profession point to different classes.

The classifier mean-pools the residual-stream vectors from non-padding tokens at a chosen layer and reads the resulting biography vector with a linear head. The head uses logistic regression trained with AdamW, at learning rate 0.01 for one epoch. Accuracy measured on a test subset of the ambiguous data determines the choice of layer 4 in Pythia-70M. Several Gemma-2-2B layers perform similarly on that set. The authors use balanced-set performance for this particular design decision and choose layer 22, where the baseline generalizes worst. The choice creates a test case with room for improvement. The authors say they do not optimize SHIFT’s hyper-parameters on the balanced set. [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/)

The Pythia-70M discovery circuit contains 67 features, of which the authors judge 55 task-irrelevant. The Gemma-2-2B circuit contains 46 features, of which they judge 43 irrelevant. They make these decisions from strongly activating text examples and effects on output logits, the scores used to produce token probabilities. Their annotated Pythia-70M circuit contains features sensitive to gendered pronouns and names, along with features responding to nursing, science, and academic language. The experiment’s judgments use examples from an additional unlabeled text corpus for inspection. The classifier edit uses the ambiguous classification data and the feature judgments.

SHIFT nearly eliminates the measured dependence on gender for both predictors. The initial removal harms profession performance for Gemma-2-2B. Refitting its linear head on the edited activations from the ambiguous data restores profession performance while preserving the reduction in gender reliance. The paper singles out Gemma-2-2B as needing that recovery. For Pythia-70M, the authors report that the removal does not cause the same damage.

The comparison methods give different ways to test what made the edit succeed. Random ablation uses the same number of SAE features chosen without the human judgments. Concept Bottleneck Probing restricts the classifier to its similarity to occupation concepts. In the paper’s implementation, the 20 concepts are keywords drawn from nursing and academia. Each concept vector comes from the final token’s representation at Pythia-70M’s penultimate layer. The authors subtract the mean concept vector from each keyword vector, then use cosine similarities between biography and concept vectors as the input to a linear head.

The feature and neuron skylines are comparisons with privileged information. Both can use the gender labels of the balanced set to select units implicated in gender prediction. The feature skyline zero-ablates the corresponding quota of selected circuit features. The neuron skyline mean-ablates the same quota of selected neurons. The oracle has access to balanced-set profession labels for training. SHIFT without head retraining is reported as matching or nearly matching what the feature skyline can obtain by using balanced labels to select features. The paper describes the neuron skyline as falling short of SHIFT, since important gender-sensitive neurons also contribute to profession classification.

#### What turns up when prediction behaviors are discovered automatically?

The Pythia-70M clustering experiment yields thousands of circuits. Two illustrated cases show why a cluster can be informative even if it includes distinct routes to the answer. Cluster 382 concerns sequence continuation. Its circuit combines broadly useful succession features with narrower induction features. Attention features in layer 3 appear to help advance multiple numbers and letters. Other features respond to specific patterns in which a repeated prefix supplies information about which earlier number occurred. A residual feature in layer 5 particularly favors moving from 3 to 4 in lists whose entries share a prefix. An output that looks like one sequence rule can thus depend on both general succession and context-specific retrieval.

Cluster 475 concerns predictions of infinitival *to*. Certain verbs provide early evidence that an infinitive is likely. Later features distinguish contexts in which an infinitive can follow a verb, participle, or predicate adjective from contexts in which it can follow a nominal direct object as a complement. For example, the position after *excited* in a predicate and the position after *us* when it is the object of *asked* can both favor the same next token. The paper reports that the two routes affect the output in layer 5 while remaining partly distinct. The circuit adds an explanation of the structure inside the cluster, beyond the observation that both kinds of context favor *to*.

The automated output is the assignment of examples to groups and the discovery of a graph for each group. The illustrated linguistic and sequence descriptions come from inspection of selected graphs. This distinction matters for evaluating the experiment. The examples show that a human can recover meaningful structure from some groups. The number of graphs produced measures the scale of discovery, and the paper leaves evaluation of their quality across the collection open.

### What the ablations show

#### The effect estimate can fail in identifiable places

The authors compare approximate effects with exact interventions on 30 inputs from the across-relative-clause agreement dataset. Each observation corresponds to a feature or an SAE error at an individual position in an input. That level of comparison can reveal a systematic problem in a component that would be hard to see after averaging positive and negative effects across an entire circuit.

Attribution patching generally tracks exact effects, but it underestimates some of them in the layer 0 MLP and in the early residual stream. Integrated gradients improve those estimates. The comparison is between ways of measuring the same intervention. It provides evidence that sampling intermediate states helps in these components, where the gradient at the clean activation gives an incomplete picture of the full replacement. It also explains why a circuit search can miss early nodes even when the underlying feature is relevant. A threshold applied to a score that systematically underestimates an effect may filter out a real contributor.

This analysis concerns individual node effects. The edge procedure uses a separate approximation in which intervening paths are held fixed. The node comparison gives grounds for using integrated gradients to improve node selection. The agreement faithfulness results test the surviving nodes collectively under mean ablation. Neither measurement serves as a direct calibration of every edge in the displayed graphs.

#### The residual errors matter most when rebuilding the behavior

The authors recompute faithfulness after excluding all SAE errors and after excluding only the attention and MLP errors. Removing residual-stream errors sharply reduces the amount of behavior the feature circuits can recover. Removing the attention and MLP errors is less disruptive. This comparison establishes that the high-dimensional residual-stream terms carry consequential information in this evaluation. A graph can be small by node count while depending on remaining information that has no feature-level interpretation.

The converse intervention sharpens that finding. When the authors remove selected sparse features and leave all error terms in place, agreement performance can still collapse. Thus the errors can be important for sustaining performance without being sufficient to restore it after the selected features are removed. The simultaneous evidence from retaining and removing nodes is more informative than either test alone. The reconstruction-error ablation exposes a shortfall of the dictionary as a complete account. The feature ablation shows a causal contribution that survives the objection that only the large residual terms were doing meaningful work.

The authors also observe qualitatively that better dictionaries tend to leave less of a circuit’s influence in the error nodes. That motivates using intervention effects as a way to ask whether a dictionary captures behaviorally important information. Reconstruction quality averages over activation differences. An influence score asks whether the information left over matters for a particular prediction. The paper presents the connection as a possibility for evaluating dictionaries, based on the observed circuits.

#### Human judgments have stronger consequences with features

Pythia-70M’s human evaluation compares uniformly sampled units with units selected for large effects in agreement across a relative clause or Bias in Bios. The task-selected groups use the top 30 entries by estimated indirect effect. Annotators see strong activating tokens, contextual examples with activation magnitudes, and tokens whose prediction probabilities change under ablation. They describe each unit and rate interpretability and semantic complexity on 0–100 scales. Sparse features receive higher interpretability ratings than neurons, and circuit-selected features are rated more interpretable than random features. The annotators’ evidence includes both what the feature responds to and how changing it affects predictions.

In the profession circuit, this difference becomes an operational test. A direction that activates on nursing terms gives the annotator a concrete reason to keep it. A direction responsive to female-associated language gives a reason to remove it under the experiment’s task definition. An influential neuron can respond strongly to capitalized tokens and have several other activation patterns. When those patterns give little guidance on whether it supports profession, gender, or both, the human trimming procedure stalls. The authors abandon the neuron version of human trimming for this reason. Its outcome is a failure to carry out the annotation-based selection reliably, rather than a completed accuracy comparison under equivalent annotation.

Random feature removal has essentially no effect on probe performance in the reported comparison. This supplies a control for removal count. The intervention’s effect depends on the chosen set, since applying the same amount of trimming to randomly selected directions leaves the original behavior largely intact. The feature skyline asks a separate question about selection. It gives the procedure direct access to balanced gender information and asks which removals that information supports. The authors’ finding that the human choices are optimal or near-optimal in that comparison is conditional on the tested candidate circuit, quota, and ablation procedure.

The neuron skyline uses the same kind of privileged evidence, yet it still cannot match SHIFT. The paper attributes this to an overlap of functions in the relevant neurons. A neuron chosen because it helps predict gender can also supply information useful for profession. Its removal therefore has a cost that clearer separation at the feature level can reduce. The Gemma-2-2B comparison before and after head retraining shows that feature separation is imperfect too. The initial edit changes the representation available to the original head enough to harm profession performance. The new head recovers useful classification from what remains after trimming.

### Limitations

#### Limits the authors state

The procedure depends on having SAEs for the network and sites of interest. Training those dictionaries takes substantial initial compute, even though one trained dictionary can be reused for many circuit searches. Increasing the scale of SAE training is outside the paper’s scope. Where the dictionary misses important parts of the computation, the error terms identify their causal contribution collectively. The terms themselves offer little evidence about which concepts or operations the omitted information represents.

The paper also emphasizes the amount of qualitative judgment involved. The biography edit provides a downstream outcome that can be measured. It is harder to assess the intrinsic quality of an entire dictionary or to assign a reliable interpretation to every circuit for an open-ended behavior. Feature labels can vary with the annotator and the task. The authors recruited Pythia-70M annotators from a community of researchers interested in alignment and safety and expect more variation from a random sample. They also observed that annotators tended to describe topics while overlooking syntactic roles, such as plural noun status. A feature can consequently receive a plausible semantic description that misses the grammatical property relevant to the circuit.

The Gemma Scope dictionaries contain features that fire primarily at the beginning-of-sequence token. These features can have strong estimated output effects while providing relatively uninformative top logits for interpretation. The authors leave them out of the annotation and trimming for SHIFT, and they also exclude them from the feature skyline. This limits the claim about human selection to the eligible features. It also illustrates a broader difficulty with using familiar text examples and token effects to explain a feature whose function depends heavily on where it occurs.

#### Limits implied by the experimental setup

A circuit’s effects depend on the input distribution, metric, and intervention. Replacing a node with a value from a contrasting prompt asks a different question from removing it entirely. Mean ablation for faithfulness asks another question again, because it preserves an average activation specific to the evaluation task. The reported held-out agreement results therefore establish performance under the paper’s evaluation design, with an emphasis on later stages of the computation. The hand-inspected circuits at faithfulness 0.21 illustrate causal routes in a deliberately compact graph. A claim that these graphs account for all agreement behavior would exceed that measurement.

Comparisons by node count are also sensitive to the graph’s vocabulary. An SAE error node, a sparse coefficient, and a native coordinate are affected differently by an ablation. The paper addresses this with error-removal and complement tests, while the widths and insertion sites of the dictionaries differ across the two predictors. A circuit with more nodes can reflect choices about decomposition, threshold, and scope as well as differences in the underlying computation. Counting nodes gives the size of the artifact that researchers inspect under a stated convention.

The biography result concerns the measured use of gender by a classifier for the occupations and groups in the experiment. The data design deliberately makes gender perfectly predictive at training time, and the evaluation breaks that association. The measured change after trimming supports a claim about classification under that shift. It does not establish that gender information has been erased from the predictor’s full representations, or that every downstream use of those representations would be unaffected by gender. The Gemma-2-2B layer choice also used balanced data to locate a weak baseline. This gives the improvement a specific experimental context and leaves open how large the gain would be for a layer chosen independently of balanced-set performance.

Finally, the automatic pipeline searches examples already assigned high probability, applies a rule against some repeated-bigram cases, and groups the survivors according to a chosen representation of internal activity. Those choices define which behavior can be found and how examples reach the same cluster. The sequence and infinitive circuits show that one group can contain several mechanisms. Together with the absence of collection-wide evaluation, this leaves the coverage of the pipeline unresolved. The clearest empirical result is the production of many candidate circuits, with detailed evidence for the selected cases that the authors annotate.

### What came after

#### Testing what a circuit explains

[Have Faith in Faithfulness](https://md.research.elamur.ai/free/en/papers/hanna-2024-have-faith-faithfulness-going-circuit/) is both a citing work and a methodological source for the integrated-gradients approach used in the paper. Its focus is the distinction between circuit overlap and faithfulness when evaluating a proposed mechanism. That distinction bears directly on the agreement analysis. Shared nodes between modifier constructions raise a question about reuse, while intervention-based faithfulness tests how much behavior is recovered when a circuit is kept. The two comparisons can lead to different conclusions about the same graphs.

[Causal Abstraction](https://md.research.elamur.ai/free/en/papers/geiger-2023-causal-abstraction-theoretical-foundation-mechanistic/) supplies the theoretical counterpart discussed by the authors. The cited line of work seeks to relate neural computation to a hypothesized causal mechanism. Sparse feature circuit discovery starts with the behavioral metric and searches the learned representation for consequential nodes. The approaches meet when researchers use a discovered graph to formulate a more explicit account of what its nodes compute. [The Quest for the Right Mediator](https://md.research.elamur.ai/free/en/papers/mueller-2026-quest-right-mediator-surveying-mechanistic/) approaches the field through causal mediation, the framework in which choosing a feature, neuron, or other intermediate variable changes the causal question being asked.

[Mechanistic Interpretability for AI Safety](https://md.research.elamur.ai/free/en/papers/bereska-2024-mechanistic-interpretability-ai-safety-review/), [A Practical Review of Mechanistic Interpretability](https://md.research.elamur.ai/free/en/papers/rai-2024-practical-review-mechanistic-interpretability-transformer/), and [A Primer on the Inner Workings of Transformer-based Language Models](https://md.research.elamur.ai/free/en/papers/ferrando-2024-primer-inner-workings-transformer-based/) cite the work from broader reviews of mechanisms, methods, and transformer internals. [Locate, Steer, and Improve](https://md.research.elamur.ai/free/en/papers/zhang-2026-locate-steer-improve-practical-survey/) focuses on actionable interpretability, a framing that fits the paper’s move from locating a causal feature to modifying a classifier with it. These are points of connection to the earlier work. The surveys’ scope alone gives no basis for attributing a shared circuit-discovery protocol to them.

#### Building and choosing the units

[Llama Scope](https://md.research.elamur.ai/free/en/papers/he-2024-llama-scope-extracting-millions-features/) extracts millions of features from Llama-3.1-8B with sparse autoencoders. It addresses the supply of candidate features that a circuit search depends on, in the way that Gemma Scope supplies dictionaries to the original experiment. [Route Sparse Autoencoder](https://md.research.elamur.ai/free/en/papers/shi-2025-route-sparse-autoencoder-interpret-large/) develops the autoencoder side of interpretability through a route-based design. [Constructing Interpretable Features from Compositional Neuron Groups](https://md.research.elamur.ai/free/en/papers/shafran-2026-constructing-interpretable-features-compositional-neuron/) pursues a different unit, forming features from groups of neurons. These works put the representation itself at the center of the investigation. A graph built from any of these units would inherit its way of separating internal activity.

[Output-Centric Feature Descriptions](https://md.research.elamur.ai/free/en/papers/arieh-2025-enhancing-automated-interpretability-output-centric/) studies automated interpretation through descriptions centered on outputs. The connection in the sparse feature circuit paper is the use of prediction effects alongside activating examples when people label a feature. [Mechanistic Interpretability Should Prioritize Feature Consistency in Sparse Autoencoders](https://md.research.elamur.ai/free/en/papers/song-2026-mechanistic-interpretability-should-prioritize-feature/) foregrounds consistency as a criterion for choosing features. [Towards Understanding the Robustness of Sparse Autoencoders](https://md.research.elamur.ai/free/en/papers/saiyed-2026-understanding-robustness-sparse-autoencoders/) investigates robustness of the dictionaries themselves. [From Isolation to Entanglement](https://md.research.elamur.ai/free/en/papers/mueller-2026-isolation-entanglement-when-do-interpretability/) asks when interpretability methods can isolate and disentangle known concepts. These questions bear on what an apparently clear node can support as evidence beyond the examples used to describe it.

#### From an intervention to a change in behavior

[SAEs Are Good for Steering – If You Select the Right Features](https://md.research.elamur.ai/free/en/papers/arad-2025-saes-are-good-steering-if/) centers feature selection in steering, where internal activity is changed to encourage a desired behavior. The connection to SHIFT is the dependence of the outcome on which feature is chosen. [Beyond Prompt Engineering](https://md.research.elamur.ai/free/en/papers/wang-2025-beyond-prompt-engineering-robust-behavior/) studies behavior control through the steering of target atoms. [Feature Extraction and Steering for Enhanced Chain-of-Thought Reasoning](https://md.research.elamur.ai/free/en/papers/li-2025-feature-extraction-steering-enhanced-chain/) directs extraction and steering at reasoning, while [Steering Large Language Models for Machine Translation Personalization](https://md.research.elamur.ai/free/en/papers/scalena-2026-steering-large-language-models-machine/) applies steering to translation personalization. Their stated targets extend the intervention question to settings where the goal is to promote a behavior, as distinct from the original profession experiment’s removal of a shortcut. [Reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) · [Machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/)

[Refusal Is Mediated by a Single Direction](https://md.research.elamur.ai/free/en/papers/arditi-2024-refusal-language-models-mediated-single/) studies an internal direction as a mediator of refusal. It illustrates another scale at which a causal unit can be proposed, with a single direction as the focus of the explanation. [Measuring Mechanistic Independence](https://md.research.elamur.ai/free/en/papers/shan-2026-measuring-mechanistic-independence-can-bias/) asks whether bias can be removed while demographic information is preserved. That question goes beyond SHIFT’s measured reduction in classifier reliance on gender and turns preservation into an explicit part of the investigation. [Aligned but Blind](https://md.research.elamur.ai/free/en/papers/sun-2025-aligned-but-blind-alignment-increases/) studies implicit bias through the relationship between alignment and awareness of race. Its stated subject also brings the distinction between possessing demographic information and depending on it into view.

#### Extending the range of behaviors under study

The agreement case connects the paper to work asking what linguistic systems learn and how their computations divide up. [Language Models as Models of Language](https://md.research.elamur.ai/free/en/papers/milliere-2024-language-models-models-language/) considers these systems in relation to accounts of language. [Are Formal and Functional Linguistic Mechanisms Dissociated?](https://md.research.elamur.ai/free/en/papers/hanna-2026-are-formal-functional-linguistic-mechanisms/) asks whether two kinds of linguistic mechanism can be separated. [Multilingual Language Models Encode Script Over Linguistic Structure](https://md.research.elamur.ai/free/en/papers/verma-2026-multilingual-language-models-encode-script/) examines the relation between writing system and linguistic structure in multilingual representations. The original paper offers a narrow comparison of mechanisms across English agreement structures. These citing works address broader distinctions about what a linguistic mechanism or representation captures. [Multilingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/)

[Language Models Use Trigonometry to Do Addition](https://md.research.elamur.ai/free/en/papers/kantamneni-2025-language-models-use-trigonometry-addition/) investigates an internal computation for arithmetic. [Internal Chain-of-Thought](https://md.research.elamur.ai/free/en/papers/yang-2025-internal-chain-thought-empirical-evidence/) studies how subtasks are scheduled across layers. [Why Does Reinforcement Learning Generalize?](https://md.research.elamur.ai/free/en/papers/shi-2026-why-does-reinforcement-learning-generalize/) studies post-training at the feature level. Each shifts the behavior of interest from the original paper’s grammatical choices, biography classifications, or corpus-derived prediction groups. A common question is whether the behavior can be broken into intermediate operations at a level where an intervention still has a readable meaning.

[Tracr-Injection](https://md.research.elamur.ai/free/en/papers/vergara-browne-2025-tracr-injection-distilling-algorithms/) studies distilling algorithms into pretrained networks, putting an algorithm into the system as an explicit target. [TriEx](https://md.research.elamur.ai/free/en/papers/wang-2026-triex-game-based-tri-view/) addresses explanation of internal reasoning in multi-agent systems through a game-based framework. These works broaden the settings in which internal explanations are sought. The sparse feature circuits paper’s contribution to that discussion is a concrete way to tie a description of an internal unit to an intervention on a measured behavior, while keeping the consequential activity outside the learned dictionary visible.

## Cite

Cite as Samuel Marks, Can Rager, Eric J. Michaud, Yonatan Belinkov, David Bau and Aaron Mueller. 2024. Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models. arXiv:2403.19647 · International Conference on Learning Representations, 2025.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2403.19647](https://doi.org/10.48550/arxiv.2403.19647) · [arXiv 2403.19647](https://arxiv.org/abs/2403.19647)

```bibtex
@misc{marks2024sparse,
  title = {{Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models}},
  author = {Samuel Marks, Can Rager, Eric J. Michaud, Yonatan Belinkov, David Bau and Aaron Mueller},
  year = {2024},
  doi = {10.48550/arxiv.2403.19647},
  eprint = {2403.19647},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2403.19647}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
