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

面向高性能ML推理的边缘AI平台基准测试

Benchmarking Edge AI Platforms for High-Performance ML Inference

University of Southern California(南加州大学)

Rakshith Jayanth, Neelesh Gupta, Viktor Prasanna

AI总结:

本研究对比了边缘AI平台上ML推理任务在CPU、GPU和NPU间的性能差异,发现异构计算能战略性地利用不同计算单元的优势以提升实时推理效率。

摘要:

边缘计算因能降低通信延迟并实现实时处理而日益重要,正推动高性能、异构System-on-Chip解决方案的兴起。尽管当前方法通常涉及缩小现代硬件的规模,但神经网络工作负载在这些平台上的性能特征可能差异巨大,尤其是在并行处理方面,这是边缘部署的关键考量。为此,我们开展了一项综合研究,比较了各种线性代数和神经网络推理任务在仅CPU、CPU/GPU和CPU/NPU集成解决方案上的延迟和吞吐量。我们发现,NPU在矩阵向量乘法(快58.6%)和部分神经网络任务(视频分类和大型语言模型快3.2倍)中表现出色。GPU在矩阵乘法(快22.6%)和LSTM网络(快2.7倍)上胜出,而CPU擅长点积等并行度较低的操作。基于NPU的推理在较低功耗下提供了延迟和吞吐量的平衡。基于GPU的推理虽然能耗较高,但在大维度和大批量大小下表现最佳。我们强调了异构计算解决方案在边缘AI中的潜力,其中可以战略性地利用多样化的计算单元来提升准确且实时的推理。

英文摘要:

Edge computing's growing prominence, due to its ability to reduce communication latency and enable real-time processing, is promoting the rise of high-performance, heterogeneous System-on-Chip solutions. While current approaches often involve scaling down modern hardware, the performance characteristics of neural network workloads on these platforms can vary significantly, especially when it comes to parallel processing, which is a critical consideration for edge deployments. To address this, we conduct a comprehensive study comparing the latency and throughput of various linear algebra and neural network inference tasks across CPU-only, CPU/GPU, and CPU/NPU integrated solutions. {We find that the Neural Processing Unit (NPU) excels in matrix-vector multiplication (58.6% faster) and some neural network tasks (3.2$\times$ faster for video classification and large language models). GPU outperforms in matrix multiplication (22.6% faster) and LSTM networks (2.7$\times$ faster) while CPU excels at less parallel operations like dot product. NPU-based inference offers a balance of latency and throughput at lower power consumption. GPU-based inference, though more energy-intensive, performs best with large dimensions and batch sizes. We highlight the potential of heterogeneous computing solutions for edge AI, where diverse compute units can be strategically leveraged to boost accurate and real-time inference.

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

↑