Attention as a Routing Graph: Live Circuit Extraction from a Single Forward Pass

Ash Manvi, Samreena Tajreen
9/21/2026
cs.AIcs.LG

Official code: Aquinf03/live-circuit-routing (1 star, Apache-2.0, last commit 2026-09-08).

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Attention as a Routing Graph as Live Circuit Extraction

10TeX, PythonSep 7, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{manvi2026attention,
  title  = {Attention as a Routing Graph: Live Circuit Extraction from a Single Forward Pass},
  author = {Ash Manvi and Samreena Tajreen},
  year   = {2026},
  eprint = {2609.25285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.25285v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.25285.svg)](https://codeofpaper.com/paper/2609.25285)

Discussion