Skip to content
DraconiticResearch
Search Sources API
201,818 studies31 sourcesUpdated 34 min ago
PreprintCC BY 4.0arXiv

Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models

Abstract

Localizing behavior to individual components of a language model is a central goal of mechanistic interpretability. However, scoring components one at a time misses context-dependent effects: a primary component can inhibit the activation of a backup, leading to issues with ranking components. Actual causality studies the structure of such interactions via witnesses: variables that provide contextual information to resolve interaction terms. However, estimation with witnesses typically requires combinatorial enumeration and is infeasible in practice. We introduce the witness-integrated set effect (WISE), a family of causal estimands that build on the witness mechanism while taking expectations over sets of causes and witnesses to remain computationally feasible. Building on this approach, we introduce JuntaLearner, a gradient-based circuit discovery method that learns to rank components by their causal impact across varying-sized sets of components and witnesses. Alongside faithfulness metrics, we introduce measures of necessity and task specificity, and the circuit recognition score (CRS) to summarize each metric across circuit sizes while emphasizing effects achieved by small circuits. Across tasks and models of increasing size, JuntaLearner achieves higher mean CRS compared to attribution baselines on all metrics. Since its cost does not grow with the number of candidate components, JuntaLearner scales to large models while accounting for set-level interactions and avoiding first-order approximations.

Related

  1. Verifier-guided discovery of exact high-order mimetic operators with large language models
    J. de Curtò, I. de Zarzà
    arXivPreprintCC BY 4.0Full textNumerical analysis & scientific computingarXiv
  2. Inductive Grounded Arithmetic: Goodstein, the Hydra, and Γ0
    Bryan Ford
    arXivPreprintCC BY-NC-ND 4.0Full textLogic & foundationsarXiv
  3. Provable circuit-level thresholds for non-abelian topological phases
    Yuanjie Ren, Margarita Davydova, Shankar Balasubramanian +1
    arXivPreprintarXiv licenceFull textMathematical physicsCondensed matterarXiv
  4. A counterexample to the circuit-cocircuit intersection conjecture
    Houshan Fu
    arXivPreprintCC BY 4.0Full textCombinatorics & discrete mathematicsarXiv
  5. Elementary modal logics and circuit complexity
    Tenyo Takahashi
    arXivPreprintCC BY 4.0Full textLogic & foundationsarXiv
BibTeX
@misc{vaidyanathan2026slaying,
  title = {{Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models}},
  author = {Sankaran Vaidyanathan and Rafal Urbaniak and Emily Bunnapradist and Michelangelo Naim and Daniel Waxman},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.04017},
  eprint = {2610.04017},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.04017},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models
AU  - Sankaran Vaidyanathan
AU  - Rafal Urbaniak
AU  - Emily Bunnapradist
AU  - Michelangelo Naim
AU  - Daniel Waxman
PY  - 2026
DA  - 2026/10/02
PB  - arXiv
DO  - 10.48550/arxiv.2610.04017
UR  - https://arxiv.org/abs/2610.04017
AB  - Localizing behavior to individual components of a language model is a central goal of mechanistic interpretability. However, scoring components one at a time misses context-dependent effects: a primary component can inhibit the activation of a backup, leading to issues with ranking components. Actual causality studies the structure of such interactions via witnesses: variables that provide contextual information to resolve interaction terms. However, estimation with witnesses typically requires combinatorial enumeration and is infeasible in practice. We introduce the witness-integrated set effect (WISE), a family of causal estimands that build on the witness mechanism while taking expectations over sets of causes and witnesses to remain computationally feasible. Building on this approach, we introduce JuntaLearner, a gradient-based circuit discovery method that learns to rank components by their causal impact across varying-sized sets of components and witnesses. Alongside faithfulness metrics, we introduce measures of necessity and task specificity, and the circuit recognition score (CRS) to summarize each metric across circuit sizes while emphasizing effects achieved by small circuits. Across tasks and models of increasing size, JuntaLearner achieves higher mean CRS compared to attribution baselines on all metrics. Since its cost does not grow with the number of candidate components, JuntaLearner scales to large models while accounting for set-level interactions and avoiding first-order approximations.
ER  -