KV-Runahead: Scalable Causal LLM Inference by Parallel Key-Value Cache Generation
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large Language Model or LLM inference has two phases, the prompt (or prefill) phase to output the first token and the extension (or decoding) phase to the generate subsequent tokens. In this work, we propose an efficient parallelization scheme, KV-Runahead to accelerate the prompt phase. The key observation is that the extension phase generates tokens faster than the prompt phase because of key-value cache (KV-cache). Hence, KV-Runahead parallelizes the prompt phase by orchestrating multiple processes to populate the KV-cache and minimizes the time-to-first-token (TTFT). Dual-purposing the KV-cache scheme has two main benefits. First, since KV-cache is designed to leverage the causal attention map, we minimize computation and computation automatically. Second, since it already exists for the extension phase, KV-Runahead is easy to implement. We further propose context-level load-balancing to handle uneven KV-cache generation (due to the causal attention) and to optimize TTFT. Compared with an existing parallelization scheme such as tensor or sequential parallelization where keys and values are locally generated and exchanged via all-gather collectives, our experimental results demonstrate that KV-Runahead can offer over 1.4x and 1.6x speedups for Llama 7B and Falcon 7B respectively.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 21 of its 29 references that are in the map. First posted on arXiv 8 May 2024.
Builds on
21 of 29 references.
Closest ancestors · 1
Same direction, newest first
Other references · 20
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
8 more
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 558
- 2023Benchmarking Large Language Models for News Summarizationcited by 445
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 324
- 2023SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefillscited by 193
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 134
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 129
- 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 126
- 2023eDKM: An Efficient and Accurate Train-time Weight Clustering for Large Language Modelscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 1.
6 papers.
- 2024Context Parallelism for Scalable Million-Token Inferencecited by 26
- 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scorescited by 17
- 2025SPD: Sync-Point Drop for Efficient Tensor Parallelism of Large Language Modelscited by 6
- 2025Equinox: Holistic Fair Scheduling in Serving Large Language Modelscited by 2
- 2024MAS-Attention: Memory-Aware Stream Processing for Attention Acceleration on Resource-Constrained Edge Devicescited by 0
- 2026OLED-MoE: Accelerating MoE-Based dLLM Inference via Inter-Iteration Locality-Aware Expert Offloadingcited by 0
- 2026OLED-MoE: Accelerating MoE-Based dLLM Inference via Inter-Iteration Locality-Aware Expert Offloading27 Sep 2026
- 2025Equinox: Holistic Fair Scheduling in Serving Large Language Models19 Aug 2025
- 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores10 Jul 2025
- 2025SPD: Sync-Point Drop for Efficient Tensor Parallelism of Large Language Models28 Feb 2025
- 2024MAS-Attention: Memory-Aware Stream Processing for Attention Acceleration on Resource-Constrained Edge Devices20 Nov 2024
- 2024Context Parallelism for Scalable Million-Token Inference4 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2026OasisKV: Scaling In-Decode KV Cache Beyond HBM with Lookahead Sparse Prefetching
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference
- 2025WindowKV: Task-Adaptive Group-Wise KV Cache Window Selection for Efficient LLM Inference
- 2024In-context KV-Cache Eviction for LLMs via Attention-Gate
- 2026TTKV: Temporal-Tiered KV Cache for Long-Context LLM Inference
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
- 2026DualDecoder: Accelerate Long Context LLM Inference by Predictive Prefetch
- 2024KVPR: Efficient LLM Inference with I/O-Aware KV Cache Partial Recomputation