# AgentKVShift: Efficient KV Cache Reuse for Agentic Memory Systems

*Nilesh Pandey, Jason Kong, Lanxiang Hu, Quanling Zhao, Yujie Zhao, Onat Gungor, Hao Zhang, Tajana S Rosing*

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

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Efficient LLM Serving Scaling](../pgroup/50.md) · Type: new method · Keywords: KV cache reuse, agentic memory systems, probe-guided correction, prefill latency, LLM inference efficiency

Areas: [Memory](../areas/memory.md) › Model Memory Optimization › KV Cache Optimization; [Long Context](../areas/longcontext.md) › Long-context mechanisms › KV cache eviction; [AI Agents](../areas/agents.md) › Agent Optimization and Evaluation › KV Cache Optimization

## Summary
AgentKVShift is a training-free, probe-guided KV residual correction method that reuses KV cache for agentic memory units, achieving near full recompute performance while refreshing only 10-30% of the cache.

## Explained to a 5-year-old
Imagine a robot friend that remembers things it has talked about before. Every time it remembers something, it has to copy the memory into its brain (the KV cache). This copying takes a lot of time. The researchers found a trick: they look at a tiny sample of the memory, see a common shift, and then adjust the whole memory with one correction. This way the robot can reuse most of its old memory without copying everything, making it faster.

## Explained to a 5-year-old, longer
A robot friend likes to keep a diary of everything it has talked about. When it wants to remember something, it must copy the diary entry into its brain, which is called the KV cache. Copying the whole diary each time is slow and uses a lot of power. The researchers noticed that most of the diary entries are similar, so they only need to look at a few pages to find a common shift. They then use that shift to fix the whole diary with just one small correction. This trick lets the robot reuse almost all of its old diary without copying everything again, making it much faster. It also works when the diary is stored in a very small space, so the robot can still remember a lot while using less memory. The robot can now answer questions quickly, even after many conversations, because its memory is efficient and stays fresh.

## For a technical reader
The system estimates a shared offset from a small probe set and applies a weighted correction to each token in the reused cache. This correction is applied uniformly, improving both recomputed and non-recomputed tokens. The method reduces recompute ratios to 10-30% while maintaining near full recompute accuracy. It also composes with low-bit KV quantization, preserving performance under aggressive bit-width reductions.

## Problem
Retrieving memory units in LLM agents requires full re-encoding of each unit into KV cache, causing high prefill latency. Existing KV reuse methods, designed for raw passages, perform poorly on structured agentic memories, leading to inefficient inference.

## Method
The approach estimates a shared memory-level offset from a small probe set and applies a single weighted correction to each reused token, correcting both recomputed and non-recomputed tokens. This allows the refresh budget to be used across the entire memory unit rather than only on selected tokens.

## Results
The approach achieves near full recompute performance while refreshing only 10-30% of the cache, delivering prefill speedups of 2-3.5× over no-KV-reuse and retaining over 2× the F1 under aggressive 2- and 4-bit quantization.

## Contributions
It introduces a probe-guided KV residual correction that leverages a shared memory-level offset to correct all tokens, enabling efficient cache reuse for structured agentic memories. The method also composes with KV cache quantization, improving performance under low-bit settings.

## Practical relevance
It enables faster inference for long-horizon agentic memory workloads on standard hardware, making scalable LLM agents more practical.

## Research questions this paper is counted under

- [How can KV caches be efficiently reused across dynamic LLM inference workloads?](../q/328.md)

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/155404)
