arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.02829cs.DCcs.LG
收藏

CE-CoLLM:通过云边协同实现高效且自适应的大语言模型

CE-CoLLM: Efficient and Adaptive Large Language Models Through Cloud-Edge Collaboration

Florida International University(佛罗里达国际大学)

Hongpeng Jin, Yanzhao Wu

AI总结:

本文提出 CE-CoLLM 云边协同框架,通过延迟感知早退、云上下文管理和双自适应推理模式降低通信与云端负载,在不损失精度的前提下提升边缘 LLM 推理效率。

摘要:

大语言模型(LLM)展现出卓越的类人预测能力。然而,在边缘部署 LLM 以提供高效、自适应的推理服务仍具挑战。本文提出一种新颖的 LLM 云边协同框架 CE-CoLLM,以应对这些挑战。首先,我们将云端与边缘之间 LLM 上下文数据的传输识别为关键性能瓶颈:它会产生大量通信开销,主导整体推理延迟,并使朴素的 LLM 云边协同变得低效。其次,我们在 CE-CoLLM 中引入一组新技术,包括延迟感知早退机制和高效云上下文管理,共同降低通信开销并保持 LLM 推理精度。第三,我们设计了两种自适应推理模式以适应多样的边缘环境:(1)低延迟独立边缘推理模式,即使在网络不稳定条件下也能实现可靠的边缘侧独立 LLM 推理;(2)高精度云边协同推理模式,自适应利用云资源提升预测精度。在多个基准数据集上的大量实验表明,与传统基于云的 LLM 部署相比,CE-CoLLM 将整体推理时间最多降低 13.81%,并将超过 84.53% 的计算工作负载从云端卸载到边缘,且不牺牲预测精度。代码已发布在 GitHub:https://github.com/mlsysx/CE-CoLLM。

英文摘要:

Large Language Models (LLMs) exhibit remarkable human-like predictive capabilities. However, it is challenging to deploy LLMs to provide efficient and adaptive inference services at the edge. This paper proposes a novel Cloud-Edge Collaboration framework for LLMs (CE-CoLLM) to tackle these challenges. First, we identify the transmission of LLM contextual data between the cloud and edge as a key performance bottleneck, which introduces substantial communication overhead that dominates overall inference latency and makes naïve cloud-edge collaboration for LLMs inefficient. Second, we introduce a suite of novel techniques, including a latency-aware early exit mechanism and efficient cloud context management, into CE-CoLLM, which collectively reduce communication overhead and preserve LLM inference accuracy. Third, we design two adaptive inference modes to accommodate diverse edge environments: (1) a low-latency standalone edge inference mode that enables reliable edge-side independent LLM inference even under unstable network conditions, and (2) a high-accuracy cloud-edge collaborative inference mode that adaptively leverages cloud resources to enhance prediction accuracy. Extensive experiments on multiple benchmark datasets demonstrate that CE-CoLLM reduces overall inference time by up to 13.81% and offloads over 84.53% of the computational workload from the cloud to the edge, compared to conventional cloud-based LLM deployment, without sacrificing prediction accuracy. The code is provided on GitHub at https://github.com/mlsysx/CE-CoLLM.

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

↑