Selective KV Cache Recomputation for Efficient Context Reuse

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 112 papers17 conceptsfrozen 2026-10-04

Large Language Models (LLMs) are increasingly used in scenarios requiring massive contexts, such as Retrieval-Augmented Generation (RAG) and multi-agent collaboration. However, the "prefill" stage—where the model processes the input context to generate Key-Value (KV) caches—scales poorly with sequence length. While caching these KV states for reuse seems like an obvious solution, simply concatenating precomputed caches often fails because Transformers rely on position-dependent embeddings and cross-token dependencies that break when the relative order or composition of the context changes.

The emerging research direction across these papers is Selective KV Cache Recomputation. Instead of choosing between a slow, full recomputation of the context or a fast but inaccurate reuse of stale caches, these methods identify and refresh only the most critical tokens to restore model fidelity at a fraction of the cost.

The Problem of Stale Contexts

When a document is cached, its KV states are computed in a specific context. If that document is later retrieved to answer a user query, its relative position changes, and it must now interact with a new query and other retrieved documents. Standard Transformers use Rotary Positional Embeddings (RoPE) or attention mechanisms that are sensitive to these shifts.

As noted by Yingsheng Geng and colleagues in RelayCaching, these changes cause "KV cache deviations." If left uncorrected, the model's attention mechanism fails to "see" the relationships between the new query and the old context, leading to a sharp drop in accuracy.

Identifying Information-Critical Tokens

The core intuition behind this research is that not all tokens in a long context are equally important for a specific query. By identifying a small subset of "critical" tokens and recomputing them in the presence of the new context, the model can "stitch" the stale caches together.

Researchers use several heuristics to select these tokens:

  • Attention Sinks: Shiju Zhao (MPIC) and Zeng Zihao (AdaCache) focus on initial tokens or "attention sinks" that act as anchors for the model's internal representations.
  • Query Relevance: Qingrong Xia (A3) and Shihao Wang (ProphetKV) use the user's query to identify which parts of the document are semantically relevant, recomputing only those high-utility segments.
  • Information Flow: Xin Teng (InfoFlow KV) uses attention norms as a proxy for "information flow," selecting tokens that are structurally vital to the document's meaning.

Restoring Cross-Attention with Sparse Updates

Once the critical tokens are identified—often representing only 15-20% of the total context—the system performs a partial prefill. This process updates the KV states of the selected tokens while keeping the rest of the cache "stale."

This approach works because the Transformer's attention mechanism is naturally sparse. Jiayi Yao and the authors of CacheBlend demonstrate that recomputing tokens that exhibit high deviation when context chunks are combined is sufficient to restore cross-chunk attention. Similarly, Jingbin Zhang (SamKV) shows that this selective restoration can even exceed the accuracy of full recomputation by effectively "denoising" the context and focusing the model on relevant information.

Efficiency Gains in Latency and Memory

The primary benefit of this direction is a massive reduction in Time-to-First-Token (TTFT). By avoiding the quadratic cost of full attention over long sequences, systems like SALS by Junlin Mu achieve up to 4.5x throughput improvements.

Furthermore, Woomin Song (REFORM) highlights that recomputing high-fidelity segments on-demand is often faster than the alternative: transferring massive, uncompressed KV caches from CPU to GPU memory. This shifts the bottleneck from memory bandwidth to computation, which modern GPUs are better equipped to handle.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_selective_kv_cache_recomputation_for_eff_13b9b294,
  title = {Selective KV Cache Recomputation for Efficient Context Reuse},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/selective-kv-cache-recomputation-for-efficient-context-reuse/rdr_13b9b294f0f947fa89252894747bfb2e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_selective_kv_cache_recomputation_for_eff_13b9b294_v1,
  title = {Selective KV Cache Recomputation for Efficient Context Reuse},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/selective-kv-cache-recomputation-for-efficient-context-reuse/rdr_13b9b294f0f947fa89252894747bfb2e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}