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

面向嵌入式边缘部署的剖析驱动自适应分布式Transformer推理

Profiling-Driven Adaptive Distributed Transformer Inference on Embedded Edge Deployment

Aarhus University(奥胡斯大学);Tampere University(塔尔基耶大学)

Muhammad Azlan Qazi, Alexandros Iosifidis, Qi Zhang

AI总结:

通过结合分段均值压缩和轻量级离线剖析,自适应地在运行时选择本地或分布式执行,解决了嵌入式设备上分布式Transformer推理中CPU-GPU通信瓶颈问题,相比全张量交换降低了65%-77%延迟和34%-52%能耗。

摘要:

将Transformer推理分布在嵌入式边缘设备上可以缓解单个内存和计算约束,但在实际硬件上的实际益处仍不明确:先前的工作主要依赖于忽略硬件特定通信开销的模拟。我们在通过WiFi连接的NVIDIA Jetson Orin Nano设备上进行了硬件原型研究。我们的关键发现是,主要瓶颈不仅是网络带宽,还有通信期间的CPU-GPU暂存。由于Jetson的集成GPU架构缺乏NCCL所需的PCIe/NVLink路径,所有设备间数据通信应通过GLOO路由并在CPU内存中暂存;这种开销随通信数据量扩展,使得对于中等规模模型(如ViT),全张量交换比单设备推理更慢。因此,我们通过结合分段均值压缩与轻量级离线剖析来评估Prism,以在运行时自适应地选择本地或分布式执行。实验表明,相对于静态分布式执行设置中的全张量交换,该策略将延迟降低了65%-77%,能耗降低了34%-52%,证明了剖析驱动自适应对于嵌入式硬件上的实际分布式Transformer推理至关重要。

英文摘要:

Distributing Transformer inference across embedded edge devices can alleviate individual memory and compute constraints, yet practical benefits on real hardware remain unclear: prior work relies largely on simulations that overlook hardware-specific communication overheads. We present a hardware prototype study on NVIDIA Jetson Orin Nano devices connected over WiFi. Our key finding is that the dominant bottleneck is not just network bandwidth but also the CPU-GPU staging during communication. Because Jetson's integrated GPU architecture lacks the PCIe/NVLink pathway that NCCL requires, all inter-device data communication should be routed through GLOO and staged in CPU memory; an overhead that scales with communication data volume and makes full-tensor exchange slower than single-device inference across the batch sizes for medium sized models such as ViT. We therefore evaluate Prism by combining Segment Means compression with lightweight offline profiling to adaptively select between local and distributed execution at runtime. Experiments show that this strategy reduces latency by 65%-77% and energy consumption by 34%-52% relative to full-tensor exchange in static distributed execution setup, demonstrating that profiling-driven adaptation is essential for practical distributed Transformer inference on embedded hardware.

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

↑