InterpBench: Semi-Synthetic Transformers for Evaluating Mechanistic Interpretability Techniques

Rohan Gupta, Iván Arcuschin, Thomas Kwa, Adrià Garriga-Alonso
7/19/2024
cs.LG

No official code found. Best implementation: FlyingPumba/InterpBench (17 stars, MIT, last commit 2024-12-15).

Abstract

Mechanistic interpretability methods aim to identify the algorithm a neural network implements, but it is difficult to validate such methods when the true algorithm is unknown. This work presents InterpBench, a collection of semi-synthetic yet realistic transformers with known circuits for evaluating these techniques. We train simple neural networks using a stricter version of Interchange Intervention Training (IIT) which we call Strict IIT (SIIT). Like the original, SIIT trains neural networks by aligning their internal computation with a desired high-level causal model, but it also prevents non-circuit nodes from affecting the model's output. We evaluate SIIT on sparse transformers produced by the Tracr tool and find that SIIT models maintain Tracr's original circuit while being more realistic. SIIT can also train transformers with larger circuits, like Indirect Object Identification (IOI). Finally, we use our benchmark to evaluate existing circuit discovery techniques.

View on arXivView PDF

Code Implementations(1)

MIT

A benchmark for mechanistic discovery of circuits in Transformers

174Python, DockerfileJan 15, 20241 years agoMIT

Similar Papers

Cite this paper

@article{gupta2024interpbench,
  title  = {InterpBench: Semi-Synthetic Transformers for Evaluating Mechanistic Interpretability Techniques},
  author = {Rohan Gupta and Iván Arcuschin and Thomas Kwa and Adrià Garriga-Alonso},
  year   = {2024},
  eprint = {2407.14494},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.14494},
  url    = {http://arxiv.org/abs/2407.14494v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.14494.svg)](https://codeofpaper.com/paper/2407.14494)

Discussion