Attention as a Routing Graph: Live Circuit Extraction from a Single Forward Pass
Abstract
Finding circuits in language models usually means running many careful interventions. We try something simpler: treat attention as a routing map from one forward pass, keep a small set of routes that point toward the answer, and ask whether those routes actually matter. They often do. On induction and IOI (tasks where the "right" circuit is already known), ablating our extracted edges hurts the model much more than ablating a random set of the same size. We evaluate n=100 prompts per cell on GPT-2 Small, GPT-2 Medium, and Pythia-410M, with paired gap tests and bootstrap confidence intervals. The extract step costs one forward; a head-by-head patch sweep costs about two orders of magnitude more. We are not claiming a complete circuit atlas. We are claiming a cheap sketch that carries real causal signal on known tasks, with clear failure modes when it does not. Code and evaluation artifacts are at https://github.com/Aquinf03/live-circuit-routing.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- 7 Pages, 5 Figures, 1 table, Code: https://github.com/Aquinf03/live-circuit-routing
Related papers
Safe Autoformalization: Sufficiency and Necessity with Entailment Graphs
Shared title terminologycs.AIUmut A. Acar, Eli Goldweber
Revisiting Learning to Delegate: LLM Discovered Heuristics for Large-Scale Vehicle Routing
Shared title terminologycs.AIZhengyang Wang, Renfei Tan, Shuze Daniel Liu et al.
ChiProgramBench: Can LLM Agents Rebuild Efficient Circuits from Pin-Level Experiments?
Shared title terminologycs.AITianrun Gou, Qingyao Yang, Wendong Xu et al.
Decoupling Solving from Abstention: Single-Rollout Conformal Risk Control for Hard-Budget LLM Reasoning
Shared title terminologycs.AIQianyi Chen, Bo Li
Could This BE Any More Wrong? Teaching VLMs to Know What They Don't Know in Document Extraction
Shared title terminologycs.AIVarad Srivastava, Victor Casas Hernandez
Back to the Definition: Estimating Step-Level Advantages via Trajectory Graphs for Agentic Reinforcement Learning
Shared title terminologycs.AIXincheng Yao, Haobo Fu, Weiming Liu et al.