arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.08426cs.LGcs.AIcs.CL
收藏

KV缓存卸载用于上下文密集型任务

KV Cache Offloading for Context-Intensive Tasks

HSE(俄罗斯人民友谊大学);Yandex;NSU(俄罗斯国立核能研究大学梅利科夫)

Andrey Bocharnikov, Ivan Ermakov, Denis Kuznedelev, Vyacheslav Zhdanovskiy, Yegor Yershov

AI总结:

本文研究了KV缓存卸载在上下文密集型任务中的应用,通过Text2JSON基准测试发现,该方法在Llama 3和Qwen 3模型上导致性能下降,分析指出低秩投影和不可靠地标是主要问题,并提出更简单的替代策略以提升准确性。

摘要:

随着长上下文LLM在广泛应用中的需求增长,键值(KV)缓存已成为延迟和内存使用的关键瓶颈。最近,KV缓存卸载作为一种减少内存占用和推理延迟同时保持准确性的有前途的方法出现。先前的评估主要集中在不需要从上下文中提取大量信息的任务上。在本文中,我们研究了KV缓存卸载在上下文密集型任务中的应用:解决这些问题需要从输入提示中查找大量信息。我们创建并发布了Text2JSON基准测试,这是一个高度上下文密集型任务,需要从原始文本中提取结构化知识。我们评估了现代KV卸载在Text2JSON和其他上下文密集型任务上的表现,并发现Llama 3和Qwen 3模型上存在显著的性能下降。我们的分析确定了两个关键原因:键的低秩投影和不可靠的地标,并提出了一种更简单的替代策略,该策略在多个LLM家族和基准测试中显著提高了准确性。这些发现突显了对长上下文压缩技术进行全面和严格评估的必要性。

英文摘要:

With the growing demand for long-context LLMs across a wide range of applications, the key-value (KV) cache has become a critical bottleneck for both latency and memory usage. Recently, KV-cache offloading has emerged as a promising approach to reduce memory footprint and inference latency while preserving accuracy. Prior evaluations have largely focused on tasks that do not require extracting large amounts of information from the context. In this work, we study KV-cache offloading on context-intensive tasks: problems where the solution requires looking up a lot of information from the input prompt. We create and release the Text2JSON benchmark, a highly context-intensive task that requires extracting structured knowledge from raw text. We evaluate modern KV offloading on Text2JSON and other context-intensive tasks and find significant performance degradation on both Llama 3 and Qwen 3 models. Our analysis identifies two key reasons for poor accuracy: low-rank projection of keys and unreliable landmarks, and proposes a simpler alternative strategy that significantly improves accuracy across multiple LLM families and benchmarks. These findings highlight the need for a comprehensive and rigorous evaluation of long-context compression techniques.

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

↑