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

面向大模型的任务卸载与早退协同推理

Collaborative Inference for Large Models with Task Offloading and Early Exiting

Zuan Xie, Yang Xu, Hongli Xu, Yunming Liao, Zhiyuan Yao

AI总结:

针对5G智慧城市边缘节点资源不足、异构动态环境影响大模型推理效率的问题,提出基于任务卸载与早退耦合关系及凸优化的分布式算法DTO-EE,实现延迟与精度的更好权衡。

摘要:

在5G智慧城市中,边缘计算被用于为终端设备提供就近计算服务,GPT、LLaMA等大规模模型可部署在网络边缘以提升服务质量。但受内存容量和计算能力限制,单个边缘节点难以运行这类大规模模型。为满足资源约束,可将大规模模型拆分为多个子模型,部署在多个边缘节点上,再将任务卸载到各边缘节点开展协同推理。此外,我们引入早退机制进一步加速推理,但异构系统和动态环境会显著影响推理效率。为应对这些挑战,我们从理论上分析了任务卸载策略与置信度阈值之间的耦合关系,并基于该耦合关系和凸优化提出了一种名为DTO-EE的分布式算法。DTO-EE可让每个边缘节点联合优化自身的卸载策略和置信度阈值,从而在响应延迟与推理精度之间实现良好权衡。实验结果表明,与基线方法相比,DTO-EE可将平均响应延迟降低21%-41%,并将推理精度提升1%-4%。

英文摘要:

In 5G smart cities, edge computing is employed to provide nearby computing services for end devices, and the large-scale models (e.g., GPT and LLaMA) can be deployed at the network edge to boost the service quality. However, due to the constraints of memory size and computing capacity, it is difficult to run these large-scale models on a single edge node. To meet the resource constraints, a large-scale model can be partitioned into multiple sub-models and deployed across multiple edge nodes. Then tasks are offloaded to the edge nodes for collaborative inference. Additionally, we incorporate the early exit mechanism to further accelerate inference. However, the heterogeneous system and dynamic environment will significantly affect the inference efficiency. To address these challenges, we theoretically analyze the coupled relationship between task offloading strategy and confidence thresholds, and develop a distributed algorithm, termed DTO-EE, based on the coupled relationship and convex optimization. DTO-EE enables each edge node to jointly optimize its offloading strategy and the confidence threshold, so as to achieve a promising trade-off between response delay and inference accuracy. The experimental results show that DTO-EE can reduce the average response delay by 21%-41% and improve the inference accuracy by 1%-4%, compared to the baselines.

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

↑