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

自适应软滚动KV冻结与熵引导恢复:用于高效大语言模型推理的亚线性内存增长

Adaptive Soft Rolling KV Freeze with Entropy-Guided Recovery: Sublinear Memory Growth for Efficient LLM Inference

Institute of Information Technology(信息技术研究所);Kyrgyz State Technical University named after I. Razzakov(伊·拉扎科夫命名的吉尔吉斯斯坦技术大学)

Adilet Metinov, Gulida M. Kudakeeva, Bolotbek uulu Nursultan, Gulnara D. Kabaeva

AI总结:

ASR-KF-EGR通过自适应软冻结与熵引导恢复,实现高效大语言模型推理的亚线性内存增长,减少KV缓存占用同时保持生成质量。

摘要:

我们提出了Adaptive Soft Rolling KV Freeze with Entropy-Guided Recovery (ASR-KF-EGR),一种无需训练的推理时间框架,用于高效的大语言模型生成。我们的方法引入了一种可逆的软冻结机制,该机制在滑动注意力窗口内暂时暂停对重要性较低的token的键值(KV)更新。与基于驱逐的方法不同,后者永久丢弃上下文,ASR-KF-EGR在离GPU存储中保留所有token,并在需要时恢复它们。我们扩展了该框架,采用亚线性冻结调度,其中冻结持续时间随着重复的低重要性检测呈亚线性增长,防止过度压缩。在LLaMA-3 8B上的初步实验表明,主动KV缓存大小减少了55-67%,同时保持生成质量并通过了针线在海中检索测试。该方法架构无关,不需要微调,并为长上下文LLM的内存受限部署提供了实用的解决方案。

英文摘要:

We present Adaptive Soft Rolling KV Freeze with Entropy-Guided Recovery (ASR-KF-EGR), a training-free inference-time framework for efficient large language model generation. Our method introduces a reversible soft-freeze mechanism that temporarily suspends key-value (KV) updates for low-importance tokens identified within a sliding attention window. Unlike eviction-based approaches that permanently discard context, ASR-KF-EGR preserves all tokens in off-GPU storage and restores them on demand. We extend the framework with sublinear freeze scheduling, where freeze duration grows sublinearly with repeated low-importance detections, preventing over-aggressive compression. Preliminary experiments on LLaMA-3 8B demonstrate 55-67% reduction in active KV cache size while maintaining generation quality and passing needle-in-haystack retrieval tests. The method is architecture-agnostic, requires no fine-tuning, and provides a practical solution for memory-constrained deployment of long-context LLMs.

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

↑