RISK-KV: Quality-Aware Selective KV Cache Reconstruction for Distributed LLM Inference
Wang Yuekai
Abstract
Request migration and interruption recovery in distributed large language model (LLM) inference rely on historical key-value (KV) caches. Retaining or transferring a complete cache incurs substantial state overhead, whereas replaying historical tokens requires additional computation. This paper proposes RISK-KV, a quality-aware method for selective historical KV reconstruction in pretrained models. RISK-KV uses exact KV states on both sides of a target layer and cross-layer ridge regression to predict the missing layer's attention-projection input; it then folds in the original model's KV projection matrices to reduce predictor storage. Reconstruction risk is measured by the change in negative log-likelihood (NLL) caused by actual reconstruction, and low-overhead topology search with quality gating selects the layer groups to reconstruct. Independent tests on three language models show that representative recovery configurations omit 18.2 percent to 33.3 percent of historical KV, with perplexity changes below 0.5 percent. In a local request-recovery experiment with a 512-token history, RISK-KV achieves a 1.51 to 3.31 times speedup over full Token Replay. These results indicate that selective KV reconstruction can reduce historical cache overhead with small changes in predictive quality and improve request-recovery efficiency under the evaluated deployment conditions.
Create a lesson
Related papers
The End of Consensus Research?
Clément Burgelin, Rachid Guerraoui, Zicong Hong et al.
A Real-time tax compliance architecture for VAT split payments with Making Tax Smart and Open Banking
Panos Louvieris, George Ioannou, Gareth White
Enumeration-based Triangle Counting on GPUs
Sayan Ghosh
UlaCache: Unified Logical Addressing for Sparse LLM Serving
Isaac Zhu, Alan Cao, Hugh Yin et al.
Semantic-Aware Update Admission and Adaptive Byzantine Redundancy for Secure Computation Offloading in COIN-Enabled Metaverse Systems
Ibrahim Aliyu, Jaehyung Park, Jinsul Kim
How Not to Be Censored: Inclusion Safety in Client-Led Consensus
Yackolley Amoussou-Guenou, Andrea Canidio