KVMEM 通过分页旧 KV 状态,让百万 token 级智能体记忆变得实用,在降低召回成本的同时任务成功率优于压缩方案。在 DeepSWE 上用 Qwen3.8-27B,Pass@1 从 43.8% 提升至 48.4%;受控基准中恢复速度比 Compact+RAG 快 11.4–53.8×。
A model’s context window does not have to be an agent’s workspace limit.
KVMEM makes million-token agent memory practical by paging old KV state, cutting recall cost while beating compaction on task success.
Long-running agents eventually fill their context. Today, they usually compress old history into summaries or fetch old text again. Summaries can forget details. Fetching text makes the model process the same history again.
KVMEM keeps the work the model already did. Old context stays as reusable KV cache in GPU memory, RAM, or NVMe, and the system pulls back only the pieces needed for the current step.
On DeepSWE with Qwen3.8-27B, Pass@1 rose from 43.8% to 48.4% versus compaction-only. Across controlled benchmarks, recovery was 11.4–53.8× faster than Compact+RAG.
On a laptop with a 24 GB RTX 5090 GPU, KVMEM supported a 1M-token workspace at about 50 tokens/s.
This is not a 1M-token active prompt. Each step still sees only a bounded slice.
来源:@rohanpaul_ai · x.com