# KVFocus: A Perturbation-Theoretic Token-Risk Score for Selective KV Cache Reuse in RAG

*Shizhuo Zhang, Nuowen Kan, Chenglin Li, Rui-Xiao Zhang, Yifan Zhao, Yuanpeng He, Huixin Zhang, Fan He, Hang Xu, Hao Zhang, Wenrui Dai, Junni Zou, Hongkai Xiong*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149014) · [Open on the map](../papers.html#p149014)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [KV Cache Optimization](../pgroup/283.md) · Type: new method · Keywords: KV cache reuse, RAG, token risk score, perturbation analysis, quality-latency trade-off

## Summary
KVFocus introduces a perturbation-theoretic token-risk score to selectively reuse KV caches in RAG, improving the quality-TTFT trade-off.

## Explained to a 5-year-old
When you ask a big computer a question, it needs to look at a lot of words first, which takes time. To make it faster, the computer can remember some of its thoughts (called KV cache) and reuse them for new questions. But if the remembered thoughts don't match the new question, the answer can become wrong. The researchers created a way to decide which thoughts are safe to reuse by measuring how risky they are, using a simple math rule. They then only reuse the safe thoughts and recompute the risky ones, making answers faster and still correct.

## Explained to a 5-year-old, longer
When you ask a big computer a question, it first reads a lot of words to understand the context. This reading step can be slow, especially when the question is long. To speed things up, the computer can remember some of the information it has seen before and reuse it later. However, if the remembered information doesn't match the new question, the answer can become wrong. The researchers noticed that existing ways of picking which information to reuse only look at one part of the problem. They developed a new method that looks at how errors can spread from the reused information to the final answer. Their method uses a simple calculation to estimate how risky each piece of remembered information is. By checking this risk, they can decide which pieces are safe to reuse and which should be recomputed. The safe pieces are kept, while the risky ones are recalculated from scratch. This approach keeps the answers correct while making the system faster. It works for many different types of questions and can be added to existing systems without big changes. As a result, users get quicker responses without sacrificing accuracy.

## For a technical reader
In RAG pipelines, KV cache reuse reduces prefill latency but can introduce quality degradation due to context mismatch. KVFocus adds a plug-and-play selector that computes a token-risk score derived from a first-order perturbation analysis, capturing both source-side drift and downstream attention effects. By recomputing only the top-r% highest-risk tokens, the selector suppresses the predicted error while preserving most of the speed gain. This mechanism can be integrated into existing serving stacks with minimal overhead, delivering up to 3× TTFT improvement at comparable answer quality.

## Problem
Selective KV cache reuse in retrieval-augmented generation can cause cross-context mismatches that degrade answer quality, while full prefill incurs high latency. The challenge is to balance answer quality and time-to-first-token efficiently.

## Method
The approach performs a first-order perturbation analysis of KV reuse errors across source mismatch, suffix contamination, and decode-time logits, then defines a token-risk score based on the product of source-side V-drift and downstream attention concentration. A plug-and-play selector recomputes the top-r% tokens to suppress the predicted error.

## Results
Across three 7-8B LLMs and four multi-hop QA benchmarks, the approach achieves up to 3× faster TTFT than full prefill while matching answer quality, outperforming existing baselines.

## Contributions
A perturbation-theoretic analysis of KV cache reuse errors and a token-risk score that captures both source-side and downstream effects, enabling a plug-and-play selector for efficient cache reuse.

## Practical relevance
Enables faster RAG inference on existing LLM serving systems, allowing higher throughput without sacrificing answer quality.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149014)
