atlas

Research map / Large language models / Instruction and fine-tuning

Understanding Synthetic Context Extension via Retrieval Heads

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 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.

Studies how fine-tuning on synthetic long-context data (varying needle realism and haystack diversity, plus symbolic tasks) extends context in Llama-3-8B and Mistral-7B, and links the induced retrieval heads to downstream performance.

Problem

Synthetic context extension (fine-tuning short-context LLMs on synthetic long-context data) is effective in some cases, but it is unclear how and why it transfers to real long-context retrieval and reasoning tasks.

Approach

Uses retrieval heads as a mechanistic proxy: fine-tuning only attention heads on datasets of varying realism, the cosine similarity and recall of retrieval heads learned on synthetic vs. real data correlate with downstream F1, and patching intersection heads from a real-data model partially recovers performance.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on the strongest synthetic-data variant instead of full real dataLlama-3-8B-Instruct · MDQAF1: 0.83 -> 0.49Hurt
Train on the strongest synthetic-data variant instead of full real dataMistral-7B-Instruct-v0.1 · MDQAF1: 0.64 -> 0.31Hurt
Train on the strongest synthetic-data variant instead of full real dataLlama-3-8B-Instruct · MuSiQueF1: 0.45 -> 0.41Hurt
Train on the strongest synthetic-data variant instead of full real dataMistral-7B-Instruct-v0.1 · MuSiQueF1: 0.20 -> 0.23Helped
Train on the strongest synthetic-data variant instead of full real dataLlama-3-8B-Instruct · SummHay CitationF1: 0.81 -> 0.79Hurt
Train on the strongest synthetic-data variant instead of full real dataMistral-7B-Instruct-v0.1 · SummHay CitationF1: 0.40 -> 0.38Helped
Use low rather than high concept expression, keeping context diversity high (ablation)Llama-3-8B-Instruct fine-tuning · MDQAF1: 0.31 -> 0.49Helped
Use low rather than high concept expression, keeping context diversity high (ablation)Mistral-7B-Instruct-v0.1 fine-tuning · MDQAF1: 0.20 -> 0.31Helped
Use low rather than high context diversity, keeping concept expression high (ablation)Llama-3-8B-Instruct fine-tuning · MuSiQueF1: 0.37 -> 0.41Helped
Use low rather than high context diversity, keeping concept expression high (ablation)Mistral-7B-Instruct-v0.1 fine-tuning · MuSiQueF1: 0.22 -> 0.23Helped
Use simplified rather than high concept expression, keeping context diversity high (ablation)Llama-3-8B-Instruct fine-tuning · SummHay CitationF1: 0.70 -> 0.79Helped
Use simplified rather than high concept expression, keeping context diversity high (ablation)Mistral-7B-Instruct-v0.1 fine-tuning · SummHay CitationF1: 0.28 -> 0.38Helped

Surprising findings

Limitations

Experimental setup

Datasets: MDQA MuSiQue SummHay Citation Natural Questions-Open Contriever-retrieved distractors RULER variable assignment (symbolic reference)

Benchmarks: MDQA MuSiQue SummHay Citation

Metrics: F1 cosine similarity of retrieval scores Spearman correlation recall of retrieval heads

Baselines: Real Data (Full) Real Data (Limited) Non-FT Symbolic dictionary key-value data

Builds on: retrieval heads synthetic context extension activation patching LoRA RoPE scaling

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