Investigating the Indirect Object Identification circuit in Mamba
Danielle Ensign, Adrià Garriga-Alonso
TL;DR
The paper explores whether circuit-based mechanistic interpretability techniques generalize to the Mamba architecture by studying the Indirect Object Identification (IOI) task. It combines manual ablations and semi-automatic discovery (ACDC/EAP) to identify a bottleneck in Layer 39, demonstrates that a convolution shifts name tokens forward, and reveals linear, position-dependent name representations in the Layer-39 SSM. Positional EAP is introduced to enable token-level edge attributions, strengthening the link between recovered circuits and IOI performance. Overall, the work provides initial evidence that circuit-based interpretability tools transfer to Mamba and offers a blueprint for analyzing IOI-like tasks in state-space recurrence models.
Abstract
How well will current interpretability techniques generalize to future models? A relevant case study is Mamba, a recent recurrent architecture with scaling comparable to Transformers. We adapt pre-Mamba techniques to Mamba and partially reverse-engineer the circuit responsible for the Indirect Object Identification (IOI) task. Our techniques provide evidence that 1) Layer 39 is a key bottleneck, 2) Convolutions in layer 39 shift names one position forward, and 3) The name entities are stored linearly in Layer 39's SSM. Finally, we adapt an automatic circuit discovery tool, positional Edge Attribution Patching, to identify a Mamba IOI circuit. Our contributions provide initial evidence that circuit-based mechanistic interpretability tools work well for the Mamba architecture.
