← News

Agents & MCPSources: arXiv · 2 Dec 2026

Study finds KV-cache eviction policies can strip shared system prompts from LLM agents

A new arXiv paper reports that seven published eviction policies treat the shared system prompt like any other cached text, and that evicting it often leaves agents unable to recall their tool documentation.

In plain words

LLM agents reuse the same system prompt, with instructions and tool documentation, in every session, and serving engines store it once for all of them. The authors found that common cache-eviction policies delete this prompt anyway, so agents forget how to call their tools. Keeping the prompt in the cache costs nothing extra when prefix caching is used.

What was announced

The paper, posted on arXiv, measures seven published eviction policies on recorded sessions of SWE-agent, a coding agent, counting memory the way a serving engine does, with the shared prefix stored once across sessions. The authors tested four models from the Qwen2.5 and Llama-3.1 families, ranging from 1.5 to 14 billion parameters.

When sessions keep an eighth of their cache, four policies that select tokens by attention or position retain at most 14% of the shared prefix, and the models rarely recall how to call their tools. Under prefix caching, keeping the whole prefix adds no per-session memory cost and lets the model recall its tool documentation in nearly every case. It also raises how often the agent's next commands follow the documented command format by 10 to 22 percentage points on three models, while five of six policies tested on recall showed no significant drop in recalling facts from the session's own history. The authors conclude that serving engines can exempt the shared prefix from eviction at no memory cost.

What it does not show

  • The findings come from an arXiv abstract covering recorded SWE-agent sessions and four models from two families, so results for other agents, models or live deployments are not established.
  • The reported improvements and recall outcomes are the authors' own measurements and have not been independently confirmed.

For security and IT teams

Scope
The paper's results apply to serving engines that use prefix caching, where the shared system prompt is stored once across sessions rather than per session.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.