基础设施 4.0 · 优秀 2026-09-30 · 论文

Capture the lifecycle: KV Cache management in ReAct Agents with KVTether

上海交通大学团队提出生命周期感知的 ReAct agent KV 缓存管理框架 KVTether上下文经过消息改写工具执行与子 agent 协调后会分化为活跃永久丢弃暂时不用三种状态,而 serving 栈只能看到 KV 访问,这一语义断层使 LRU 既回收不掉死 KV,也保不住即将被复用的旧 KVKVTether 追踪 agent harness 内嵌的语义原语捕获运行时生命周期,把消息级语义翻译成 KV 级状态,驱动状态优先的缓存管理:回收死 KV 后优先保留等待复用的活跃但空闲 KV,减少复用前的过早驱逐对比 LMCache 端到端请求延迟最高降 26.3%,对比 MORI 降 17.4%;估算任务成本平均降 40.0% 和 33.2%9 月 30 日提交

打开原文回到归档

Capture the lifecycle: KV Cache management in ReAct Agents with KVTether

Intake entry · 2026-10-05 · awesome-ai-field-notes

中文摘要

上海交通大学团队提出生命周期感知的 ReAct agent KV 缓存管理框架 KVTether。上下文经过消息改写、工具执行与子 agent 协调后会分化为活跃、永久丢弃、暂时不用三种状态,而 serving 栈只能看到 KV 访问,这一语义断层使 LRU 既回收不掉死 KV,也保不住即将被复用的旧 KV。KVTether 追踪 agent harness 内嵌的语义原语捕获运行时生命周期,把消息级语义翻译成 KV 级状态,驱动状态优先的缓存管理:回收死 KV 后优先保留等待复用的活跃但空闲 KV,减少复用前的过早驱逐。对比 LMCache 端到端请求延迟最高降 26.3%,对比 MORI 降 17.4%;估算任务成本平均降 40.0% 和 33.2%。9 月 30 日提交。

关键要点

  • 问题:harness 与 serving 栈之间的语义断层——消息会活跃、永久丢弃或暂时不用,serving 只看到 KV 访问。
  • 方法:追踪 harness 内嵌语义原语,捕获运行时生命周期,翻译成 KV 级状态驱动状态优先管理。
  • 回收死 KV 后优先保留 live-but-idle 等待复用的 KV,减少过早驱逐。
  • 延迟对比 LMCache 最高 -26.3%、对比 MORI -17.4%;估算任务成本平均 -40.0% / -33.2%。
  • KVTether 从 harness 语义捕获 KV 生命周期,agent 请求延迟最高降 26.3%

English Summary (arXiv abstract)

Efficient serving of long-context reasoning-and-acting (ReAct) agents relies on KV cache reuse to reduce large language model (LLM) prefill latency and monetary cost. However, a semantic gap exists between agent harnesses and the underlying serving stack. Through context mutation, tool execution, and subagent coordination, context messages may become actively engaged, permanently discarded, and temporarily unused, while the serving stack only observes accesses to the corresponding KV cache. This lifecycle blindness prevents recency-only policies such as LRU from reclaiming dead KV promptly and from preserving older KV that will be reused sooner than newer entries. We present KVTether, a lifecycle-aware KV cache management framework for ReAct agents. By tracing semantic primitives embedded in agent harnesses, KVTether captures runtime lifecycle semantics during highly dynamic execution. KVTether then translates message-level semantics into KV-level lifecycle states and uses these states to drive state-prioritized cache management without exposing physical complexities to agent harnesses. After reclaiming dead KV, KVTether preferentially preserves live-but-idle KV that is waiting for reuse, reducing premature eviction before reuse. Across agent benchmarks and production workloads, KVTether reduces end-to-end request latency by up to 26.3% and 17.4% relative to LMCache and MORI, respectively, and lowers estimated task cost by 40.0% and 33.2% on average.

One-liner

KVTether 从 harness 语义捕获 KV 生命周期,agent 请求延迟最高降 26.3%

原文摘录

This lifecycle blindness prevents recency-only policies such as LRU from reclaiming dead KV promptly and from preserving older KV that will be reused sooner than newer entries.
注:本文件为 daily-intake-evening cron 内容落盘(2026-10-05);opencli arxiv paper 拉取元数据与摘要生成;中文导读与要点锚定原文摘要,未补充其之外的实验细节。