Manuscript Offprint

arXiv:2611.00420

Circuit Oracle: Automating Attribution Graph Analysis via Natural-Language Queries

Shariar Kabir, Hong Kiat Tan, Swastik Agrawal, Sai V R Chereddy, Sriram Balasubramanian

ABSTRACT

Attribution graphs, an emerging tool in mechanistic interpretability, use transcoders to decompose language model computations into sparse interpretable features connected by causal edges. However, turning a graph into a safety-relevant insight requires hours of manual analysis by experts. We introduce Circuit Oracle, an off-the-shelf LLM equipped with a multi-agent harness and task-specific authored skills, which answers natural-language questions about a target model by reading the attribution graph through tool calls. We evaluate it on three safety-relevant proxy tasks: detecting spurious features in probe circuits, eliciting hidden knowledge from taboo-finetuned models, and suppression jailbreaking via feature-level interventions. Beyond task scores, the oracle produces pruned subgraphs and context-specific feature explanations that we assess qualitatively. Results are mixed. On spurious-feature detection, Circuit Oracle reaches 78.2 ± 2.4% accuracy, out-performing single-layer feature-ranking baselines. On secret elicitation, trained self-explainers like Activation Oracles remain the stronger baseline. On refusal suppression over 50 prompts, its single committed intervention is slightly below a diff-in-means baseline, and only exceeds it when allowed the best of five attempts. Results are stable across five runs and across model choices for the agents. We also release the pruned subgraphs and context-specific feature readings that revise existing global labels, and invite future work to develop evaluations that can measure their usefulness directly.

1 INTRODUCTION

A goal of AI safety is understanding how language models arrive at their outputs, not merely what they output. Mechanistic interpretability aims to reverse-engineer neural network computations by finding "circuits" of features connected by causal influence to explain a model's output. Attribution graphs can serve as a "trace" of the model's internal computation, similar to how the chain-of-thought of a model constitutes its externalized computation. Work on attribution graphs (Anthropic, 2025b;a) combines transcoders (Dunefsky et al., 2024), which decompose MLP computations into sparse, interpretable features, with backward Jacobian attribution to produce directed graphs that locally model the direct causal effects between features.

While attribution graphs can provide a rich substrate for understanding model behavior, extracting safety-relevant insights from them remains a bottleneck. A graph for a short prompt can contain hundreds of active features across dozens of layers, with thousands of nonzero edges in the adjacency matrix. Identifying which features carry spurious correlations, conceal a secret, or encode a suppression mechanism currently requires expertise and manual effort. Furthermore, it is quite unclear how to evaluate the quality of a particular attribution graph. Most prior works (Mueller et al., 2025; Rai et al., 2025; Hanna et al., 2024) rely on faithfulness or intervention checks that test whether a circuit reproduces the target model's behavior.

To this end, analogous to activation oracles (Karvonen et al., 2025) that answer questions about activations, we propose circuit oracles that answer natural-language questions about attribution

*Equal contribution. Correspondence to: Shariar Kabir shariar1406076@gmail.com.

Figure

Figure 1: The Circuit Oracle pipeline, illustrated on the spurious feature detection task, where we ask whether a probe's decision relies on spurious features rather than genuine task signal. The input bio and the probe's predicted profession (Nurse) appear on the top left, and the natural-language question posed to the oracle on the bottom left. The oracle, equipped with the probe's attribution graph and a task-specific skill (a system prompt paired with graph-traversal and task-specific tools), inspects the graph through a sequence of tool calls, namely Scout, Dispatch, Merge, and Build.

graphs. We implement a circuit oracle as an agentic system built around a frontier LLM, equipped with tools to traverse an attribution graph and answer high-level questions about the inner workings of the model (e.g. "Is this prediction driven by spurious features?"). A key insight is that attribution graphs, unlike raw activations, are already structured in a form amenable to LLM reasoning. Nodes have semantic labels from dictionary learning, edges have quantitative weights from gradient-based attribution, and the graph has a natural directionality from input embeddings to output logits. Rather than training a specialized model to interpret activations (Karvonen et al., 2025), we leverage the reasoning capabilities of an off-the-shelf frontier LLM operating over this structured representation.

Concretely, we organize the framework around skills, modeled after Anthropic's Agent Skills (Zhang et al., 2025). A skill is a static task spec bundling a system prompt with shared graph-traversal tools and task-specific tools, including interventions that steer transcoder features and re-run the target model to verify the effect. Figure 1 illustrates the pipeline on the spurious detection task. The oracle autonomously explores the graph, following causal edges and inspecting features, and may spawn parallel subagents to trace separate paths. Extending the framework to a new safety question means writing a new skill, not fine-tuning a dedicated model on activations. We envision red-teamers and auditors either writing new skills or applying existing ones as off-the-shelf interpretability tools for downstream safety questions.

Next, we evaluate the framework on three proxy tasks highly relevant to AI safety: detecting spurious correlations on probe circuits (Section 4), eliciting hidden knowledge from taboo-finetuned models (Section 5), and jailbreaking suppression behaviors via causal intervention (Section 6). We write dedicated skills per task. The results are mixed. On spurious-feature detection, the oracle reaches 78.2% ± 2.4 accuracy (5-pass mean), ahead of single-layer cosine-similarity baselines (Transcoder 72.5%, SAE 65.0%). A one-shot readout with no edge traversal reaches a comparable 77.5% on this task, but on suppression jailbreaking, the it collapses to near-baseline (Section 7). On secret elicitation, the oracle clears both SAE and transcoder projection baselines by a wide margin but trails the Activation Oracle baseline (69.2% vs. 81.2% closed-menu). On refusal suppression, its single committed intervention is slightly behind the diff-in-mean refusal-direction baseline of Arditi et al. (2024) (0.804 vs. 0.825 pooled judge score over 50 prompts) and exceeds it when allowed the best of five attempts (0.854). We repeat the full pipeline across passes and across orchestrator choices. Beyond task scores, the oracle outputs an analysis alongside a pruned attribution graph, an artifact the user can inspect, and we discuss what this buys beyond the proxy-task numbers in Section 7. The code is anonymously available at https://anonymous.4open.science/r/circuit-oracle-D878/.

References (51)