atlas

Research map / Architectures and efficiency / Attention and transformers

Block-Attention for Efficient Prefilling

ICLR 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 Block-attention, which encodes each retrieved passage as an independent block with cached KV states and position re-encoding, then block-fine-tunes an LLM so RAG accuracy matches full attention while cutting time-to-first-token sharply.

Problem

RAG inputs contain many retrieved passages, making prefilling slow; KV caches of passages cannot be reused because autoregressive KV states depend on preceding context.

Approach

Use block-diagonal attention so each passage block attends only within itself while the final query block attends to all previous blocks; re-encode RoPE positions of cached blocks, and fine-tune the LLM with this mask (alongside full attention) so it adapts to block mode and can switch between modes without loss.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune the model for Block-attention (ablation)Tulu3-RAG · RAG benchmarks (2Wiki, HQA, NQ, TQA)accuracy: 42.9, 42.1, 48.3, 66.5 -> 72.2, 72.3, 60.4, 75.1Helped
Add position re-encoding (ablation)Tulu3-block-ft · RAG benchmarks (2Wiki, HQA, NQ, TQA)accuracy: 68.9, 69.9, 59.2, 74.4 -> 72.2, 72.3, 60.4, 75.1Helped
Switch Block-attention to full-attention mode (ablation)Tulu3-block-ft · RAG benchmarks (2Wiki, HQA, NQ, TQA)accuracy: 72.2, 72.3, 60.4, 75.1 -> 73.6, 75.2, 62.2, 76.2No clear effect
Use Block-attention instead of full-attention with block fine-tuningTulu3-RAG · RAG benchmarks (2Wiki, HQA, NQ, TQA)accuracy: 73.2, 74.8, 61.5, 75.8 -> 72.2, 72.3, 60.4, 75.1No clear effect
Apply Block-attention with cached passage KV statesLlama3-block-ft · 32K promptTTFT: 3638 -> 45; 98.7%Helped
Apply Block-attention with cached passage KV statesLlama3-block-ft · 32K promptFLOPs-TFT: 4.9e+14 -> 7.5e+11; 99.8%Helped
Apply Block-attention with cached passage KV statesLlama3-block-ft · 512 promptTTFT: +48%Helped
Apply Block-attention with cached passage KV statesLlama3-block-ft · 512 promptFLOPs-TFT: 90.1%Helped
Use Block-attention in ICL tasks after fine-tuningTulu3-block-ft · GSM8K, MATH, BBH, DROPaccuracy: 75.5, 29.2, 68.5, 9.4 -> 75.7, 28.8, 65.3, 14.4Mixed
Switch Block-attention model to full-attention in zero-shot tasks (ablation)Tulu3-block-ft · IFEval, HumanEval, MMLUaccuracy: 68.5, 58.5, 63.7 -> 70.0, 59.1, 63.0No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Tulu3-SFT mixture TriviaQA 2WikiMultiHopQA

Benchmarks: Natural Questions TriviaQA HotpotQA 2WikiMultiHopQA NarrativeQA MMLU BBH DROP MATH GSM8K HumanEval IFEval

Metrics: accuracy TTFT FLOPs-TFT

Baselines: PromptCache Superposition (parallel prompt encoding) Tulu3-SFT Tulu3-RAG Block-attention without fine-tuning

Builds on: RoPE Flash-Attention Tulu 3

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