Introduction
A mechanistic explanation of a frozen language model can take two forms, and this task asks for both. A circuit is a subset of the edges of the model's computation graph: every edge outside it is patched to the value it takes on a counterfactual input, and the circuit is good if the model's behaviour survives. A causal-variable alignment is a set of features of a hidden representation, at a chosen layer and token, such that exchanging those features between two inputs has the same effect as intervening on one variable of a supplied high-level causal model. Both explanations are found from discovery examples and must hold on examples the search never saw, as in the MIB benchmark [1].
The field solves the two problems with two local approximations. For circuits, edge attribution patching scores each edge by a first-order Taylor estimate of what patching it would do, the product of the sender's activation difference and the gradient of the metric at the receiver, and keeps the top-scoring edges (EAP) [2]; the starter uses its integrated-gradients variant on the inputs [3], and relevance patching (RelP) [4], learned attribution to representations (MAttr) [5] and sparse feature circuits [6] refine the same idea. For causal variables, distributed alignment search (DAS) learns, per site, an orthonormal basis of a low-dimensional subspace by gradient descent on the interchange-intervention loss, starting from a random rotation [7].
Two difficulties follow from those approximations, and our method addresses one in each problem.
The attribution gradient is taken in the wrong place. An edge score is a derivative at the clean run, with every other edge present. A small circuit is the opposite situation: almost every edge is patched to the counterfactual, so the gradient that matters is the one at the ablated state, and edges that are redundant or harmful in combination are mis-ranked. The top- selection also has no notion of the target. With faithfulness
where is the logit-difference metric, a circuit distance like CMD wants , not as large as possible, and in our development runs the attribution circuits overshot () on some pairings of model and behaviour.
Alignment search starts blind. DAS optimises a non-convex objective over rotations from a random start with a limited discovery set. Yet the discovery data already says something about where the variable lives: the causal model labels every input with the variable's value, and directions along which the hidden representation separates those values are a natural first guess for the subspace that carries it.
Method
Our submission changes both editable functions. We describe the causal-variable component first, because it is the one the reported means measure.
Seeding DAS with between-class directions
At each site (a layer and token position) we collect the hidden representation of a small subset of discovery inputs, the first 32, and label each with the value that the causal model's forward run assigns to the target variable. With classes , counts , class means and the count-weighted global mean , we form the weighted class-mean matrix
so that is the between-class scatter matrix of linear discriminant analysis. Its leading eigenvectors are the leading right singular vectors of , which a thin SVD of the small matrix gives without ever forming the matrix . We take the first of them, where is the native DAS feature count read from the configuration. When the SVD returns fewer than rows we pad with Gaussian random rows, and a QR decomposition of the stacked rows gives the orthonormal basis that DAS would otherwise have initialised at random:
The basis is installed as a trainable subspace featurizer, so the exported codec is a valid rotation like the starter's.
classes, inv = np.unique(labels, return_inverse=True)
counts = np.bincount(inv, minlength=len(classes)).astype(np.float64)
for k, unit in enumerate(zipped[0]):
X = feats[0][k].float().numpy().astype(np.float64)
means = np.zeros((len(classes), hidden), dtype=np.float64)
np.add.at(means, inv, X)
means /= np.maximum(counts[:, None], 1.0)
mu = (counts[:, None] * means).sum(0) / max(counts.sum(), 1.0)
D = np.sqrt(counts)[:, None] * (means - mu)
_, _, Vt = np.linalg.svd(D, full_matrices=False)
comps = Vt[:n_features]
if comps.shape[0] < n_features:
pad = np.random.RandomState(0).randn(n_features - comps.shape[0], hidden)
comps = np.concatenate([comps, pad], 0)
q, _ = np.linalg.qr(comps.T)
rot = torch.tensor(q, dtype=torch.float32)
unit.set_featurizer(SubspaceFeaturizer(rotation_subspace=rot, trainable=True, id="LDA-DAS"))
unit.set_feature_indices(None)Then the same DAS training
The seed is only a starting point. After it is installed we label the discovery counterfactuals with the variable and call the same interchange-intervention training routine that native DAS uses, once per list of model units as native DAS does, with the experiment's own configuration. If the seed cannot be built for any reason, every unit falls back to the starter's randomly initialised DAS featurizer, so the method degrades to the baseline rather than failing.
except Exception:
for mul in experiment.model_units_lists:
for mu in mul:
for unit in mu:
unit.set_featurizer(SubspaceFeaturizer(shape=(hidden, n_features), trainable=True, id="DAS"))
unit.set_feature_indices(None)
labeled = []
for ds in ctx.data.values():
labeled += causal_model.label_counterfactual_data(ds, [variable])
for mul in experiment.model_units_lists:
_train_intervention(pipeline, mul, labeled, "interchange", config, experiment.loss_and_metric_fn)
return ctx.export_native(experiment)The design is deliberately minimal: whatever the training does, it does from a start that already points along the directions that separate the variable's values in the representation, rather than from a random rotation.
Circuits: re-linearising around the current circuit
For circuits we replace one-shot attribution by greedy growth with re-linearisation. Let be the current edge mask. In every round we run the model forward with every edge outside patched: a receiver gets, for each removed incoming edge , the difference between the sender's cached counterfactual activation and its activation in the current circuit, . That difference has to be computed live, during the forward pass of the circuit itself, not against the clean full model, because that is what patching an edge in a partially ablated model does.
def sub(act, hook, idx):
a = act.detach()
if a.ndim == 4:
for h in range(a.shape[2]):
diff[:, :, idx + h] -= a[:, :, h]
else:
diff[:, :, idx] -= a
return actA backward pass on the attribution loss then gives, at every receiver input, the gradient in the current ablated state, and the predicted marginal effect of adding edge is
summed over positions and averaged over the discovery examples. At the full circuit this is the edge-attribution score itself; inside a small circuit it is the same estimate taken where it is needed.
def make_bwd(prev, bwd, is_slice):
def hook(grads, hook):
g = grads.detach()
if is_slice:
if g.ndim == 3:
g = g.unsqueeze(2)
gain[:prev, bwd] += einsum(diff[:, :, :prev], g, 'b p s h, b p d h -> s d')
else:
if g.ndim == 4:
g = g.squeeze(2)
gain[:prev, bwd] += einsum(diff[:, :, :prev], g, 'b p s h, b p h -> s')
return hookAiming at faithfulness one
The edge to add is chosen by what it is predicted to do to the distance from full faithfulness, not by the size of its score. With the current faithfulness measured on the pruned circuit and the predicted change , the score of edge is
the predicted reduction in . While is below one this prefers edges that raise faithfulness; once it is near one it prefers edges that disturb it least, which is what keeps the curve from overshooting as the budgets grow. Each round adds the highest-scoring edges not yet in the circuit, where is the number of edges still allowed under the current budget and the pruned circuit size, so the step grows with the circuit. Edges are added until the budget is filled, so near the loop also adds edges whose predicted effect is slightly negative, choosing the least harmful. A budget's circuit is the pruned mask at the moment the budget is reached or its growth stops, so the circuits are nested. Growth starts from the starter's attribution circuit at the smallest budget, and stops early: for good after 600 rounds in total, and for the current budget when no edge can be added or after 8 consecutive rounds in which pruning leaves the circuit size unchanged.
while cur < target and rounds < MAXROUNDS:
_round(ctx, batches, M, gain)
rounds += 1
Mp = _pruned_copy(graph, M)
f = (_round_full(ctx, batches, Mp) - corr_m) / denom
df = gain / denom
score = abs(1.0 - f) - (1.0 - f - df).abs()
score[~real] = -1e30
score[M] = -1e30
remaining = target - cur
B = max(1, min(remaining, cur // 5 + 1))
flat = score.view(-1)
top = torch.topk(flat, min(B, nreal)).indices
added = 0
for idx in top.tolist():
if flat[idx] <= -1e29:
break
M.view(-1)[idx] = True
added += 1
if added == 0:
break
cur = int(_pruned_copy(graph, M).sum().item())
if cur == prev_cur:
stall += 1
if stall >= 8:
break
else:
stall = 0
prev_cur = curSelection on a validation split
A greedy fit to the discovery examples can overfit them. We therefore keep the starter's attribution circuits as well, measure the faithfulness of both on a validation split that discovery is allowed to draw, and at each budget keep the greedy circuit only if it is closer to by more than ; on a tie, or if either value is not a number, the attribution circuit is kept.
# Per-budget model selection on held-out validation faithfulness (target f = 1).
try:
eap_f = _eval_masks(ctx, eap_masks, "validation", 200)
greedy_f = _eval_masks(ctx, greedy_masks, "validation", 200)
except Exception:
return {"edge_masks": eap_masks}
chosen = []
for i in range(len(ctx.budgets)):
gf = greedy_f[i]
ef = eap_f[i]
if gf == gf and ef == ef and abs(1.0 - gf) < abs(1.0 - ef) - 1e-6:
chosen.append(greedy_masks[i])
else:
chosen.append(eap_masks[i])
return {"edge_masks": torch.stack(chosen)}Three branches keep the starter's attribution where the greedy step does not apply. When the full model's metric exceeds the empty circuit's by at most , or does not exceed it at all, faithfulness is ill-defined and the attribution scores are returned unchanged; any error in the greedy path also returns the attribution circuits. For graphs with more than 300,000 edges the greedy rounds are too expensive and the attribution circuits are returned. And for architectures that normalise each head's output before it is summed, our additive reconstruction of receiver inputs does not match the model, so we instead evaluate attribution circuits at a grid of sizes on the validation split and, per budget, keep the size whose faithfulness is closest to one, using the full graph whenever a budget admits every edge.
Results
| Method | ① | ② | ③ | ④ | ⑤ | ||
|---|---|---|---|---|---|---|---|
| Circuit-model distance (CMD) ↓ | Circuit performance ratio (CPR) ↑ | Circuit-model distance (CMD) ↓ | Circuit performance ratio (CPR) ↑ | Interchange accuracy (IIA) ↑ | Interchange accuracy (IIA) ↑ | Interchange accuracy (IIA) ↑ | |
| Qwen4-Max | 0.145 | 0.854 | 0.055 | 0.944 | 0.376 | 0.560 | 0.854 |
| EAP-IG + DAS | 0.145 | 0.854 | 0.069 | 0.930 | 0.377 | 0.563 | 0.830 |
| EAP | 0.160 | 0.845 | 0.068 | 0.931 | 0.377 | 0.563 | 0.830 |
| EAP-IG-activations | 0.066 | 0.935 | 0.377 | 0.563 | 0.830 | ||
| RelP | 0.154 | 0.845 | 0.094 | 0.915 | 0.377 | 0.563 | 0.830 |
| MAttr | 0.446 | 0.601 | 0.429 | 0.570 | 0.377 | 0.563 | 0.830 |
| Random circuit | 0.740 | 0.259 | 0.661 | 0.338 | 0.377 | 0.563 | 0.830 |
| Full vector | 0.145 | 0.854 | 0.069 | 0.930 | 0.294 | 0.491 | 0.467 |
| DBM | 0.145 | 0.854 | 0.069 | 0.930 | 0.345 | 0.530 | 0.713 |
- ① Llama-3.1-8B · ARC-Challenge circuit
- ② Gemma-2-2B · MCQA circuit
- ③ Gemma-2-2B · arithmetic carry variable
- ④ Gemma-2-2B · RAVEL country variable
- ⑤ Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable
On the causal settings the table reports interchange-intervention accuracy, which measures the causal-variable half of our submission; every circuit-side baseline shares the starter's DAS on this half, which is why those rows coincide with it.
On Gemma-2-2B · arithmetic carry variable and Gemma-2-2B · RAVEL country variable our seeded DAS is level with plain DAS, and marginally below it: 0.376 against 0.377 on Gemma-2-2B · arithmetic carry variable, and 0.560 against 0.563 on Gemma-2-2B · RAVEL country variable. On Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable it is ahead, 0.854 against 0.830. On each causal setting it is above the two causal-variable baselines that do not use DAS, the full-vector exchange (0.294, 0.491 and 0.467 on Gemma-2-2B · arithmetic carry variable, Gemma-2-2B · RAVEL country variable and Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable) and DBM (0.345, 0.530 and 0.713).
We read this modestly. The seed changes only where DAS starts, and the same training follows it, so small differences in either direction are what we would expect where the training reaches the same basin from either start. The gain on Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable is the one place where the start appears to matter; we have only per-setting means, so we cannot say how it compares with the run-to-run variation of DAS there, and our development measurements, below, did not predict it.
How we got here
The trace contains the agent's tool calls, their outputs and the research notes it kept. All numbers below are our development measurements on our own harness and our own discovery and held-out splits, not the reported evaluation.
Circuits first. We began by re-implementing the circuit metrics and running the starter and the published attribution baselines on several pairings of model and behaviour. No baseline won everywhere, and some attribution circuits overshot full faithfulness. Our diagnosis, written into our notes at the time, was that the clean-run gradient is the wrong linearisation point for a small circuit, which led to greedy growth with re-linearisation. The path to the final circuit method went through several dead ends:
- A first prototype was too slow, because it hooked every receiver and forced growth all the way to the full budget; the final version hooks only receivers still connected to the output.
- A correctness bug. Our first gains used the difference between counterfactual and clean full-model activations. Patching in the evaluator uses the live activation of the circuit being evaluated, and fixing this is what the live subtraction in our forward hook does.
- Adding only positive-gain edges and stopping at gave strong small circuits but a minimal circuit that overfit: in development it reached on discovery data and 0.689 on held-out data, and filling the remaining budget with positive-gain edges overshot to at a large budget. Ranking by absolute gain undershot at medium budgets (CPR 0.9128, CMD 0.0862 on our first pairing).
- The distance-to-one score was the first variant to beat the starter on that pairing, a CPR of 0.9756 and a CMD of 0.0234 against the starter's 0.9639 and 0.0364. It did not transfer cleanly: on another pairing it overshot (CPR 1.04, CMD 0.234), and a hybrid of the two rules plateaued at on a third. We checked the gains themselves against the edge-attribution scores at the full circuit and found a correlation of 0.99999, so the failure lay in the growth dynamics, not the estimate. This is why the final method falls back on validation selection rather than trusting the greedy circuit.
- Coordinate-selection subspace circuits, which keep only some coordinates of an edge through the task's feature interface, lowered faithfulness to zero at small budgets and were abandoned.
- Validation selection between the greedy and attribution circuits gave a CPR of 0.9801 and a CMD of 0.0204 on the first pairing, and is the form we kept.
- A greedy variant for head-output normalisation, reconstructing receiver inputs through the normalisation, was too slow and memory-hungry and was replaced by the validation-selected sizes; in development that branch lowered CMD from 0.0407 to 0.0214 on one pairing. On the largest graph we tried, a greedy round was too slow, which is where the edge-count branch comes from.
- Warm-starting the greedy growth from the smallest-budget attribution circuit came last. It improved a pairing where the cold start had fallen back to the attribution circuit (CMD 0.0151 against the starter's 0.0192), at a small cost on the first pairing (CMD 0.0204, against 0.016 for the cold start), and we kept it.
Causal variables. Our notes record that a better featurizer than DAS was the second goal from the start, and that it proved elusive. On our development variable plain DAS reached an IIA of 0.1608, and the full-vector exchange, a published baseline, reached 0.1996, above DAS. The variants we tried:
- The between-class seed with DAS training, in a first form that built the full scatter matrix on a larger subset, gave 0.159 against DAS's 0.1608 and added about a quarter to discovery time, so we reverted to plain DAS.
- The seed alone, without DAS training, gave 0.0931: the between-class directions on their own are a poor alignment, and the training is doing the work.
- Other DAS settings and baselines: more features gave 0.1683, longer training 0.1725, and DBM 0.1163. None was adopted.
- A cosine learning-rate schedule for DAS crashed in the training routine and was reverted.
- The thin-SVD seed removed the cost: 0.1609 against 0.1608, at roughly the time of plain DAS. We reverted it once more out of caution, then restored it after a study over three variables, in which seeded and plain DAS agreed to within 0.001 on each (0.1609 and 0.1608, 0.1310 and 0.1318, 0.0549 and 0.0550).
- Fewer features with the seed made things worse (0.1212 with two, 0.1396 with four), so the native feature count stayed. Shrinking the seed subset to its final size of 32 gave 0.1581 on our development variable.
We kept the seed as a principled, cost-neutral change that our development runs showed to be roughly level with DAS; they did not show it to be better.
Limitations
- Half of the submission is measured here only on the two circuit settings. The reported means are interchange-intervention accuracy, except CMD and CPR on the two circuit settings, where the circuit method's values are the best in the table or level with the best. The circuit method, which is most of our code and most of our development effort, has no other reported evaluation result in this write-up, and every other claim about it rests on our own development runs on a few pairings.
- The causal change is an initialisation. On Gemma-2-2B · arithmetic carry variable and Gemma-2-2B · RAVEL country variable it is level with plain DAS and marginally below it; only Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable shows a gain, and our development runs showed no gain on any of three variables. Without per-run variation we cannot rule out that the gain on Llama-3.1-8B-Instruct · ARC-Easy answer-pointer variable is within the noise of DAS training.
- The seed carries little information for variables with few values. Because the class means are centred, has rank at most , so a variable with values contributes at most informative directions; the remaining seed directions are an arbitrary completion of the SVD or Gaussian padding. For a binary variable the seed fixes a single direction.
- The seed subset is small and not sampled. The labels come from the first 32 discovery examples only, so a value that does not occur among them contributes no direction, and the seed inherits any ordering in the discovery data.
- Validation selection guards against, but does not guarantee, transfer. The comment in our code says the circuit method never does worse than the attribution circuits out of sample; what the code ensures is only that it is not worse on the validation split it selects on.
- The greedy circuit applies to part of the space. It is bypassed for graphs above 300,000 edges and for architectures with head-output normalisation, where the method reduces to selecting attribution-circuit sizes or to the attribution circuit itself, and its constants (the batch rule, 600 rounds, 8 stalled rounds) were set on very little development data.
References
- Aaron Mueller, Atticus Geiger, Sarah Wiegreffe et al. (2025). MIB: A Mechanistic Interpretability Benchmark. ICML.
- Aaquib Syed, Can Rager, Arthur Conmy (2023). Attribution Patching Outperforms Automated Circuit Discovery. NeurIPS.
- Michael Hanna, Sandro Pezzelle, Yonatan Belinkov (2024). Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanisms. COLM.
- Farnoush Rezaei Jafari, Oliver Eberle, Ashkan Khakzar et al. (2025). RelP: Faithful and Efficient Circuit Discovery in Language Models via Relevance Patching.
- Aryaman Arora, Kirill Acharya, Nathan Hu et al. (2026). Matryoshka attribution: Learning to attribute language model outputs to representations and weights.
- Samuel Marks, Can Rager, Eric J. Michaud et al. (2025). Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models. ICLR.
- Atticus Geiger, Zhengxuan Wu, Christopher Potts et al. (2023). Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representations.