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

通过 KV 缓存压缩的视角重新思考 LoRA 内存

Rethinking LoRA Memory Through the Lens of KV Cache Compression

Johns Hopkins University(约翰霍普金斯大学)

Chunsheng Zuo, Liaoyaqi Wang, William Jurayj, William Fleshman, Benjamin Van Durme

AI总结:

本文研究文档级问答中参数侧内存(LoRA适配器)与上下文侧内存(KV缓存)的交互,发现LoRA在KV缓存压缩严重时能显著提升性能,并建议将文档LoRA视为解码时的参数化内存而非文档编码器。

摘要:

参数化检索增强将文档信息编码为轻量级、文档特定的模块(如LoRA适配器),从而减少将所有证据作为输入上下文的需求。然而,这种参数侧内存如何与存储在KV缓存中的上下文侧内存相互作用仍不清楚。我们通过逐步驱逐文档键值状态并测量文档LoRA在保留上下文之外的贡献,在文档级问答中研究这种交互。我们发现,当KV缓存基本完整时,文档LoRA贡献很小,但在激进压缩下变得日益有用,当没有文档上下文保留时,恢复了13-21个ROUGE-L点。当基础模型编码文档且适配器仅在答案生成期间应用时,增益最大,这表明文档LoRA更适合理解为解码时的参数化内存,而非文档编码器。最后,问答风格的监督比原始上下文的下一个词预测产生更强的适配器。这些结果将文档LoRA定位为一种互补的内存通道,其价值恰恰在上下文侧证据稀缺时显现。

英文摘要:

Parametric retrieval augmentation encodes document information into lightweight, document-specific modules such as LoRA adapters, reducing the need to include all evidence as input context. However, it remains unclear how this parameter-side memory interacts with context-side memory stored in the KV cache. We study this interaction in document-level question answering by progressively evicting document key-value states and measuring when a document LoRA contributes beyond the retained context. We find that document LoRA adds little when the KV cache is largely intact, but becomes increasingly useful under aggressive compression, recovering 13-21 ROUGE-L points when no document context remains. The gain is largest when the base model encodes the document, and the adapter is applied only during answer generation, suggesting that document LoRA is better understood as decoding-time parametric memory than as a document encoder. Finally, QA-style supervision produces substantially stronger adapters than raw-context next-token-prediction. These results position document LoRA as a complementary memory channel whose value emerges precisely when context-side evidence is scarce.

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

↑