atlas

Research map / Architectures and efficiency / Attention and transformers

Circuit Component Reuse Across Tasks in Transformer Language Models

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that the GPT2-Medium circuit for Indirect Object Identification (IOI) is largely reused for a Colored Objects copying task (about 78% head overlap), and that intervening on inhibition and negative mover heads raises Colored Objects accuracy from 49.6% to 93.7%.

Problem

Whether circuits found by mechanistic interpretability are task-specific or whether components and algorithmic building blocks are reused across different tasks in transformer language models.

Approach

Reproduces the GPT2-Small IOI circuit on GPT2-Medium, then uses path patching to show that a seemingly different Colored Objects task recruits largely the same heads (mover, induction/duplicate, with content gatherers replacing inhibition heads), and repairs its errors by forcing inhibition and negative mover heads to attend to incorrect colors.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Force three inhibition heads and negative mover head 19.1 to attend to incorrect color optionsGPT2-Medium · Colored Objectsaccuracy: 49.6% to 93.7%Helped
Add the negative-mover intervention alongside the inhibition-head intervention (ablation)GPT2-Medium with inhibition-head intervention · Colored Objectsaccuracy: 81.5% -> 93.7%Helped
Add the inhibition-head intervention alongside the negative-mover intervention (ablation)GPT2-Medium with negative-mover intervention · Colored Objectsaccuracy: 78.1% -> 93.7%Helped
Block content-gatherer attention to the queried object token (ablation)GPT2-Medium · Colored Objectsaccuracy: nullHurt
Block content-gatherer attention to the token “color” (ablation)GPT2-Medium · Colored ObjectsaccuracyNo clear effect
Block content-gatherer attention to hypothesized question tokens at the end position (ablation)GPT2-Medium · Colored Objectsaccuracy: to 35%Hurt
Block attention for three randomly sampled non-content-gatherer heads instead (ablation)GPT2-Medium · Colored Objectsaccuracy: 49.9%±1.0No clear effect
Force inhibition and negative mover heads to attend to incorrect color optionsGPT2-Medium · Colored Objectsattention to incorrect colors: -8.7%Helped
Force inhibition and negative mover heads to attend to incorrect color optionsGPT2-Medium · Colored Objectsattention to correct color: 2.7%Helped

Surprising findings

Limitations

Experimental setup

Datasets: IOI dataset (1000 examples) Colored Objects dataset derived from BIG-Bench (1000 examples) Greater Than dataset (200 examples)

Benchmarks: IOI Colored Objects

Metrics: accuracy logit difference head overlap (%) attention to wrong colors

Baselines: GPT2-Small IOI circuit random head ablation

Builds on: path patching IOI circuit (Wang et al.) BIG-Bench reasoning about colored objects TransformerLens

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy