atlas

Research map / Architectures and efficiency / Attention and transformers

Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 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.

Proposes REFORM, a training-free inference framework that compresses long inputs into cross-layer QKV retrieval embeddings via recurrent chunked KV compression with early exit, then gathers relevant tokens by similarity and recomputes their KV cache.

Problem

Processing extremely long contexts beyond pre-trained limits: recurrent KV-compression methods lose information ("forgetting"), while random-access methods that keep full KV caches need heavy memory and CPU offloading.

Approach

Use lightweight cross-layer QKV embeddings from a few selected heads (built during recurrent compressed forwarding and exited early) to retrieve query-relevant tokens by cosine similarity, then recompute full KV cache only for those tokens, combining the memory efficiency of recurrence with random-access recall.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use REFORM instead of the strongest reported baselineMistral-NeMo-Instruct-2407 · RULER 1Maverage performance: 23.3 -> 75.5Helped
use REFORM instead of the strongest reported baselineMistral-NeMo-Instruct-2407 · BABILong 1Maverage performance: 8.8 -> 48.8Helped
use REFORM instead of the strongest reported baselineQwen2.5-7B-Instruct · RULER 1Maverage performance: 23.7 -> 75.1Helped
use REFORM instead of the strongest reported baselineQwen2.5-7B-Instruct · BABILong 1Maverage performance: 40.2 -> 58.8Helped
replace H2O compression with StreamingLLM (ablation)REFORM · RULER 300kaverage performance: 84.6 -> 82.7Hurt
replace H2O compression with StreamingLLM (ablation)REFORM · BABILong 512kaverage performance: 47.6 -> 44.6Hurt
replace H2O compression with TOVA (ablation)REFORM · RULER 300kaverage performance: 84.6 -> 81.4Hurt
replace H2O compression with TOVA (ablation)REFORM · BABILong 512kaverage performance: 47.6 -> 46.8Hurt
use four selected retrieval heads instead of four random heads (ablation)REFORM · RULER 300kaverage performance: 80.3 -> 84.6Helped
use four selected retrieval heads instead of four random heads (ablation)REFORM · BABILong 512kaverage performance: 43.0 -> 47.6Helped
use four selected retrieval heads instead of four worst-performing heads (ablation)REFORM · RULER 300kaverage performance: 44.7 -> 84.6Helped
use four selected retrieval heads instead of four worst-performing heads (ablation)REFORM · BABILong 512kaverage performance: 22.8 -> 47.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: RULER BABILong infinity-Bench RepoEval MM-NIAH HotPotQA WikiText Paul Graham essays (NIAH)

Benchmarks: Needle-In-A-Haystack RULER BABILong infinity-Bench RepoEval MM-NIAH

Metrics: accuracy edit similarity normalized performance inference time peak memory MNR

Baselines: StreamingLLM TOVA H2O InfiniPot InfLLM Truncation

Builds on: H2O StreamingLLM InfLLM InfiniPot

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