arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14882cs.DCeess.SP
收藏

无线网络下通信高效的分布式端侧大语言模型推理

Communication-Efficient Distributed On-Device LLM Inference Over Wireless Networks

Kai Zhang, Hengtao He, Shenghui Song, Jun Zhang, Khaled B. Letaief

AI总结:

针对边缘设备部署大语言模型的资源受限问题,提出结合张量并行与空中计算的分布式端侧推理框架,通过联合优化模型分配与收发器降低通信开销,实现最高5倍推理加速与精度提升。

摘要:

大语言模型(LLM)已在各类应用领域展现出显著成效,但其庞大的规模与计算需求给资源受限的边缘设备部署带来了严峻挑战。为解决这一问题,我们提出了一种新型分布式端侧LLM推理框架,该框架利用张量并行技术,将单个LLM的神经网络张量(如权重矩阵)划分至多台边缘设备,以实现协同推理。张量并行的核心挑战在于需要频繁执行全归约操作以聚合各参与设备的中间层输出,这会产生巨大的通信开销。为缓解这一瓶颈,我们提出了一种空中计算(AirComp)方法,利用无线多址信道的模拟叠加特性快速完成全归约步骤。为充分利用边缘设备的异构计算能力并减轻通信失真,我们研究了模型分配与收发器优化的联合问题,以最小化平均传输误差。由此产生的混合时间尺度随机非凸优化问题难以直接求解,我们提出了一种高效的两阶段算法进行求解。此外,我们证明了所提算法几乎必然收敛到原问题的驻点。综合仿真结果表明,所提框架优于现有基准方案,可实现最高5倍的推理速度提升,并提高推理精度。

英文摘要:

Large language models (LLMs) have demonstrated remarkable success across various application domains, but their enormous sizes and computational demands pose significant challenges for deployment on resource-constrained edge devices. To address this issue, we propose a novel distributed on-device LLM inference framework that leverages tensor parallelism to partition the neural network tensors (e.g., weight matrices) of one LLM across multiple edge devices for collaborative inference. A key challenge in tensor parallelism is the frequent all-reduce operations for aggregating intermediate layer outputs across participating devices, which incurs significant communication overhead. To alleviate this bottleneck, we propose an over-the-air computation (AirComp) approach that harnesses the analog superposition property of wireless multiple-access channels to perform fast all-reduce steps. To utilize the heterogeneous computational capabilities of edge devices and mitigate communication distortions, we investigate a joint model assignment and transceiver optimization problem to minimize the average transmission error. The resulting mixed-timescale stochastic non-convex optimization problem is intractable, and we propose an efficient two-stage algorithm to solve it. Moreover, we prove that the proposed algorithm converges almost surely to a stationary point of the original problem. Comprehensive simulation results will show that the proposed framework outperforms existing benchmark schemes, achieving up to 5x inference speed acceleration and improving inference accuracy.

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

↑