HALO:语义感知的分布式LLM推理在失真边缘网络中
HALO: Semantic-Aware Distributed LLM Inference in Lossy Edge Network
AI总结:
HALO通过语义感知预测和负载平衡调度,提升失真边缘网络中LLM推理的效率与性能。
摘要:
在边缘部署大型语言模型(LLMs)的推理可以促进提示服务的响应速度,同时保护用户隐私。然而,单个边缘节点的资源限制对部署构成了重大挑战。分布式推理的出现旨在聚合和利用多个设备的计算资源。然而,现有方法通常需要严格的同步,这往往由于网络条件的不可靠而无法实现。在本文中,我们提出了HALO,一种新的框架,可以提升在失真边缘网络中的分布式LLM推理。核心思想是通过战略性地将不重要的神经元组分配给不稳定设备,实现一种放松但有效的同步,从而避免因延迟包而产生的过度等待时间。HALO引入了三个关键机制:(1)一个语义感知的预测器,用于在激活之前评估神经元组的重要性。(2)在模型推理过程中并行执行神经元组加载的方案。(3)一个负载平衡调度器,能够高效地协调具有异构资源的多个设备。实验结果表明,Raspberry Pi集群的实验结果表明,在不可靠的网络条件下,HALO在LLaMA系列LLMs上实现了3.41倍的端到端加速。它在性能上与最佳条件相媲美,并在各种场景中显著优于最先进的方法。
英文摘要:
The deployment of large language models' (LLMs) inference at the edge can facilitate prompt service responsiveness while protecting user privacy. However, it is critically challenged by the resource constraints of a single edge node. Distributed inference has emerged to aggregate and leverage computational resources across multiple devices. Yet, existing methods typically require strict synchronization, which is often infeasible due to the unreliable network conditions. In this paper, we propose HALO, a novel framework that can boost the distributed LLM inference in lossy edge network. The core idea is to enable a relaxed yet effective synchronization by strategically allocating less critical neuron groups to unstable devices, thus avoiding the excessive waiting time incurred by delayed packets. HALO introduces three key mechanisms: (1) a semantic-aware predictor to assess the significance of neuron groups prior to activation. (2) a parallel execution scheme of neuron group loading during the model inference. (3) a load-balancing scheduler that efficiently orchestrates multiple devices with heterogeneous resources. Experimental results from a Raspberry Pi cluster demonstrate that HALO achieves a 3.41x end-to-end speedup for LLaMA-series LLMs under unreliable network conditions. It maintains performance comparable to optimal conditions and significantly outperforms the state-of-the-art in various scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。