atlas

Research map / Architectures and efficiency / Attention and transformers

Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 0 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 in-context retrieval in both Transformers and SSMs relies on a Gather-and-Aggregate mechanism concentrated in a few heads, explaining the MMLU and broader Transformer-SSM gap and motivating hybrid designs.

Problem

SSMs with fixed-size recurrent state underperform Transformers on retrieval-heavy tasks such as MMLU, GSM8K, BBH and dialogue; it is unclear whether this gap stems from broad modeling deficits or from a few algorithmic heads.

Approach

Identifies a two-stage Gather-and-Aggregate mechanism (Gather heads compress segments into summary tokens; Aggregate heads attend to these summaries) that is shared by Transformers and SSMs, concentrated in a few heads; SSM gap is attributed to smoother attention in Aggregate heads, and hybrids delegate aggregation to attention.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
disable 30 G&A heads (ablation)Llama-8B · MMLUaccuracy: 68.1 -> 38.7Hurt
disable 30 G&A heads (ablation)Llama-8B · GSM8Kaccuracy: 27.3 -> 7.8Hurt
disable 30 G&A heads (ablation)Llama-8B · BBHaccuracy: 45.1 -> 29.0Hurt
disable 30 G&A heads (ablation)Llamba-8B · MMLUaccuracy: 60.7 -> 58.1Hurt
disable 30 G&A heads (ablation)Llamba-8B · BBHaccuracy: 11.0 -> 11.4No clear effect
disable 30 G&A heads (ablation)Zamba2-7B · GSM8Kaccuracy: 60.5 -> 18.4Hurt
remove L16H22 (ablation)Llama-3.1-8B-Minimal · MMLUaccuracy: 66.32 -> 24.36Hurt
remove L17H24 (ablation)Llama-3.1-8B-Minimal · MMLUaccuracy: 66.32 -> 25.59Hurt
replace L17 with the corresponding Llama-3.1-8B layer (ablation)Llamba-8B distilled model · MMLUaccuracy: 33% to 50%Helped
replace L17H24 with its Llama attention variant (ablation)Llamba-8B distilled model · MMLUaccuracy: 33% to 44%Helped
replace L17H24 and L17H27 with their Llama attention variants (ablation)Llamba-8B distilled model · MMLUaccuracy: 33% to 50%Helped
disable nine selected attention heads (ablation)Zamba2-7B · MMLUaccuracy: 64.3% to 34.9%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: MMLU ARC-Challenge ARC-Easy PIQA Winogrande OpenBookQA HellaSwag GSM8K BBH LAMBADA SWDE

Benchmarks: MMLU ARC-Challenge ARC-Easy PIQA Winogrande OpenBookQA HellaSwag GSM8K BBH LAMBADA SWDE ARC-Challenge Chat

Metrics: accuracy perplexity exact match

Baselines: Llama-3.1-8B-Instruct Falcon-Mamba-7B-Instruct Llamba-8B Zamba2-7B-Instruct Llama-3.2-3B-Instruct Llamba-3B Zamba2-2.7B-Instruct

Builds on: induction heads retrieval heads Correct Letter heads (Chinchilla analysis) MOHAWK distillation

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