Skip to main content
QUICK REVIEW

[论文解读] PerLLM: Personalized Inference Scheduling with Edge-Cloud Collaboration for Diverse LLM Services

Zheming Yang, Yuanhao Yang|arXiv (Cornell University)|May 23, 2024
Privacy-Preserving Technologies in DataComputer Science被引用 6
一句话总结

PerLLM 提出一种个性化的边缘云推理调度框架,使用约束满足上置信界 (CS-UCB) 方法,在动态资源条件下优化 LLM 服务吞吐量并最小化能耗。

ABSTRACT

With the rapid growth in the number of large language model (LLM) users, it is difficult for bandwidth-constrained cloud servers to simultaneously process massive LLM services in real-time. Recently, edge-cloud infrastructures have been used to improve the processing efficiency of large-scale LLM services. However, the diversity of task requirements and the dynamics of resources pose great challenges to inference scheduling, leading to the wastage of many resources. In this paper, we present PerLLM, a personalized inference scheduling framework with edge-cloud collaboration designed for diverse LLM services. For the complexity of multiple constraints and the decision-making process of edge-cloud collaboration, we integrate the upper confidence bound algorithm based on the constraint satisfaction mechanism in PerLLM. For diverse LLM services, PerLLM can optimize service scheduling and resource allocation solutions within the edge-cloud infrastructure to meet processing time requirements while minimizing energy costs. Experimental results from different model deployments show that PerLLM can effectively meet the processing time requirements of personalized services. Compared to other methods, PerLLM achieves 2.2x, 2.1x, and 1.6x throughput and reduces the energy cost by more than 50%.

研究动机与目标

  • 在带宽受限的云服务器上推动高效的实时 LLM 推理。
  • 利用边缘云协作,在快速响应和推理质量之间实现平衡,适用于多样化的 LLM 任务。
  • 开发一个调度与资源分配框架,使之适应动态资源和服务需求。
  • 将问题形式化为带约束满足的组合多臂赌博机(CMAB)。
  • 提供一种学习型、约束感知的调度算法及理论分析。

提出的方法

  • 将问题表述为一个组合多臂赌博机(CMAB),用于将多项服务分配给服务器(边缘或云端)。
  • 引入约束满足机制,将处理时间、带宽和计算能力约束编码到优化中。
  • 定义一个 CS-UCB 算法,该算法筛选可行动作并选择具有最高上置信界(UCB)值的动作,在探索与利用之间取得平衡。
  • 纳入一个奖励函数,通过罚项对约束违例进行惩罚,并考虑能耗成本(传输、推理、待机)。
  • 提供在约束违例和动态环境下 CS-UCB 的理论性后悔界和复杂度分析。

实验结果

研究问题

  • RQ1如何在动态资源条件下优化边缘云协作,以满足多样化的 LLM 服务需求?
  • RQ2一个具约束感知的 CMAB(CS-UCB)框架是否能够高效调度服务并分配资源,以在最大化吞吐量的同时最小化能耗?
  • RQ3在这种带约束的 CMAB 设置下,CS-UCB 的理论保证(后悔界)是什么?
  • RQ4在不同带宽条件下,与基线相比,PerLLM 在处理时间满意度、吞吐量和能源成本方面的表现如何?

主要发现

  • PerLLM 在跨模型部署和动态带宽条件下,达到处理时间要求的成功率超过 97%。
  • PerLLM 的吞吐量比基线(FineInfer、AGOD、RewardlessGuidance)高出 1.6×–2.2×。
  • 与基线相比,PerLLM 将能源成本降低超过 50%。
  • 实验结果通过动态分配资源以满足服务需求,显示出更高的处理效率。
  • CS-UCB 方法在尊重约束的同时,能够有效学习并适应资源动态。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。