mlsanityData to 14 Oct 2026

Query Circuits: Explaining How Language Models Answer User Prompts

arXiv 2509.24808 ↗First posted 29 Sep 2025cs.AIcited by 0

On the map: Mechanistic interpretability → Circuits and mechanistic analysis

Abstract (arXiv)

Explaining why a language model produces a particular output requires local, input-level explanations. Existing methods uncover global capability circuits (e.g., indirect object identification), but not why the model answers a specific input query in a particular way. We introduce query circuits, which directly trace the information flow inside a model that maps a specific input to the output. Unlike surrogate-based approaches (e.g., sparse autoencoders), query circuits are identified within the model itself, resulting in more faithful and computationally accessible explanations. To make query circuits practical, we address two challenges. First, we introduce Normalized Deviation Faithfulness (NDF), a robust metric to evaluate how well a discovered circuit recovers the model's decision for a specific input, and is broadly applicable to circuit discovery beyond our setting. Second, we develop sampling-based methods to efficiently identify circuits that are sparse yet faithfully describe the model's behavior. Across benchmarks (IOI, arithmetic, MMLU, and ARC), we find that there exist extremely sparse query circuits within the model that can recover much of its performance on single queries. For example, a circuit covering only 1.3% of model connections can recover about 60% of performance on an MMLU questions. Overall, query circuits provide a step towards faithful, scalable explanations of how language models process individual inputs. The project page is at https://tony10101105.github.io/query-circuit/.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 32 of its 47 references that are in the map. First posted on arXiv 29 Sep 2025.

Builds on

32 of 47 references.

Closest ancestors · 8

Same direction, newest first

  1. 2025Granular Concept Circuits: Toward a Fine-Grained Circuit Discovery for Concept Representations3 Aug
  2. 2025MIB: A Mechanistic Interpretability Benchmark17 Apr
  3. 2025EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit Identification7 Feb
  4. 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr
  5. 2023Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language Models7 Nov
  6. 2023Attribution Patching Outperforms Automated Circuit Discovery16 Oct
  7. 2023Towards Automated Circuit Discovery for Mechanistic Interpretability28 Apr
  8. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small1 Nov

Other references · 24

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  5. 2024GPT-4o System Cardcited by 4,588
  6. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,262
  7. 2017SmoothGrad: removing noise by adding noisecited by 1,109
  8. 2024Scaling and evaluating sparse autoencoderscited by 553
  9. 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 486
  10. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
  11. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 359
  12. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
12 more
  1. 2024How to use and interpret activation patchingcited by 214
  2. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
  3. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
  4. 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 122
  5. 2021Guided Integrated Gradients: An Adaptive Path Method for Removing Noisecited by 102
  6. 2021Explanations in Autonomous Driving: A Surveycited by 81
  7. 2024SelfIE: Self-Interpretation of Large Language Model Embeddingscited by 67
  8. 2019Why are Saliency Maps Noisy? Cause of and Solution to Noisy Saliency Mapscited by 34
  9. 2024Do LLMs Overcome Shortcut Learning? An Evaluation of Shortcut Challenges in Large Language Modelscited by 25
  10. 2024Enhancing Neural Network Interpretability with Feature-Aligned Sparse Autoencoderscited by 25
  11. 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 7
  12. 2025Scaling sparse feature circuit finding for in-context learningcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Data-driven Circuit Discovery for Interpretability of Language Models
  2. 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates
  3. 2025Position-aware Automatic Circuit Discovery
  4. 2025Attribution-Guided Pruning for Insight and Control: Circuit Discovery and Targeted Correction in Small-scale LLMs
  5. 2025Circuit Stability Characterizes Language Model Generalization
  6. 2024Hypothesis Testing the Circuit Hypothesis in LLMs
  7. 2026Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models
  8. 2026Can Language Model Agents be Helpful Circuit Explainers in Mechanistic Interpretability?