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

在训练阶段优化多加速器片上系统(SoC)上的DNN推理

Optimizing DNN Inference on Multi-Accelerator SoCs at Training-time

Politecnico di Torino(都灵理工大学)

Matteo Risso, Alessio Burrello, Daniele Jahier Pagliari

AI总结:

针对多加速器异构SoC上DNN映射的精度-效率权衡问题,提出训练阶段的硬件感知工具ODiMO,通过细粒度分层拆分并行映射实现帕累托最优,大幅提升推理能效与延迟表现。

摘要:

在边缘端以低延迟、低功耗运行深度神经网络(DNN)的需求,推动了集成多个专用计算单元(CU,如各类加速器)的先进异构片上系统(SoC)的发展。由于不同计算单元支持的操作(如标准卷积与深度可分离卷积)或数据表示(如量化程度高低)存在差异,将DNN计算卸载到可用集合中的某一特定CU,通常会面临精度与效率的权衡问题。如何将DNN映射到这类多CU系统上,在兼顾精度的同时最大化利用并行化潜力,是一个具有挑战性且尚未解决的问题。为解决这一问题,我们提出了ODiMO——一种硬件感知工具,可在训练阶段高效探索DNN在各类片上CU之间的细粒度映射方案。ODiMO策略性地拆分神经网络的单个层,并在多个可用CU上并行执行这些层,旨在平衡总推理能耗或延迟与最终精度(精度受不同硬件单元独特特性的影响)。我们在CIFAR-10、CIFAR-100和ImageNet数据集上测试了所提方法,目标平台为两款开源异构SoC,即DIANA和Darkside。我们获得了精度与能耗、精度与延迟空间内的大量帕累托最优网络集合。实验结果表明,与手动启发式映射相比,在等精度条件下,ODiMO可将Darkside SoC上运行的DNN延迟降低最高8倍。在以能耗为优化目标时,在同一款SoC上,ODiMO生成的映射方案能效最高提升50.8倍,且精度下降极小(<0.3%)。

英文摘要:

The demand for executing Deep Neural Networks (DNNs) with low latency and minimal power consumption at the edge has led to the development of advanced heterogeneous Systems-on-Chips (SoCs) that incorporate multiple specialized computing units (CUs), such as accelerators. Offloading DNN computations to a specific CU from the available set often exposes accuracy vs efficiency trade-offs, due to differences in their supported operations (e.g., standard vs. depthwise convolution) or data representations (e.g., more/less aggressively quantized). A challenging yet unresolved issue is how to map a DNN onto these multi-CU systems to maximally exploit the parallelization possibilities while taking accuracy into account. To address this problem, we present ODiMO, a hardware-aware tool that efficiently explores fine-grain mapping of DNNs among various on-chip CUs, during the training phase. ODiMO strategically splits individual layers of the neural network and executes them in parallel on the multiple available CUs, aiming to balance the total inference energy consumption or latency with the resulting accuracy, impacted by the unique features of the different hardware units. We test our approach on CIFAR-10, CIFAR-100, and ImageNet, targeting two open-source heterogeneous SoCs, i.e., DIANA and Darkside. We obtain a rich collection of Pareto-optimal networks in the accuracy vs. energy or latency space. We show that ODiMO reduces the latency of a DNN executed on the Darkside SoC by up to 8x at iso-accuracy, compared to manual heuristic mappings. When targeting energy, on the same SoC, ODiMO produced up to 50.8x more efficient mappings, with minimal accuracy drop (< 0.3%).

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

↑