跳到正文
DAIR.AI· @dair_ai · X·· 4 小时前AI 评分44
AI 导读

一项研究将智能体上下文工程转向缓存工程,聚焦长时运行智能体的KV缓存管理:智能体摘要或裁剪历史时前缀变化会使后续缓存失效、保留上下文需重新预填充。该工作为智能体提供可编程的KV缓存接口,支持移除未来注意力条目与位移剩余key位置,并对缓存策略做递归自改进,在专家设计基础上再降成本7.1%。

正文

We love papers that go deeper down the stack.

This is a good example that shifts from agentic context engineering to agentic cache engineering.

They also apply recursive self-improvement to cache policies to further reduce cost by 7.1% over expert design.

Specifically, this work focuses on KV cache management in long-running agents.

When an agent summarizes or trims its history, the prefix change invalidates the cache after it, and the retained context must be prefilled again.

Cache engineering gives the agent two operations on its own KV cache. One removes entries from future attention, and the other shifts the positions of the keys that remain. The trajectory text stays unchanged. This essentially provides a programmable interface for agents to define and refine their own cache engineering strategies.

A rolling drop of old tool responses scores 1.7 points higher and costs 27.7% less than threshold-triggered summarization. Their AKV serving engine adds up to 1.2x throughput and 1.5x faster P95 latency.

https://arxiv.org/abs/2610.28577

Chat with Paper: https://academy.dair.ai/papers/cache-engineering-for-agents-2610.28577

来源:DAIR.AI · x.com