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

基于上下文的分层高效语义选择:长上下文LLM推理

CHESS: Context-aware Hierarchical Efficient Semantic Selection for Long-Context LLM Inference

King Abdullah University of Science;Centre for Artificial Intelligence;Robotics, Hong Kong Institute of Science \& Innovation, Chinese Academy of Sciences, Hong Kong, China

Chao Fei, Guozhong Li, Chenxi Liu, Panos Kalnis

AI总结:

CHESS通过上下文感知的分层选择策略和系统级优化,实现长上下文LLM推理的高效缓存管理,以1%的缓存使用率获得4.56倍的吞吐量提升。

摘要:

长上下文LLM需要在低延迟下实现准确的推理,但解码主要受到KV缓存的限制,随着上下文的增长。先前的剪枝方法大多缺乏上下文意识:它们的token选择忽略了逐步相关性和局部语义,从而影响了质量。此外,它们的不规则访问和选择开销只能带来有限的实时时钟加速。为了解决这个问题,我们提出了CHESS,一种算法-系统协同设计的KV缓存管理系统。算法上,CHESS引入了一种上下文感知的分层选择策略,动态重建当前解码的连贯上下文。系统上,粗粒度选择消除了昂贵的数据移动,完全实现了从理论稀疏性到实际加速的转变。广泛的评估表明,CHESS仅使用KV缓存的1%即可超越Full-KV的质量,实现了高达4.56倍的吞吐量,且在稳定低延迟推理方面优于其他强大的基线方法。

英文摘要:

Long-context LLMs demand accurate inference at low latency, yet decoding becomes primarily constrained by KV cache as context grows. Prior pruning methods are largely context-agnostic: their token selection ignores step-wise relevance and local semantics, which undermines quality. Moreover, their irregular accesses and selection overheads yield only limited wall-clock speedups. To address this, we propose \textbf{CHESS}, an \textit{algorithm-system co-design} KV-cache management system. Algorithmically, CHESS introduces a context-aware, hierarchical selection policy that dynamically reconstructs a coherent context for the current decoding. System-wise, coarse granularity selection eliminates expensive data movement, fully realizing practical acceleration from theoretical sparsity. Extensive evaluations demonstrate that CHESS surpasses Full-KV quality using only \textbf{1\%} of the KV cache, delivers low-latency stable inference with up to \textbf{4.56$\times$} higher throughput, and consistently outperforms other strong baselines. Code is available at \href{https://anonymous.4open.science/r/CHESS-9958/}{https://anonymous.4open.science/r/CHESS/}.

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

↑