arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.22130cs.AI
收藏

DropKV:用于近最优KV缓存驱逐的解耦残差输出扰动

DropKV: Decoupling Residual-Output Perturbation for Near-Optimal KV-Cache Eviction

University at Albany, SUNY(纽约州立大学奥尔巴尼分校);IBM T. J. Watson Research Center(IBM T. J. 沃森研究中心);Northwestern University(西北大学)

Aozhong Zhang, Selcuk Gurses, Yanxia Deng, Naigang Wang, Chi-Chun Liu, Davis Wertheimer, Derrick Liu, Xin Li, Zi Yang, Felix X. -F. Ye, Penghang Yin

AI总结:

DropKV是基于解耦残差输出扰动的KV缓存驱逐框架,可规避组合复杂性,实现19.8倍评分内核加速,在RULER等基准上优于现有方法,延迟更低且速度更快。

摘要:

键值(KV)缓存管理已成为将大语言模型(LLMs)扩展至长上下文场景的关键瓶颈,原因在于其内存呈线性增长。尽管近期的驱逐方法已超越了简单的注意力得分启发式方法,纳入了值表示,但它们通常面临一个根本性权衡:最小化输出扰动的底层优化是一个NP难组合问题,导致数学上非最优的启发式方法或难以内核化的实现。在本研究中,我们提出了DropKV,一个基于解耦残差输出扰动的简单且有原则的驱逐框架。通过将联合驱逐决策解耦为独立的逐token评分,DropKV规避了组合复杂性,并在我们在三个长上下文LLMs上经验验证的锥条件下,提供了可证明的常数因子近似保证。为确保实用性,我们提供了使用融合Triton内核的高性能实现,该实现避免了完整注意力矩阵的物化,实现了19.8倍的评分内核加速,转化为高达9.9%的匹配批次端到端预填充加速。在RULER和LongBench基准上的广泛评估表明,DropKV在等效缓存预算下始终优于最先进的基线,在驱逐方法中实现了最低的推理延迟,同时仍比动态缓存基线更快。

英文摘要:

Key-value (KV) cache management has become a critical bottleneck for scaling Large Language Models (LLMs) to long-context scenarios due to linear memory growth. While recent eviction methods have moved beyond simple attention-score heuristics to incorporate value representations, they typically face a fundamental trade-off: the underlying optimization for minimizing output perturbation is an NP-hard combinatorial problem, leading to mathematically suboptimal heuristics or implementations that are difficult to kernelize. In this work, we propose DropKV, a simple principled eviction framework based on Decoupled Residual-Output Perturbation. By decoupling the joint eviction decision into independent per-token scoring, DropKV circumvents combinatorial intractability and admits a provable constant-factor approximation guarantee under a cone condition that we empirically verify on three long-context LLMs. To ensure practical viability, we provide a high-performance implementation using fused Triton kernels that avoid materializing the full attention matrix, delivering a 19.8x scoring-kernel speedup that translates to up to a 9.9% matched-batch end-to-end prefill speedup. Extensive evaluations on the RULER and LongBench benchmarks demonstrate that DropKV consistently outperforms state-of-the-art baselines at equivalent cache budgets, achieving the lowest inference latency among eviction methods while also remaining faster than the dynamic cache baseline.

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

↑