arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.21547cs.DB
收藏

基于关系的大型语言模型缓存替换策略RAC

RAC: Relation-Aware Cache Replacement for Large Language Models

Zhejiang University(浙江大学);Shenzhen Institute of Computing Sciences(深圳计算科学研究院);Tongji University(同济大学);Hong Kong University of Science and Technology(香港科技大学);Shanghai Jiao Tong University(上海交通大学)

Yuchong Wu, Zihuan Xu, Wangze Ni, Peng Cheng, Lei Chen, Xuemin Lin, Heng Tao Shen, Kui Ren

AI总结:

RAC通过利用请求之间的语义关系,提出了一种高效的缓存替换策略,显著提升了缓存命中率。

摘要:

大型语言模型(LLM)服务的扩展面临显著的成本和延迟挑战,有效利用有限容量的缓存至关重要。现有缓存替换策略,从启发式到基于学习的方法,大多依赖于有限窗口统计信息,如最近性和频率。我们证明这些信号在现实中的LLM工作负载中并不稳健,这些工作负载表现出长重用距离和稀疏的局部重复。为了解决这些限制,我们提出了关系感知缓存(RAC),一种在线驱逐策略,利用请求之间的语义关系来指导驱逐决策。RAC合成两种关系感知信号:(1)主题普遍性,通过主题层面的访问证据聚合来捕捉长周期重用;(2)结构重要性,利用局部主题内依赖结构来区分条目基于其未来的重用价值。广泛评估显示,RAC在各种工作负载中保持高有效性,一致在缓存命中率上超过最先进基线方法20%至30%。

英文摘要:

The scaling of Large Language Model (LLM) services faces significant cost and latency challenges, making effective caching under tight capacity crucial. Existing cache replacement policies, from heuristics to learning-based methods, predominantly rely on limited-window statistics such as recency and frequency. We show these signals are not robust for real-world LLM workloads, which exhibit long reuse distances and sparse local recurrence. To address these limitations, we propose Relation-Aware Cache (RAC), an online eviction strategy that leverages semantic relations among requests to guide eviction decisions. RAC synthesizes two relation-aware signals: (1) Topical Prevalence, which aggregates access evidence at the topic level to capture long-horizon reuse; and (2) Structural Importance, which leverages local intra-topic dependency structure to discriminate entries by their future reuse value. Extensive evaluations show that RAC maintains high effectiveness across diverse workloads, consistently surpassing state-of-the-art baselines by 20%--30% in cache hit ratio.

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

↑