Automated Circuit Interpretation via Probe Prompting
Giuseppe Birardi
TL;DR
This work tackles mechanistic interpretability by automating circuit interpretation through probe prompting, transforming attribution graphs into compact, concept-aligned subgraphs categorized as Semantic, Relationship, and Say-X. It introduces cross-prompt activation signatures to quantify feature behavior across probe prompts, and employs transparent, rule-based decision logic to achieve interpretability-oriented compression with Completeness around 0.83 and Replacement around 0.54. Empirical results on multiple prompt families demonstrate superior behavioral coherence of concept-aligned groups over geometric baselines (2.3x token-consistency; 5.8x activation-pattern similarity) and reveal a layerwise hierarchy where early layers generalize across entity substitutions while late layers specialize for output promotion. The approach promises substantial speedups for first-pass analysis, standardizes a taxonomy for reporting circuit motifs, and provides a foundation for safety-oriented interpretability research, with public code and interactive demos to encourage community adoption.
Abstract
Mechanistic interpretability aims to understand neural networks by identifying which learned features mediate specific behaviors. Attribution graphs reveal these feature pathways, but interpreting them requires extensive manual analysis -- a single prompt can take approximately 2 hours for an experienced circuit tracer. We present probe prompting, an automated pipeline that transforms attribution graphs into compact, interpretable subgraphs built from concept-aligned supernodes. Starting from a seed prompt and target logit, we select high-influence features, generate concept-targeted yet context-varying probes, and group features by cross-prompt activation signatures into Semantic, Relationship, and Say-X categories using transparent decision rules. Across five prompts including classic "capitals" circuits, probe-prompted subgraphs preserve high explanatory coverage while compressing complexity (Completeness 0.83, mean across circuits; Replacement 0.54). Compared to geometric clustering baselines, concept-aligned groups exhibit higher behavioral coherence: 2.3x higher peak-token consistency (0.425 vs 0.183) and 5.8x higher activation-pattern similarity (0.762 vs 0.130), despite lower geometric compactness. Entity-swap tests reveal a layerwise hierarchy: early-layer features transfer robustly (64% transfer rate, mean layer 6.3), while late-layer Say-X features specialize for output promotion (mean layer 16.4), supporting a backbone-and-specialization view of transformer computation. We release code (https://github.com/peppinob-ol/attribution-graph-probing), an interactive demo (https://huggingface.co/spaces/Peppinob/attribution-graph-probing), and minimal artifacts enabling immediate reproduction and community adoption.
