Block-Attention for Efficient Prefilling
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
We introduce Block-attention, an attention mechanism designed to address the increased inference latency and cost in Retrieval-Augmented Generation (RAG) scenarios. Traditional approaches often encode the entire context in an auto-regressive manner. Instead, Block-attention divides retrieved documents into discrete blocks, with each block independently calculating key-value (KV) states except for the final block. In RAG scenarios, by defining each passage as a block, Block-attention enables us to reuse the KV states of passages that have been seen before, thereby significantly reducing the latency and the computation overhead during inference. The implementation of Block-attention involves block segmentation, position re-encoding, and fine-tuning the LLM to adapt to the Block-attention mechanism. Experiments on 11 diverse benchmarks, including RAG, ICL, and general domains, demonstrate that after block fine-tuning, the Block-attention model not only achieves performance comparable to that of full-attention models, but can also seamlessly switch between the block and full attention modes without any performance loss. Notably, Block-attention significantly reduces the time to first token (TTFT) and floating point operations (FLOPs) to a very low level. It only takes 45 ms to output the first token for an input sequence with a total length of 32K. Compared to the full-attention models, the TTFT and corresponding FLOPs are reduced by 98.7% and 99.8%, respectively. Additionally, in Appendix A, we elaborate on how Block-attention is applied in Game AI scenario and the substantial potential benefits it entails. We strongly suggest researchers in the gaming field not to overlook this section.
Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 31 of its 43 references that are in the map. First posted on arXiv 14 Sep 2024.
Builds on
31 of 43 references.
Closest ancestors · 1
Same direction, newest first
Other references · 30
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
18 more
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023Large Language Modelscited by 774
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
- 2022A Survey on Retrieval-Augmented Text Generationcited by 157
- 2019Mastering Complex Control in MOBA Games with Deep Reinforcement Learningcited by 150
- 2020Learning Dense Representations of Phrases at Scalecited by 91
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2023Copy Is All You Needcited by 25
- 2021Exploring Dense Retrieval for Dialogue Response Selectioncited by 11
- 2024Retrieval is Accurate Generationcited by 10
Built on by
Citing papers per year: 2024: 2; 2025: 11; 2026: 21.
34 papers.
Sort:
By area:
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 60
- 2025VMoBA: Mixture-of-Block Attention for Video Diffusion Modelscited by 35
- 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Modelscited by 26
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMscited by 10
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inferencecited by 9
- 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2026You Need an Encoder for Native Position-Independent Cachingcited by 6
- 2026RelayCaching: Accelerating LLM Collaboration via Decoding KV Cache Reusecited by 6
- 2026An experimental study of KV cache reuse strategies in chunk-level caching systemscited by 5
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
22 more
- 2025MindVL: Towards Efficient and Effective Training of Multimodal Large Language Models on Ascend NPUscited by 2
- 2026TableCache: Primary Foreign Key Guided KV Cache Precomputation for Low Latency Text-to-SQLcited by 2
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOCcited by 2
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scalecited by 2
- 2025Studying the Soupability of Documents in State Space Modelscited by 1
- 2025Using Span Queries to Optimize for Cache and Attention Localitycited by 1
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encodingcited by 1
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residualscited by 1
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generationcited by 0
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddingscited by 0
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placementcited by 0
- 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillationcited by 0
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflowscited by 0
- 2026CONCORD: Asynchronous Sparse Aggregation for Device-Cloud RAG under Document Isolationcited by 0
- 2026CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAGcited by 0
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agentscited by 0
- 2026KVShareArena: KV-Cache Reuse Across Contexts and Model Checkpointscited by 0
- 2026Evaluating the accuracy of KV cache reuse techniquescited by 0
- 2026Memory as a cache: Exact context reuse and deletion by constructioncited by 0
- 2026CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusioncited by 0
- 2026ATTUNER: Recomputation-Free KV Cache Reuse via Query-Side Adaptationcited by 0
- 2026ATTUNER: Recomputation-Free KV Cache Reuse via Query-Side Adaptation29 Sep 2026
- 2026CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusion28 Sep 2026
- 2026Memory as a cache: Exact context reuse and deletion by construction26 Sep 2026
- 2026Evaluating the accuracy of KV cache reuse techniques25 Sep 2026
- 2026KVShareArena: KV-Cache Reuse Across Contexts and Model Checkpoints9 Sep 2026
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents6 Sep 2026
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memory31 Aug 2026
- 2026CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAG7 Aug 2026
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residuals30 Jul 2026
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale1 Jul 2026
- 2026CONCORD: Asynchronous Sparse Aggregation for Device-Cloud RAG under Document Isolation13 Jun 2026
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflows12 Jun 2026
22 more
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOC11 Jun 2026
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding3 Jun 2026
- 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillation15 May 2026
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMs14 Apr 2026
- 2026An experimental study of KV cache reuse strategies in chunk-level caching systems3 Mar 2026
- 2026RelayCaching: Accelerating LLM Collaboration via Decoding KV Cache Reuse28 Feb 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
- 2026You Need an Encoder for Native Position-Independent Caching2 Feb 2026
- 2026TableCache: Primary Foreign Key Guided KV Cache Precomputation for Low Latency Text-to-SQL13 Jan 2026
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference18 Dec 2025
- 2025ContextPilot: Fast Long-Context Inference via Context Reuse5 Nov 2025
- 2025Using Span Queries to Optimize for Cache and Attention Locality4 Nov 2025
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placement23 Oct 2025
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
- 2025MindVL: Towards Efficient and Effective Training of Multimodal Large Language Models on Ascend NPUs15 Sep 2025
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Models25 Aug 2025
- 2025VMoBA: Mixture-of-Block Attention for Video Diffusion Models30 Jun 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025Studying the Soupability of Documents in State Space Models29 May 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Models21 Dec 2024
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct 2024
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 60
- 2026An experimental study of KV cache reuse strategies in chunk-level caching systemscited by 5
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOCcited by 2
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encodingcited by 1
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generationcited by 0
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placementcited by 0
- 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillationcited by 0
- 2026CONCORD: Asynchronous Sparse Aggregation for Device-Cloud RAG under Document Isolationcited by 0
- 2026CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAGcited by 0
- 2026CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusioncited by 0
- 2026CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusion28 Sep 2026
- 2026CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAG7 Aug 2026
- 2026CONCORD: Asynchronous Sparse Aggregation for Device-Cloud RAG under Document Isolation13 Jun 2026
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOC11 Jun 2026
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding3 Jun 2026
- 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillation15 May 2026
- 2026An experimental study of KV cache reuse strategies in chunk-level caching systems3 Mar 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placement23 Oct 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct 2024
- 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
- 2026TableCache: Primary Foreign Key Guided KV Cache Precomputation for Low Latency Text-to-SQLcited by 2
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
- 2026KVShareArena: KV-Cache Reuse Across Contexts and Model Checkpointscited by 0
- 2026Evaluating the accuracy of KV cache reuse techniquescited by 0
- 2026Memory as a cache: Exact context reuse and deletion by constructioncited by 0
- 2026ATTUNER: Recomputation-Free KV Cache Reuse via Query-Side Adaptationcited by 0
- 2026ATTUNER: Recomputation-Free KV Cache Reuse via Query-Side Adaptation29 Sep 2026
- 2026Memory as a cache: Exact context reuse and deletion by construction26 Sep 2026
- 2026Evaluating the accuracy of KV cache reuse techniques25 Sep 2026
- 2026KVShareArena: KV-Cache Reuse Across Contexts and Model Checkpoints9 Sep 2026
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memory31 Aug 2026
- 2026TableCache: Primary Foreign Key Guided KV Cache Precomputation for Low Latency Text-to-SQL13 Jan 2026
- 2025ContextPilot: Fast Long-Context Inference via Context Reuse5 Nov 2025
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Models25 Aug 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025VMoBA: Mixture-of-Block Attention for Video Diffusion Modelscited by 35
- 2025VMoBA: Mixture-of-Block Attention for Video Diffusion Models30 Jun 2025
- 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Modelscited by 26
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMscited by 10
- 2026You Need an Encoder for Native Position-Independent Cachingcited by 6
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scalecited by 2
- 2025Studying the Soupability of Documents in State Space Modelscited by 1
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residualscited by 1
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddingscited by 0
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residuals30 Jul 2026
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale1 Jul 2026
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMs14 Apr 2026
- 2026You Need an Encoder for Native Position-Independent Caching2 Feb 2026
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
- 2025Studying the Soupability of Documents in State Space Models29 May 2025
- 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Models21 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation
- 2025Scaling Test-Time Inference with Policy-Optimized, Dynamic Retrieval-Augmented Generation via KV Caching and Decoding
- 2026In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspective
- 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generation
- 2026Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse
- 2025Less Is More: Elevating RAG via Performance-Driven Context Compression
- 2025CacheClip: Accelerating RAG with Effective KV Cache Reuse
- 2026REVA: Reusable Evidence View Aggregation for Context-Efficient RAG Serving