The pipeline
1
Split the records
A feature’s activation records (tokens and the feature’s value on each) are split three ways: the top 12 by peak
activation to explain, 8 further activating records, and 8 silent records to score.
2
Explain
The model sees the explain set with active tokens marked
<<token>>(strength). It writes a label of at most 12
words and a confidence from 0 to 100.3
Score: detection
The model gets the label and a shuffled mix of held-out excerpts, and gives each a probability that the feature
fires. Scores: AUROC, balanced accuracy and the Brier score.
4
Score: simulation (optional)
The model predicts the activation of every token from the label alone. The score is the correlation with the real
activations.
5
Calibrate
Across features, compare stated confidence with the score earned, and the detector’s probabilities with the
truth: expected calibration error and reliability bins.
Run it
- Claude (default)
- OpenAI
- Command line
CachedLLM stores every reply in a JSON-lines file keyed by model, prompt and token limit. A rerun costs nothing,
and a committed cache lets readers rerun a notebook without a key.Records from your own model
FeatureData takes any activation records. With circuit-tracer, read a feature’s activations over a text corpus
with model.get_activations(text, sparse=True) and keep the feature’s column:
Neuronpedia
Fetch
labels.neuronpedia.feature_data(model_id, source, index) returns a feature’s records and Neuronpedia’s own labels.Export
export_explanations(labels, model_id, source, path) writes rows in Neuronpedia’s explanation format (modelId,
layer, index, description, explanationModelName, typeName, scores).Results on 50 Gemma-2-2B features
Claude Haiku 5.5 labelled 21 features from circuit-tracer’s Dallas/Austin graph and 29 random ones. Every label was scored by the same detector (Haiku 5.5) on the same held-out records:
Labelling and scoring all three label sets cost $0.26 at list prices. The explainer’s stated confidence barely tracks
the score it earns (r = 0.11), so rank labels by score, not confidence. The detector is underconfident on activating
excerpts: a third of the excerpts it gave about 5% turned out to be active (ECE 0.26).