atlas

Research map / Architectures and efficiency / Attention and transformers

Talking Heads: Understanding Inter-Layer Communication in Transformer Language Models

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 1 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.

Identifies low-rank communication channels between attention heads in GPT-2 small and Pythia-160m using SVD-decomposed composition scores, and shows an inhibition-channel subspace controls positional indexing that explains prompt-order sensitivity on the Laundry List task.

Problem

How transformer LMs represent and route information between layers, and what mechanism explains order-dependent failures when recalling items from long lists in context.

Approach

Decomposes attention-head OV and QK matrices via SVD into rank-1 components and uses a composition score on those components to find low-rank channels between heads separated by layers, then verifies them with weight editing and activation interventions; the inhibition channel's 3D subspace is shown to index list positions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Set the top three inhibition components according to the correct answer indexGPT-2 Small · Laundry List, 3 objectsaccuracy: 64% to 86%Helped
Set the top three inhibition components according to the correct answer indexGPT-2 Small · Laundry List, 8 objectsaccuracy: about 51%Helped
Patch inhibition-channel subspaces between minimally different examplesGPT-2 Small · IOIFLDD: -8% to 97.5%Helped
Patch inhibition-channel subspaces between minimally different examplesGPT-2 Small · IOIinterchange accuracy: 0.0% to 35%Helped
Optimize a single vector directly for the task instead of using the discovered subspaceGPT-2 Small · IOIFLDD: 111.5%Helped
Optimize a single vector directly for the task instead of using the discovered subspaceGPT-2 Small · IOIinterchange accuracy: 45.1%Helped
Use head 8.3 attention to distinguish likely from unlikely verb–object pairsGPT-2 Small head 8.3 · Verb–object counterfactual pairsattention score to noun: around 5% to around 35%Helped
Add -1000 times the 8.3.0 output vector to the residual streamGPT-2 Small head 9.9 · OpenWebText-10K excerptsattention score on the token attended to by head 8.3: 9% to 12%Mixed
Zero the highest-composition component in an inhibition head (ablation)GPT-2 Small inhibition heads · IOIinhibition score: reduces the Inhibition score by 7-14%Hurt
Zero the selected component in head 7.3 (ablation)GPT-2 Small head 7.3 · IOIinhibition scoreNo clear effect
Keep only the top-1 composing components affecting inhibition (ablation)GPT-2 Small inhibition heads · IOIinhibition score: 0.7 to 0.3Hurt
Keep only the 0th singular-value components of inhibition heads (ablation)GPT-2 Small inhibition heads · IOIinhibition score: 0.04Hurt

Surprising findings

Limitations

Experimental setup

Datasets: IOI dataset Laundry List synthetic task (250 prompts per N from 3 to 20) OpenWebText-10K counterfactual verb-noun pairs (84 pairs)

Benchmarks: Indirect Object Identification (IOI) Laundry List

Metrics: inhibition score fractional logit difference decrease interchange accuracy accuracy composition score

Baselines: unDecomposed composition score random head interventions subspace gradient optimization (Wang et al.)

Builds on: composition score indirect object identification circuit path patching logit lens

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