Cache Engineering for Agents
TL;DR - Cache engineering lets LLM agents directly manage active KV caches without rewriting trajectories or re-prefilling retained context. Its AKV serving engine reduces costs while improving task accuracy, throughput, and tail latency.
- Introduces
dropto exclude selected cache entries from future attention andreposto adjust retained keys’ positional encodings. - Identifies history dependence as a cache-reuse challenge: identical token sequences can produce different cache states depending on prior cache operations.
- A rolling-drop policy improves average benchmark scores by 1.7 points and cuts average cost by 27.7% versus threshold-triggered summarization.
- AKV delivers up to 1.2Ă— output throughput and 1.5Ă— faster P95 request latency; self-improved cache policies reduce cost by another 7.1% over expert designs.