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

LycheeCluster: 基于结构感知分块和分层KV索引的高效长上下文推理

LycheeCluster: Efficient Long-Context Inference with Structure-Aware Chunking and Hierarchical KV Indexing

Harbin Institute of Technology(哈尔滨工业大学);University of Electronic Science and Technology of China(电子科技大学)

Dongfang Li, Zixuan Liu, Gang Lin, Baotian Hu, Min Zhang

AI总结:

LycheeCluster通过结构感知分块和分层KV索引,实现高效长上下文推理,提升推理速度3.6倍且性能损失极小。

摘要:

注意力机制的二次复杂度和键值(KV)缓存的显著内存开销给大型语言模型(LLMs)处理长上下文带来了严重的计算和内存挑战。现有的基于检索的方法通常通过固定大小的分块牺牲语义完整性,并且存在效率低下的线性扫描问题。在本文中,我们提出LycheeCluster,一种新的高效KV缓存管理方法。LycheeCluster通过边界感知的分块保持局部语义一致性,并构建一个基于三角不等式的递归分层索引。这种设计将缓存检索从线性扫描转变为理论上受限制的对数时间剪枝过程,同时懒惰更新策略支持高效的流式生成。实验表明,LycheeCluster在端到端推理速度上实现了高达3.6倍的提升,模型性能的下降 negligible,优于现有最先进的KV缓存管理方法(例如Quest、ClusterKV)。我们在发表后将发布我们的代码和内核。

英文摘要:

The quadratic complexity of the attention mechanism and the substantial memory footprint of the Key-Value (KV) cache present severe computational and memory challenges for Large Language Models (LLMs) processing long contexts. Existing retrieval-based methods often compromise semantic integrity through fixed-size chunking and suffer from inefficient linear scanning. In this paper, we propose LycheeCluster, a novel method for efficient KV cache management. LycheeCluster preserves local semantic coherence via boundary-aware chunking and constructs a recursive hierarchical index rooted in the triangle inequality. This design transforms cache retrieval from a linear scan into a theoretically bounded, logarithmic-time pruning process, while a lazy update strategy supports efficient streaming generation. Experiments demonstrate that LycheeCluster achieves up to a 3.6x end-to-end inference speedup with negligible degradation in model performance, outperforming state-of-the-art KV cache management methods (e.g., Quest, ClusterKV). We will release our code and kernels after publication.

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

↑