Skip to main content
An attribution graph ranks features by influence, and influence is not necessity. The validator intervenes on groups of features and compares each effect with the same intervention on features that are not in the circuit.

The checks

1

Ablation

Set the group’s features to 0 at their positions. A feature the output needs moves the metric.
2

Steering

Multiply them by steer_scale (3 by default). A feature that drives the output moves it again.
3

Counterfactual patch (optional)

Give them the values they take on a prompt with a different answer. A switch moves the output toward that answer.
4

Controls

Repeat each intervention on n_controls random feature sets (same layer and position where possible) and on n_controls sets matched by write size (|activation| x decoder norm). An effect counts only if it beats both kinds at p ≤ alpha.
5

Explanation swap (optional)

Gao’s swap test: replace each feature with the value its explanation predicts, written as a small Python rule, and measure how much of the feature’s effect survives.

Verdicts

On a real model

gpu
Or from the command line, with features given as layer:feature@position:
gpu

Groups

By default the validator tests all given features together, then each alone. Pass groups= to test supernodes:
The backup pair shows why single-feature ablation can mislead. Each feature alone is redundant, so ablating one does nothing. Steering either one still moves the output, which earns the backup verdict rather than readout.

Parameters

int
default:"20"
Control sets per kind. The smallest possible p-value is 1 / (n + 1), so below 19 nothing can reach p ≤ 0.05. The report notes it when that happens.
float
default:"3.0"
Multiplier for the steering check.
Thresholds
min_effect (0.2 of the scale), alpha (0.05), patch_min (0.3 of the gap), explained_min (0.8). The scale is the clean-to-counterfactual gap, or the clean metric’s size without a counterfactual. Every rule is printed in the report.
dict[(layer, feature), str]
Explanation rules for the swap test: Python source defining predict(tokens, i) -> float, run in a restricted namespace that rejects imports, dunder access and unknown names before running.

Reproducing the circuits episodes

examples/modal/live_checks.py runs the validator with TracerBackend on the two organisms from steerlab’s circuits episodes:
  • RL hack: the ten features the graph diff picks, at three comment slots.
  • Password lock: the study’s ten claimed features, with the password prompt as the counterfactual.
The results are in examples/data/live/ and checked by tests/test_live_results.py.