arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.22603cs.AIcs.LG
收藏

SideQuest: 为长时间范围代理推理的模型驱动KV缓存管理

SideQuest: Model-Driven KV Cache Management for Long-Horizon Agentic Reasoning

NVIDIA

Sanjay Kariyappa, G. Edward Suh

AI总结:

SideQuest通过利用大型推理模型自身进行KV缓存压缩,有效减少代理任务中的内存使用,同时保持较高的准确性。

摘要:

长时间运行的代理任务,如深度研究,需要在多个网页和文档上进行多跳推理。在这些任务中,LLM的上下文主要由外部检索的token组成,导致内存使用迅速增长并限制解码性能。虽然已有几种针对长上下文输入的KV缓存压缩技术,但我们发现现有启发式方法无法有效支持多步骤推理模型。我们通过SideQuest——一种新颖的方法,利用大型推理模型(LRM)自身进行KV缓存压缩,通过推理其上下文中token的有用性来实现。为了防止与该管理过程相关的token污染模型的内存,我们将KV缓存压缩视为一个并行执行的辅助任务。我们的评估使用仅训练215个样本的模型,显示SideQuest在代理任务中将峰值token使用量减少高达65%,在准确性上仅有轻微下降,优于基于启发式的KV缓存压缩技术。

英文摘要:

Long-running agentic tasks, such as deep research, require multi-hop reasoning over information distributed across multiple webpages and documents. In such tasks, the LLM context is dominated by tokens from external retrieval, causing memory usage to grow rapidly and limiting decode performance. While several KV cache compression techniques exist for long-context inputs, we find that existing heuristics fail to support multi-step reasoning models effectively. We address this challenge with SideQuest -- a novel approach that leverages the Large Reasoning Model (LRM) itself to perform KV cache compression by reasoning about the usefulness of tokens in its context. To prevent the tokens associated with this management process from polluting the model's memory, we frame KV cache compression as an auxiliary task executed in parallel to the main reasoning task. Our evaluations, using a model trained with just 215 samples, show that SideQuest reduces peak token usage by up to 65% on agentic tasks with minimal degradation in accuracy, outperforming heuristic-based KV cache compression techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑