Metraipolis › archive › dc_d2594c7be45e
KVMem: Virtualizing Million-Token Agent Workspaces on a Consumer GPU — arXiv:2609.04852
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.04852
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T22:58:18.036Z
- SHA-256 of the archived text
1e3f218b71d3b56375e27833c30eb60c8e3ef7a850dc348b228fc652528913a9- Stable URL of this page
https://metraipolis.com/documento/dc_d2594c7be45e
How to cite
KVMem: Virtualizing Million-Token Agent Workspaces on a Consumer GPU — arXiv:2609.04852 — arXiv (en), https://arxiv.org/abs/2609.04852 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d2594c7be45e (Metraipolis archive dc_d2594c7be45e, sha256 1e3f218b71d3b56375e27833c30eb60c8e3ef7a850dc348b228fc652528913a9)
BibTeX
@misc{dcd2594c7be45e,
title = {KVMem: Virtualizing Million-Token Agent Workspaces on a Consumer GPU — arXiv:2609.04852},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.04852},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d2594c7be45e; sha256 1e3f218b71d3b56375e27833c30eb60c8e3ef7a850dc348b228fc652528913a9},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.04852. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Modern LLM agents operate in persistent workspaces whose accumulated history can exceed both GPU KV capacity and the model's native context window. Existing systems typically compact older context into summaries or retrieve it later as text, either losing fine-grained execution evidence or repeatedly prefilling content that the model has already processed. We present KVMem, a KV-context virtualization system that preserves overflowed workspace history as paged KV state across GPU memory, host memory, and NVMe. KVMem uses lightweight, model-native attention-space indexes to select relevant historical blocks and materializes a query-dependent execution view bounded by the model's native context window. Extensive evaluations on long-context agent benchmarks spanning histories up to one million tokens, including LongMemEval, MemoryAgentBench, and AgentLongBench, show that KVMem generally achieves higher task utility and greater inference efficiency than compaction-based approaches, the de facto standard for handling context overflow. In the DeepSWE long-context test with Qwen3.8-27B, KVMem improves task success from 43.8% with compaction-only context management to 48.4%. In our local-deployment evaluation, KVMem runs Qwen3.6/3.8-27B NVFP4 with MTP on an off-the-shelf laptop equipped with a 24\,GB RTX 5090 Laptop GPU, virtualizing agent workspaces of up to 1M tokens-four times the model's native 256K-token context window. In a single-session setting, KVMem generates $\sim$50 tokens/s, providing interactive responsiveness for local agent execution. More broadly, by decoupling addressable workspace size from the LLM's native context window, KVMem provides a practical path toward long-running agents whose workspaces can grow beyond that window. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-07 in cs.LG). Categorie arXiv: Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2609.04852 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T22:31:32.194Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).