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

基于块级缓存系统的KV缓存重用策略实验研究

An experimental study of KV cache reuse strategies in chunk-level caching systems

Samuel Cestola, Tianxiang Xia, Zheng Weiyan, Zheng Pengfei, Diego Didona

AI总结:

本文通过实验探讨块级缓存系统中KV缓存重用策略的局限性与优化方法,提出一种融合现有技术的改进设计以提升准确性。

摘要:

检索增强生成通过将相关检索文本添加到提示中提高大语言模型的准确性。块级缓存(CLC)通过预先计算这些检索块的KV缓存并重用它们来加速推理。然而,这些缓存会丢失块间交叉注意力依赖关系,从而降低输出质量。几种方法尝试通过不同技术提高CLC准确性。本文的两个主要贡献是:首先,我们证明现有CLC方法存在根本性限制,限制了其准确性和适用性,并通过广泛的CLC系统实验评估支持这一结论。其次,我们观察到现有CLC技术是互补的。我们利用这一见解提出了一种新的CLC设计,通过仔细结合这些技术实现了更好的准确性。

英文摘要:

Retrieval-augmented generation improves large language models' accuracy by adding relevant retrieved text to the prompt. Chunk level caching (CLC) accelerates inference by precomputing KV caches for these retrieved chunks and reusing them. However, these caches miss cross-attention dependencies between chunks, which can reduce output quality. Several methods try to improve CLC accuracy using different techniques. We make two main contributions. First, we show that existing CLC approaches have fundamental limitations that limit their accuracy or their applicability. We back this conclusion with an extensive CLC system experimental evaluation. Second, we observe that existing CLC techniques are complementary. We leverage this insight to propose a new CLC design that carefully combines them and achieves better accuracy.

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

↑