CritiPrefill: A Segment-wise Criticality-based Approach for Prefilling Acceleration in LLMs
Not on the map. Why?
Abstract (arXiv)
Large language models have achieved notable success across various domains, yet efficient inference is still limited by the quadratic computation complexity of the attention mechanism. The inference consists of prefilling and decoding phases. Although several attempts have been made to accelerate decoding, the inefficiency of the prefilling phase, especially for long-context tasks, remains a challenge. In this paper, we observe a locality in query criticality during the prefilling phase of long-context processing: adjacent query tokens tend to focus on similar subsets of the past Key-Value (KV) cache. Based on this observation, we propose CritiPrefill, a criticality-based segment-wise prefilling method. This method partitions the input sequence's queries and KV cache into segments and blocks, utilizing a segment-wise algorithm to estimate the query criticality. By pruning non-critical computations between query segments and cache blocks in the self-attention mechanism, the prefilling process can be significantly accelerated. Extensive evaluations on multiple long-context datasets show up to 2.7x speedup on Llama3-8B and 3.0x speedup on Yi-9B for 128K context length on a single A100 GPU, with minimal quality degradation.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 36 of its 42 references that are in the map. First posted on arXiv 19 Sep 2024.
Builds on
36 of 42 references.
References · 36
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 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
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
24 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inferencecited by 230
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
- 2023Efficient Large Language Models: A Surveycited by 183
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 80
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2023A Survey on Long Text Modeling with Transformerscited by 47
- 2024A Survey on Hardware Accelerators for Large Language Modelscited by 15
- 2023Efficient Long-Range Transformers: You Need to Attend More, but Not Necessarily at Every Layercited by 13
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 1.
7 papers.
- 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspectivecited by 28
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devicescited by 15
- 2025Speculative Prefill: Turbocharging TTFT with Lightweight and Training-Free Token Importance Estimationcited by 12
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inferencecited by 10
- 2024KV Prediction for Improved Time to First Tokencited by 9
- 2025LoopServe: An Adaptive Dual-phase LLM Inference Acceleration System for Multi-Turn Dialoguescited by 1
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMscited by 0
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMs8 Jun 2026
- 2025LoopServe: An Adaptive Dual-phase LLM Inference Acceleration System for Multi-Turn Dialogues18 Jul 2025
- 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspective6 Feb 2025
- 2025Speculative Prefill: Turbocharging TTFT with Lightweight and Training-Free Token Importance Estimation5 Feb 2025
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference22 Jan 2025
- 2024KV Prediction for Improved Time to First Token10 Oct 2024
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices2 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reduction
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
- 2025FastKV: Decoupling of Context Reduction and KV Cache Compression for Prefill-Decoding Acceleration
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification
- 2024Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Models
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving
- 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruning