mlsanityData to 7 Oct 2026

Block-Attention for Efficient Prefilling

arXiv 2409.15355 ↗First posted 14 Sep 2024cs.LG cs.AI cs.CLcited by 34

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

  1. 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection25 May

Other references · 30

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  11. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  12. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
18 more
  1. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  2. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  3. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  4. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  5. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  6. 2023Large Language Modelscited by 774
  7. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  8. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  9. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
  10. 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
  11. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  12. 2022A Survey on Retrieval-Augmented Text Generationcited by 157
  13. 2019Mastering Complex Control in MOBA Games with Deep Reinforcement Learningcited by 150
  14. 2020Learning Dense Representations of Phrases at Scalecited by 91
  15. 2022Parallel Context Windows for Large Language Modelscited by 81
  16. 2023Copy Is All You Needcited by 25
  17. 2021Exploring Dense Retrieval for Dialogue Response Selectioncited by 11
  18. 2024Retrieval is Accurate Generationcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 11; 2026: 21.

34 papers.

Sort:

By area:

  1. 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 60
  2. 2025VMoBA: Mixture-of-Block Attention for Video Diffusion Modelscited by 35
  3. 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Modelscited by 26
  4. 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMscited by 10
  5. 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inferencecited by 9
  6. 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
  7. 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
  8. 2026You Need an Encoder for Native Position-Independent Cachingcited by 6
  9. 2026RelayCaching: Accelerating LLM Collaboration via Decoding KV Cache Reusecited by 6
  10. 2026An experimental study of KV cache reuse strategies in chunk-level caching systemscited by 5
  11. 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
  12. 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
22 more
  1. 2025MindVL: Towards Efficient and Effective Training of Multimodal Large Language Models on Ascend NPUscited by 2
  2. 2026TableCache: Primary Foreign Key Guided KV Cache Precomputation for Low Latency Text-to-SQLcited by 2
  3. 2026MiniPIC: Flexible Position-Independent Caching in <100LOCcited by 2
  4. 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scalecited by 2
  5. 2025Studying the Soupability of Documents in State Space Modelscited by 1
  6. 2025Using Span Queries to Optimize for Cache and Attention Localitycited by 1
  7. 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encodingcited by 1
  8. 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residualscited by 1
  9. 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
  10. 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generationcited by 0
  11. 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddingscited by 0
  12. 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placementcited by 0
  13. 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillationcited by 0
  14. 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflowscited by 0
  15. 2026CONCORD: Asynchronous Sparse Aggregation for Device-Cloud RAG under Document Isolationcited by 0
  16. 2026CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAGcited by 0
  17. 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agentscited by 0
  18. 2026KVShareArena: KV-Cache Reuse Across Contexts and Model Checkpointscited by 0
  19. 2026Evaluating the accuracy of KV cache reuse techniquescited by 0
  20. 2026Memory as a cache: Exact context reuse and deletion by constructioncited by 0
  21. 2026CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusioncited by 0
  22. 2026ATTUNER: Recomputation-Free KV Cache Reuse via Query-Side Adaptationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation
  2. 2025Scaling Test-Time Inference with Policy-Optimized, Dynamic Retrieval-Augmented Generation via KV Caching and Decoding
  3. 2026In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspective
  4. 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generation
  5. 2026Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse
  6. 2025Less Is More: Elevating RAG via Performance-Driven Context Compression
  7. 2025CacheClip: Accelerating RAG with Effective KV Cache Reuse
  8. 2026REVA: Reusable Evidence View Aggregation for Context-Efficient RAG Serving