Back to AI News
arxiv

Beyond Patching: Consistent Circuit Discovery via Gradient Spectral Analysis

This paper introduces Spectral Circuit Analysis (SCA), a gradient-spectral pipeline for mechanistic interpretability that discovers circuits consistently across different input formulations and tasks. SCA uses block-wise SVD to extract task subspaces and redistribute spectral energy, achieving competitive or superior results to attribution-patching baselines with less supervision. On GPT-2 Small and Pythia-160M, SCA recovers IOI canonical heads with perfect precision in top-10 slices and enables cross-task analysis of unit universality.

AI Brief

Provides a novel, counterfactual-free method for circuit discovery that improves consistency and reduces reliance on prompt engineering, with strong empirical results.

arXiv:2611.30939v1 Announce Type: cross Abstract: Mechanistic interpretability seeks to reverse-engineer neural networks by identifying small, faithful subgraphs--circuits--that implement specific behaviors. The dominant paradigm scores each unit by replacing its clean activation with a corrupted counterpart as causal intervention. While effective, this approach rests on a brittle prerequisite: the structure prompt pairs are task-specific, expensive to engineer, and silently couple the discovered circuit to prompt-design choices. In this work, we propose Spectral Circuit Analysis (SCA), a gradient-spectral pipeline that achieves consistent circuit discovery along both axes: stable across input formulations of the same task, and natively exposing structure shared across tasks. Our contributions are threefold. First, we provide a counterfactual-free reframing of circuit discovery: causally relevant directions are recoverable from the spectral structure of forward gradients across paraphrases, with leading directions concentrating task signal and trailing ones absorbing paraphrase noise, yielding circuits tied to the task rather than the prompt. Second, we introduce SCA, a block-wise SVD pipeline that extracts a task subspace per architectural block and redistributes spectral energy onto constituent units via a consistency-weighted share, producing per-unit rankings competitive with attribution-patching baselines under strictly less supervision. Finally, on twelve circuit-discovery tasks in GPT-2 Small and Pythia-160M, SCA performs comparably or exceeds EAP-family methods under the standard recovery-score protocol and recovers IOI canonical heads with Precision@K = 1.0 in top-10 slices on GPT-2 Small; the same machinery extends to a unified cross-task analysis classifying units as universal, family-shared, or task-specific and exposing compositional structure invisible to per-task analyses.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!