CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion
Jiayi Yao, Hanchen Li, Yuhan Liu, Siddhant Ray, Yihua Cheng, Qizheng Zhang, Kuntai Du, Shan Lu, Junchen Jiang
Abstract
Large language models (LLMs) often incorporate multiple text chunks in their inputs to provide the necessary contexts. To speed up the prefill of the long LLM inputs, one can pre-compute the KV cache of a text and re-use the KV cache when the context is reused as the prefix of another LLM input. However, the reused text chunks are not always the input prefix, which makes precomputed KV caches not directly usable since they ignore the text's cross-attention with the preceding texts. Thus, the benefits of reusing KV caches remain largely unrealized.
This paper tackles just one challenge: when an LLM input contains multiple text chunks, how to quickly combine their precomputed KV caches in order to achieve the same generation quality as the expensive full prefill (i.e., without reusing KV cache)? This challenge naturally arises in retrieval-augmented generation (RAG) where the input is supplemented with multiple retrieved texts as the context. We present CacheBlend, a scheme that reuses the precomputed KV caches, regardless prefix or not, and selectively recomputes the KV values of a small subset of tokens to partially update each reused KV cache. In the meantime, the small extra delay for recomputing some tokens can be pipelined with the retrieval of KV caches within the same job, allowing CacheBlend to store KV caches in slower devices with more storage capacity while retrieving them without increasing the inference delay. By comparing CacheBlend
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
57 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization cites H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model Inference cites KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model Inference cites CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model Inference cites H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model Inference cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model Inference cites SGLang: Efficient Execution of Structured Language Model Programs
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving cites KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving cites H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving cites Language Models are Few-Shot Learners
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving cites SGLang: Efficient Execution of Structured Language Model Programs
- KVLink: Accelerating Large Language Models via Efficient KV Cache Reuse cites H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
- H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models cites Language Models are Few-Shot Learners
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems cites CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems cites KVLink: Accelerating Large Language Models via Efficient KV Cache Reuse
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems cites Language Models are Few-Shot Learners
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems cites SGLang: Efficient Execution of Structured Language Model Programs
- Efficient Memory Management for Large Language Model Serving with PagedAttention cites Language Models are Few-Shot Learners
- SGLang: Efficient Execution of Structured Language Model Programs cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- SGLang: Efficient Execution of Structured Language Model Programs cites Language Models are Few-Shot Learners
- Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models cites CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
- Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models cites Language Models are Few-Shot Learners
Cited by top-tier papers57
- Agentic Context Engineering: Evolving Contexts for Self-Improving Language ModelsQizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma et al.ICLR 2026 · 374 citations
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model ServingYuhan Liu, Hanchen Li, Yihua Cheng, Siddhant Ray et al.SIGCOMM 2024 · 111 citations
- KVLink: Accelerating Large Language Models via Efficient KV Cache ReuseJingbo Yang, Bairu Hou, Wei Wei, Yujia Bao et al.NeurIPS 2025 · 83 citations
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent SystemsHancheng Ye, Zhengqi Gao, Mingyuan Ma, Qinsi Wang et al.NeurIPS 2025 · 42 citations
- IMPRESS: An Importance-Informed Multi-Tier Prefix KV Storage System for Large Language Model InferenceWeijian Chen, Shuibing He, Haoyang Qu, Ruidong Zhang et al.FAST 2025 · 40 citations
Builds on20
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun et al.NeurIPS 2024 · 1,586 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
- H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language ModelsZhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen et al.NeurIPS 2023 · 1,003 citations
- KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache QuantizationColeman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney et al.NeurIPS 2024 · 738 citations
Related papers
- From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented GenerationJiahao Wang, Weiyu Xie, Mingxing Zhang, Boxin Zhang et al.SIGMOD 2026 · 4 citations
- Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented GenerationShubham Agarwal, Sai Sundaresan, Subrata Mitra, Debabrata Mahapatra et al.SIGMOD 2025 · 20 citations
- ProphetKV: User-Query-Driven Selective Recomputation for Efficient KV Cache Reuse in Retrieval-Augmented GenerationShihao Wang, Jiahao Chen, Yanqi Pan, Hao Huang et al.ICML 2026 · 4 citations
- TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked TextSongshuo Lu, Hua Wang, Yutian Rong, Zhi Chen et al.EMNLP 2025 · 2 citations
- Sparse Attention Across Multiple-Context KV CacheZiyi Cao, Qingyi Si, Jingbin Zhang, Bingquan LiuAAAI 2026 · 3 citations
