Reproduce “Through the Looking Glass: Directly Reading and Writing Transformers” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Mark Oskin
Researchers at the University of Washington developed a direct "lens" for transformer interpretability, revealing that token predictions are driven by significantly smaller circuits (e.g., 53 components for 90% of net contribution) than indicated by conventional attribution methods. This approach enables identifying, naming, and precisely editing individual model components, even allowing the installation of new associations into single units with high specificity.
Key insights
- Transformer token predictions rely on significantly smaller "circuits" (tens of components) than suggested by absolute contribution metrics, as much internal computation constitutes architectural "carriage."
- Individual feed-forward units and attention channels can be "named" by decoding their parameter-derived read and write scopes, which often correspond to coherent grammatical or semantic categories.
- Order-preserving activation functions (e.g., sigmoid, softplus) substantially enhance component legibility and lead to smaller, more effective computational circuits compared to conventional GELU.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.