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

在移动边缘服务长上下文大语言模型:基于测试时强化学习的模型缓存与推理卸载

Serving Long-Context LLMs at the Mobile Edge: Test-Time Reinforcement Learning-based Model Caching and Inference Offloading

Minrui Xu, Dusit Niyato, Christopher G. Brinton

AI总结:

针对移动边缘长上下文LLM服务难题,提出基于测试时深度强化学习的模型缓存与推理卸载框架及双重荷兰拍卖机制,实现成本降低至少30%。

摘要:

大语言模型(LLMs)能够对未见过的任务进行零样本学习,并能对复杂推理任务进行少样本学习。然而,资源受限的移动边缘网络在多轮交互中难以支持面向LLM智能体的长上下文LLM服务。与边缘计算中的无状态计算卸载和静态服务卸载不同,优化边缘服务器上的LLM服务具有挑战性,因为LLM会持续从上下文中学习,这带来了准确性、延迟和资源消耗的动态变化。在本文中,我们提出了一个联合模型缓存与推理卸载框架,利用测试时深度强化学习(T2DRL)来优化长上下文LLM服务的部署与执行策略。在该框架中,我们分析了性能收敛性,并设计了一个考虑LLM上下文窗口利用率的优化问题。此外,T2DRL算法能够在训练阶段和测试阶段进行学习,以主动管理缓存模型和服务请求,并在执行过程中适应上下文变化和使用模式。为了进一步提高资源分配效率,我们提出了一种双重荷兰拍卖(DDA)机制,该机制在最大化社会福利的同时动态匹配供需。最后,实验结果表明,与基线相比,T2DRL算法能够将系统成本降低至少30%,同时保证LLM智能体在真实世界感知和推理任务中的性能。

英文摘要:

Large Language Models (LLMs) can perform zero-shot learning on unseen tasks and few-shot learning on complex reasoning tasks. However, resource-limited mobile edge networks struggle to support long-context LLM serving for LLM agents during multi-round interactions with users. Unlike stateless computation offloading and static service offloading in edge computing, optimizing LLM serving at edge servers is challenging because LLMs continuously learn from context which raises accuracy, latency, and resource consumption dynamics. In this paper, we propose a joint model caching and inference offloading framework that utilizes test-time deep reinforcement learning (T2DRL) to optimize deployment and execution strategies for long-context LLM serving. In this framework, we analyze the performance convergence and design an optimization problem considering the utilization of context windows in LLMs. Furthermore, the T2DRL algorithm can learn in both the training phase and the testing phase to proactively manage cached models and service requests and adapt to context changes and usage patterns during execution. To further enhance resource allocation efficiency, we propose a double Dutch auction (DDA) mechanism, which dynamically matches supply and demand while maximizing social welfare. Finally, experimental results demonstrate that the T2DRL algorithm can reduce system costs by at least 30% compared to baselines while guaranteeing the performance of LLM agents in real-world perception and reasoning tasks.

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

↑