Research map / Architectures and efficiency / Attention and transformers
Transformer Feed-Forward Layers Are Key-Value Memories
Mor Geva, Roei Schuster, Jonathan Berant, Omer Levy
Allen Institute for Artificial Intelligence · Cornell Tech
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.
This paper tried a common change: Add residual connections
add residual connection refinement across layers · validation prefixes · residual top prediction matches output: about a third decided in bottom few layers, rises rapidly from layer 10 Improved
What 561 accepted papers report for this change
- 461 improved
- 37 no clear effect
- 12 mixed
- 51 hurt
- Resolution as a Direction: Vector-Panning Feature Alignment for Cross-Resolution Re-Identification ICML 2026 · add residual connection to VP · MLR-Market-1501 · Rank-1 (%): 91.2 -> 94.1Improved
- MAGIC: Multi-Granularity Language-Informed Image Clustering ICML 2026 · add residual connection to semantic adapters · CIFAR-20 · ACC: 66.1 -> 59.9Hurt
- Domain Adaptive Object Detection via Dynamic Causal Refinement ICML 2026 · add residual connection to SCC · Cityscapes to Foggy Cityscapes (0.02 split) · mAP@50: 64.0 -> 64.6Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| go from lower layers (1-9) to upper layers (10-16) | key patterns · expert pattern annotation | pattern type: shallow dominate layers 1-9, semantic in 10-16 | Improved |
| remove the last token from key trigger prefixes in upper layers (ablation) | memory coefficient · 1600 random keys | relative change in memory coefficient | Hurt |
| project value vectors on output embeddings, upper layers (11+) vs lower layers (1-10) | value-key agreement · WikiText-103 LM | agreement rate: near zero -> up to 3.5% | Improved |
| compare value top-token agreement to random token | value predictions · upper layers | agreement rate: 0.0004% -> up to 3.5% | Improved |
| select values with highest max probability | value detection · top-100 values | values with agreeing trigger example: 46 of 100 | Improved |
| move toward layer 10 in the model depth | active memories per layer · 4,000 validation prefixes | fraction of active memories: 10%-50% of 4096 active; drops towards layer 10 | Mixed |
| compose multiple memories in a layer | layer prediction · 4,000 validation prefixes | top prediction differs from all memories: >=~68% of examples | Improved |
| add residual connection refinement across layers | final prediction · validation prefixes | residual top prediction matches output: about a third decided in bottom few layers, rises rapidly from layer 10 | Improved |
Closest papers by meaning
- Looking Beyond the Top-1: Transformers Determine Top Tokens in Order (ICML 2025 · similarity 0.89)
- Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks (ICML 2024 · similarity 0.88)
- Talking Heads: Understanding Inter-Layer Communication in Transformer Language Models (NeurIPS 2024 · similarity 0.87)
- Beyond Components: Singular Vector-Based Interpretability of Transformer Circuits (NeurIPS 2025 · similarity 0.87)
- Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models (NeurIPS 2025 · similarity 0.87)
- Transformer Layers as Painters (AAAI 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.
