arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.31098cs.CL
收藏

RIFT:基于互补可压缩性训练的草稿模型KV缓存压缩

RIFT: KV Cache Compression for Draft Models with Complementary Compressibility Training

NVIDIA(英伟达)

Dor Tsur, Maor Ashkenazi, Maximilian Golub, Peter Hicks, Yaniv Galron, Talor Abramovich, Yoav Miron, Tiyasa Mitra, Bita Darvish Rouhani, Ran Zilberstein

AI总结:

该研究针对推测解码中KV缓存压缩的解码陈旧性问题,提出RIFT策略及自适应KV刷新方法,结合可压缩性训练,使Qwen3.5-4B为Qwen3.5-122B做草稿时保留超98%全缓存接受长度。

摘要:

推测解码是一种流行的解码加速方法,因此它与需要越来越大的KV缓存的长输出生成特别相关。KV缓存压缩为约束长上下文草稿生成的成本提供了一种途径。然而,专注于预填充信息的压缩方法会随着输出长度的增长而失去相关性。我们将这种现象称为解码陈旧性,并表明在基于选择的KV缓存压缩下,它会降低草稿模型的准确率。我们引入了RIFT,这是一系列基于选择的KV缓存压缩策略,可平衡预填充信息和最近生成的token。我们表明,在token生成过程中刷新KV缓存选择可显著提高草稿模型的质量,代价是增加额外的解码延迟。为了缓解刷新成本,我们提出了一种自适应KV刷新策略,该策略在保持草稿模型质量的同时减少了分数计算的数量。我们进一步证明,基于稀疏注意力掩码的可压缩性驱动的草稿模型训练阶段如何能在压缩的KV缓存下提高草稿模型的质量。结合可压缩性训练,RIFT使Qwen3.5-4B(为Qwen3.5-122B做草稿)在32K token输入、4K token输出和8K token KV缓存预算下,保留了超过98%的全缓存接受长度。

英文摘要:

Speculative decoding is a popular decode acceleration method. As such, it is particularly relevant to long-output generation, which requires an increasingly large KV cache. KV cache compression offers a way to constrain costs in long-context drafting. However, compression methods that focus on prefill information can lose relevance as the output length grows. We term this phenomenon decode staleness and show that it degrades draft model accuracy under selection-based KV cache compression. We introduce RIFT, a family of selection-based KV cache compression strategies that balance prefill information and recent generated tokens. We show that refreshing the KV cache selection during token generation significantly improves the drafter's quality at the cost of additional decode latency. To alleviate the refresh costs, we propose an adaptive KV refresh strategy that reduces the number of score calculations while retaining the drafter's quality. We further demonstrate how a compressibility-driven drafter training phase, based on sparse attention masks, can improve the drafter's quality under a compressed KV cache. Combined with compressibility training, RIFT enables Qwen3.5-4B, drafting for Qwen3.5-122B, to retain over 98% of its full-cache acceptance length on 32K-token inputs, 4K-token outputs, and an 8K-token KV cache budget.

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

↑