DARIC: A Position-Independent KV Cache Reuse System with Distribution-Aware Recomputation
Weikang Wang, Haiyang Liu, Xin Zhou, Jun Liu, Weifeng Zhang
Abstract
The context lengths of large language models (LLMs) are rapidly increasing in real-world applications such as agentic systems and retrieval-augmented generation (RAG). To accelerate LLM inference in these scenarios, reusing position-independent key-value (KV) caches across requests has emerged as a promising approach. This technique typically relies on recomputing a selected subset of tokens to restore cross-chunk interactions. However, existing solutions suffer from critical limitations in both algorithmic efficiency and system deployment. Algorithmically, they overlook the distribution of KV cache deviations, leading to either high token-selection overhead or degraded generation quality. At the system level, the reliance on custom LLM execution flows for recomputation complicates deployment and prevents seamless integration with highly optimized inference engines. In this paper, we propose DARIC (Distribution-Aware Recomputation for Independent KV Cache Reuse), a novel KV cache reuse method based on system-algorithm co-design. At its core, DARIC introduces a distribution-aware token selection strategy that adaptively schedules token recomputation based on empirical KV deviation patterns, striking an optimal balance between generation quality and computational efficiency. Moreover, DARIC is built on a lightweight system architecture that enables independent KV cache generation and recomputation with minimal integration overhead, fully preserving existing system-level optimizations of standard inference engines. Comprehensive experiments across various datasets and LLMs demonstrate that DARIC consistently outperforms state-of-the-art methods, achieving a 1.1×--4.5× speedup in time-to-first-token (TTFT) with negligible loss in generation quality. Code is available at https://github.com/Lenovo-ICI/DARIC.
Create a lesson
Related papers
Nebula: Distributed Position-Independent Caching for LLM Serving
Shared title terminology · Yifei Liu, Junbin Pan, Junhao Hu et al.
CacheWeave: Learning to Recompute for Efficient Position-Independent KV Caching
Shared title terminology · Yueyang Pan, Qianchao Zhu, Yuliang Liu et al.
Similarity-Aware Client-Side Reordering for Server-Side Storage Compression in Distributed File Systems
Shared title terminology · Yuanhong Huang, Zicong Chen, Yili Ma et al.
Fairway: Load-Aware KV Cache Reuse for LLM Prefill Scheduling
Shared title terminology · Hamidreza Alikhani, Nazmul Takbir, Matin Khajavi et al.
STLT: A Novel System for Energy-Aware Distributed Inference in the Edge-Cloud-Space Continuum
Shared title terminology · Andrija Stanisic, Milos Gravara, Juan Luis Herrera et al.
Investigating the Impact of CI-Source Sensitivity in Carbon-Aware Resource Management Systems
Shared title terminology · Gonçalo Ferreira, Jaime Iglesias Blanco, María Castrillo et al.