基础设施 4.0 · 优秀 2026-11-20 · 论文

Contexture: Runtime Context Eviction for High-Throughput Agent Serving

HermesOpenClawCodex 这类 agent 反复重发越来越长的执行历史,共享 GPU KV cache 成了服务吞吐瓶颈Contexture 把 harness 的完整对话历史与模型执行上下文分开,在运行时做上下文逐出:把 token 追溯到发起它的工具操作后发现,后续操作会取代早期输出,64% 的最终历史 token 是逐出候选;再按全局 KV 压力与前缀驻留状态决定何时值得牺牲已缓存计算,全程不改 harness 逻辑不改模型执行两组模型两个 harness两个基准上,SLO 内吞吐比无逐出harness 压缩AgentDietContinuum 中最好者高 20-73%,H100 上比 LMCache 高 23%,每会话 GPU 能耗最多降 11%;活体 agent 实验精度平均还升 1.4 个百分点最坏丢 3.7

打开原文回到归档

Contexture: Runtime Context Eviction for High-Throughput Agent Serving

  • ID: 892a569d
  • 原文链接: https://arxiv.org/abs/2611.26980
  • 作者: Colin Hong, Bryan Shan, Dmitrii Ustiugov
  • 日期: 2026-11-20
  • 分类: infra
  • 来源类型: paper
  • 标签: agent-serving, kv-cache, context-management, gpu, throughput
  • 质量评分: 4/5
  • 抓取时间: 2026-11-29T15:42:39Z

中文导读

HermesOpenClawCodex 这类 agent 反复重发越来越长的执行历史,共享 GPU KV cache 成了服务吞吐瓶颈Contexture 把 harness 的完整对话历史与模型执行上下文分开,在运行时做上下文逐出:把 token 追溯到发起它的工具操作后发现,后续操作会取代早期输出,64% 的最终历史 token 是逐出候选;再按全局 KV 压力与前缀驻留状态决定何时值得牺牲已缓存计算,全程不改 harness 逻辑不改模型执行两组模型两个 harness两个基准上,SLO 内吞吐比无逐出harness 压缩AgentDietContinuum 中最好者高 20-73%,H100 上比 LMCache 高 23%,每会话 GPU 能耗最多降 11%;活体 agent 实验精度平均还升 1.4 个百分点最坏丢 3.7

为什么值得关注

用哪个工具输出已被取代做 KV 逐出是 agent 服务的正确语义层:SLO 内吞吐 +20-73%,精度不降反升,服务化团队可直接借鉴

用工具执行语义(哪个输出已被取代)做 KV 逐出是正确的语义层:吞吐数字强、精度不降反升,而且不动 harness、不改模型,服务化团队可以直接借鉴。

关键信息

  • 标题: Contexture: Runtime Context Eviction for High-Throughput Agent Serving
  • 作者: Colin Hong, Bryan Shan, Dmitrii Ustiugov
  • 链接: https://arxiv.org/abs/2611.26980
  • PDF: https://arxiv.org/pdf/2611.26980
  • arXiv 分类: cs.DC, cs.AI, cs.MA, cs.OS
  • 发布时间: 2026-11-20
  • 分类: infra | 标签: agent-serving, kv-cache, context-management, gpu, throughput

English Abstract

LLM agents such as Hermes, OpenClaw, and Codex repeatedly resend growing execution histories, increasing shared GPU key-value (KV) cache demand in high-bandwidth memory (HBM). We show that shared KV capacity limits agent-serving throughput. Existing context-reduction methods lack global cache-state visibility, while runtime KV managers lack tool-execution information. Tracing tokens to their originating tool operations reveals that later operations supersede earlier outputs and associated turns, identifying 64% of recorded final-history tokens as removal candidates. We present Contexture, a harness- and model-agnostic architecture for runtime context eviction. Contexture separates the harness's full conversation history from the model's execution context, reducing subsequent requests' KV demand without modifying harness logic or model execution. It combines tool-execution information with global visibility into shared KV pressure and prefix residency: supersession identifies removal candidates, while runtime state determines when removal justifies sacrificing cached computation. This coordination reduces memory demand and decode KV traffic while limiting re-prefill interference with concurrent decoding, without additional model calls or training. Across two models, two harnesses, and two benchmarks, Contexture improves throughput under SLO by 20-73% over the best of no eviction, harness compaction, AgentDiet, and Continuum, and by 7-63% over observation masking in five of eight configurations, and reduces GPU energy per completed session by up to 11%. It also raises throughput under SLO by 23% over LMCache alone on H100. Live-agent experiments show a mean accuracy improvement of 1.4 percentage points over unloaded no eviction, with a worst-case loss of 3.7 points, while observation masking loses 3-28 points.

Obsidian 证据摘录

把 token 追溯到发起它们的工具操作后发现,后续操作会取代早期输出,64% 的最终历史 token 是逐出候选;两组模型、两个 harness、两个基准上,SLO 内吞吐比无逐出、harness 压缩、AgentDiet、Continuum 中最好的高 20-73%,H100 上比 LMCache 高 23%,每会话 GPU 能耗最多降 11%。

—— Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/OpenClaw定时任务/论文流水线/2026-11-29-论文流水线.md