paper-with-me

Papers

Emergence of Minimal Circuits for Indirect Object Identification in Attention-Only Transformers

2025-10-28 · Rabin Adhikari arxiv

Mechanistic interpretability aims to reverse-engineer large language models (LLMs) into human-understandable computational circuits. However, the complexity of pretrained models often obscures the minimal mechanisms required for specific reasoning tasks. In this work, we train small, attention-only transformers from scratch on a symbolic version of the Indirect Object Identification (IOI) task, a benchmark for studying coreference-like reasoning in transformers. Surprisingly, a single-layer model with only two attention heads achieves perfect IOI accuracy, despite lacking MLPs and normalization layers. Through residual stream decomposition, spectral analysis, and embedding interventions, we find that the two heads specialize into additive and contrastive subcircuits that jointly implement IOI resolution. Furthermore, we show that a two-layer, one-head model composes information from the previous layer primarily through query-key interactions. These results demonstrate that task-specific training induces highly interpretable, minimal circuits, offering a controlled testbed for probing the computational foundations of transformer reasoning.

📄 PDF Abstract BibTeX arXiv:2510.25013

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

IBCircuit: Towards Holistic Circuit Discovery with Information Bottleneck

2026-02-26 · Tian Bian, Yifan Niu, Chaohao Yuan, Chengzhi Piao 외 arxiv

Circuit discovery has recently attracted attention as a potential research direction to explain the non-trivial behaviors of language models. It aims to find the computational subgraphs, also known as circuits, within th…

Automatically Identifying Local and Global Circuits with Linear Computation Graphs

2024-05-22 · Xuyang Ge, Fukang Zhu, Wentao Shu, Junxuan Wang 외

Circuit analysis of any certain model behavior is a central task in mechanistic interpretability. We introduce our circuit discovery pipeline with Sparse Autoencoders (SAEs) and a variant called Transcoders. With these t…

Adaptive Circuit Behavior and Generalization in Mechanistic Interpretability

2024-11-25 · Jatin Nainani, Sankaran Vaidyanathan, AJ Yeung, Kartik Gupta 외

Mechanistic interpretability aims to understand the inner workings of large neural networks by identifying circuits, or minimal subgraphs within the model that implement algorithms responsible for performing specific tas…

From Indirect Object Identification to Syllogisms: Exploring Binary Mechanisms in Transformer Circuits

2025-08-22 · Karim Saraipour, Shichang Zhang arxiv

Transformer-based language models (LMs) can perform a wide range of tasks, and mechanistic interpretability (MI) aims to reverse engineer the components responsible for task completion to understand their behavior. Previ…

Logical Reasoning

Emergence and Localisation of Semantic Role Circuits in LLMs

2025-11-25 · Nura Aljaafari, Danilo S. Carvalho, André Freitas arxiv

Despite displaying semantic competence, large language models' internal mechanisms that ground abstract semantic structure remain insufficiently characterised. We propose a method integrating role-cross minimal pairs, te…