Tsinghua paper: letting agents manage their own KV cache cuts cost by 27.7%

dair_ai · x · 2026-10-22

A Tsinghua/CUHK paper introduces "cache engineering": instead of trimming or summarizing trajectory text (which invalidates KV cache prefixes and triggers costly re-prefills), agents get programmable operations to drop selected cache from future attention and reposition retained keys. With KV cache reads accounting for up to 82.4% of API cost, a rolling drop policy for old tool responses improves benchmark scores by 1.7 points while cutting average cost by 27.7%. The co-designed KV serving engine delivers up to 1.2× output throughput and 1.5× P95 latency gains, and recursive self-improvement of cache policies saves another 7.1% over expert design. Code: github.com/thu-nics/AKV

Original post →

More from coding & agent

coding & agent channel →