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

面向移动边缘大语言模型服务的自适应上下文缓存

Adaptive Contextual Caching for Mobile Edge Large Language Model Service

Guangyuan Liu, Yinqiu Liu, Jiacheng Wang, Hongyang Du, Dusit Niyato, Jiawen Kang, Zehui Xiong

AI总结:

针对移动边缘LLM部署的资源约束与缓存低效问题,提出基于深度强化学习的自适应上下文缓存框架,可提升缓存命中率、降低检索延迟与更新开销,支撑边缘环境低延迟LLM服务。

摘要:

移动边缘大语言模型(LLM)部署面临计算资源有限、网络带宽不足等固有约束。尽管检索增强生成(RAG,Retrieval-Augmented Generation)通过整合外部知识库缓解了部分挑战,但低效的缓存管理仍会导致高检索延迟和频繁的缓存更新。为解决这些问题,我们提出自适应上下文缓存(ACC,Adaptive Contextual Caching)框架,通过主动为移动边缘LLM缓存语义相关数据来预判用户需求。ACC利用深度强化学习(DRL,deep reinforcement learning)模块优化缓存替换策略,在用户上下文、文档相似度与缓存未命中带来的开销之间取得平衡。实验结果表明,ACC仅经过11个训练回合就将缓存命中率提升至80%以上,性能优于FIFO、LRU和仅语义缓存方法,同时将检索延迟降低最多40%。尤其值得注意的是,ACC还将本地缓存开销(即缓存未命中时更新缓存的成本)降低了多达55%,为资源受限的边缘环境中可扩展、低延迟的LLM服务提供了支撑。

英文摘要:

Mobile edge Large Language Model (LLM) deployments face inherent constraints, such as limited computational resources and network bandwidth. Although Retrieval-Augmented Generation (RAG) mitigates some challenges by integrating external knowledge bases, inefficient cache management can still result in high retrieval latency and frequent cache updates. To address these issues, we propose an Adaptive Contextual Caching (ACC) framework that anticipates user needs by proactively caching semantically relevant data for mobile-edge LLMs. ACC utilizes a deep reinforcement learning (DRL) module to refine cache replacement policies, balancing user context, document similarity, and the overhead associated with cache misses. Experimental results demonstrate that ACC increases cache hit rates to over 80\% after only 11 training episodes, outperforming FIFO, LRU, and semantic-only caching while reducing retrieval latency by up to 40\%. In particular, ACC also reduces local caching overhead (i.e., the cost of updating the cache when a miss occurs) by as much as 55\%, enabling scalable, low-latency LLM services in resource-constrained edge environments.

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

↑