Research map / Large language models / Language, safety and interpretability
Interpreting Context Look-ups in Transformers: Investigating Attention-MLP Interactions
Clement Neo, Shay B. Cohen, Fazl Barez
Nanyang Technological University · University of Oxford · University of Edinburgh
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use 20 prompts instead of 10 or 30 for head explanation (ablation) | head explanation pipeline · GPT-2 Large | mean head explanation score: 0.571 / 0.565 (10 / 30 prompts) vs 0.575 (20 prompts) | Improved |
| select next-token neurons rather than random late-layer neurons (ablation) | head explanation pipeline · GPT-2 Large | mean head explanation score: 0.558 (random) -> 0.575 | Improved |
| select next-token neurons rather than random late-layer neurons (ablation) | head explanation pipeline · GPT-2 Large | skewness of score distribution: +0.23 (random) vs -0.13 | Improved |
| apply method to smaller GPT-2 and Pythia models | head explanation pipeline · GPT-2 Small/Medium, Pythia 160M/1.4B | mean head explanation score vs random baseline: means 0.650, 0.610, 0.621, 0.574 vs random 0.558; KS p-values 1.6e-14 to 8.6e-7 | Improved |
| zero out an associated attention head on head-active prompts vs head-inactive prompts (ablation) | GPT-2 Small/Medium/Large · token probability of neuron's token | decrease in token probability: KS p = 1.02e-5 (Small), 3.69e-13 (Medium), 2.09e-23 (Large) | Improved |
| explain induction-style heads (repeated phrase) with GPT-4 | GPT-4 auto-labeler · induction-like heads | explanation quality | Hurt |
Open problems in task vectors and steering
Does steering and task-vector localization found on small open models carry over to larger models, other languages and non-linear representations?
- Tested on a few open models of about 7B to 9B, so larger and other models are untested. · 37 papers state it
- Evidence comes from English text only. · 16 papers state it
- Steering assumes linear directions and tests only simple additive interventions. · 13 papers state it
Closest papers by meaning
- Unveiling Visual Perception in Language Models: An Attention Head Analysis Approach (CVPR 2025 · similarity 0.87)
- Talking Heads: Understanding Inter-Layer Communication in Transformer Language Models (NeurIPS 2024 · similarity 0.87)
- Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration (ICML 2024 · similarity 0.87)
- Interpreting the Repeated Token Phenomenon in Large Language Models (ICML 2025 · similarity 0.87)
- Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models (ICLR 2025 · similarity 0.87)
- Which Attention Heads Matter for In-Context Learning? (ICML 2025 · similarity 0.87)
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.