Sparse feature circuits explain over half of a language model’s task performance using just 100 nodes in Pythia-70M and 500 nodes in Gemma-2-2B, shrinking causal circuit size by 15x to 100x compared to dense neuron graphs that need 1,500 and 50,000 nodes to reach the same faithfulness. By folding sparse autoencoder (SAE) features and reconstruction error terms directly into the model’s computation graph and ranking nodes and edges with linear causal approximations, Samuel Marks, Can Rager, Aaron Mueller, and colleagues at Northeastern, MIT, and Technion turn circuit discovery from an artisanal neuron-level puzzle into a tool that can surgically remove hidden classifier bias even when training labels are 100% confounded.

  • 15x to 100x smaller circuits on syntax: Evaluating the latter two-thirds of layers across four subject-verb agreement tasks, 100 sparse feature nodes (Pythia-70M) and 500 nodes (Gemma-2-2B) match the faithfulness of 1,500 and 50,000 neurons.
  • 2x higher human interpretability: Crowdworkers rated circuit features at 62.3 on subject-verb agreement and 81.5 on Bias in Bios (0 to 100 scale), compared to 30.2 and 36.0 for circuit neurons and 52.8 for random SAE features.
  • Worst-group accuracy jumps from 18.2% to 92.9%: Using SHIFT (Sparse Human-interpretable Feature Trimming) on a classifier trained exclusively on male professors and female nurses, ablating 43 human-selected spurious features and retraining the head on the same confounded set matches a 93.1% oracle trained on balanced labels.
  • Unsupervised discovery at corpus scale: Clustering 100,000 Pile contexts and running zero-ablation circuits automatically surfaces mechanisms such as incrementing sequences (A3 ... A -> 4) and infinitival "to" object prediction.
Four-step pipeline for discovering and editing sparse feature circuits
1. Splice SAEs with error
Rewrite every attention, MLP, and residual activation as x_hat + stopgrad(epsilon) so model outputs stay unchanged while features enter autograd.
2. Estimate indirect effects
Run attribution patching or 10-step integrated gradients with pass-through dictionary gradients to score every feature, error node, and edge.
3. Filter causal subgraph
Keep nodes exceeding threshold T_N and edges exceeding T_E; use a Jacobian-vector trick to score error edges in two backward passes.
4. Inspect and edit (SHIFT)
Read top exemplars and logit effects on Neuronpedia, zero-ablate spurious latents, and retrain the classification head on the original data.

Source: Marks et al. (2025), Sections 2, 3, and 4.

How It Works

Earlier circuit studies, such as the 26-head Indirect Object Identification circuit, isolated attention heads or MLP neurons that are inherently polysemantic and hard to repurpose. Directly replacing activations with SAE reconstructions x_hat drops information the dictionary missed, distorting downstream behavior. Marks et al. resolve this by decomposing x = sum_i f_i(x) v_i + b + epsilon(x) and attaching stopgrad(epsilon(x)) back into the forward pass, paired with a pass-through gradient across the dictionary. Model predictions remain identical, while both interpretable features f_i and unmodeled error nodes epsilon become traceable circuit nodes.

Evaluating exact counterfactual interventions across tens of thousands of SAE latents is infeasible, so the pipeline scores node indirect effects (IE) with attribution patching (IE_atp) or 10-step integrated gradients (IE_ig). Because IE_atp underestimates early layers such as the layer-0 MLP and early residual stream (echoing AtP*), the authors use IE_ig in their main experiments. To compute edges into high-dimensional SAE error nodes without O(d_model) backward passes, they rewrite A (nabla_x y) as nabla_x (A y) and resolve it in two backward passes.

Key Findings

On subject-verb agreement across four syntactic templates (simple, within relative clause, across relative clause, and across prepositional phrase), the method recovers compact algorithms on both Pythia-70M (custom 64x ReLU SAEs trained on 2B Pile tokens) and Gemma-2-2B (16,384-width Gemma Scope JumpReLU SAEs). Inspecting an 86-node Pythia circuit and a 223-node Gemma circuit (both at 0.21 faithfulness) shows two routes: direct subject-number features that promote matching verb inflections, and boundary detectors at prepositional phrases and relative clauses that route subject number to the verb position, with Gemma adding noun-phrase number trackers. Across-RC and across-PP circuits share over 85% of their features, and ablating only a few circuit features destroys task accuracy even while leaving all SAE error nodes intact.

To test downstream utility, the authors construct a worst-case Bias in Bios split where training examples consist exclusively of male professors and female nurses, making gender 100% predictive of profession. A baseline Gemma-2-2B linear probe gets 67.7% balanced profession accuracy and collapses to 18.2% worst-group accuracy while tracking gender at 81.9%. Inspecting the 46-feature circuit (and 67-feature circuit on Pythia-70M), human evaluators zero-ablate 43 gender-related features (55 on Pythia) and retrain the linear head on the same confounded dataset.

Bias in Bios worst-group accuracy on Gemma-2-2B (%, higher is better)
Original (confounded)
18.2%
Neuron skyline (oracle labels)
5.6%
Feature skyline (oracle labels)
56.7%
Concept bottleneck (CBP)
86.7%
SHIFT + retrain (ours)
92.9%
Oracle (balanced labels)
93.1%

Source: Marks et al. (2025), Table 2. All methods except Oracle train only on male professors and female nurses.

Notice that even a neuron skyline given unfair access to balanced labels gets only 5.6% worst-group accuracy on Gemma (and 41.5% on Pythia vs SHIFT’s 89.0%), because polysemantic neurons entangled with gender also carry profession signals.

Caveats and Builder Takeaway

Three practical constraints limit sparse feature circuits today. First, the method requires pretrained SAEs across all target sublayers, and whatever variance the SAE misses stays trapped inside uninterpretable error triangles epsilon (removing residual-stream error nodes severely degrades faithfulness). Second, Gemma Scope’s beginning-of-sequence (BOS) features registered high indirect effects despite carrying uninformative token patterns, forcing the authors to exclude them manually from SHIFT and annotation. Third, human labeling can introduce semantic bias (annotators over-read topics instead of syntactic roles), and SHIFT relies on the intended and unintended signals separating cleanly across SAE latents.

For teams auditing models or removing spurious shortcuts when clean disambiguating labels do not exist, sparse feature circuits offer a rigorous workflow: include SAE error terms in the graph, use integrated gradients rather than single-step patching in early layers, and pair feature-level ablations with transcoders when you also need direct weight-based paths through MLP layers.