Litcius/Paper detail

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

202536 citationsDOIOpen Access PDF

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.

Topics & Concepts

Computer scienceCacheFusionParallel computingLinguisticsPhilosophyTopic ModelingNatural Language Processing TechniquesSpeech and dialogue systems
CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion | Litcius