arXiv:2409.18566cs.LG2024-09中稿 · publication in the…被引 4

训练时智能分配神经网络层,让多加速器芯片跑得更快更省电。

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

  • 在训练阶段动态拆分网络层,跨多个加速器并行计算
  • 在相同精度下延迟降低8倍,能效提升50.8倍,精度损失小于0.3%
  • 适合需要低延迟/低功耗的边缘设备部署者

边缘端对低延迟、低功耗运行深度神经网络的需求,推动了集成多种专用计算单元(如加速器)的异构系统芯片(SoC)发展。将网络计算任务分配到不同计算单元常面临精度与效率的权衡,因各单元支持的操作(如标准卷积与深度可分离卷积)或数据表示方式(如量化程度)存在差异。本文提出硬件感知工具ODiMO,可在训练阶段高效探索神经网络在多计算单元间的细粒度映射策略。通过战略性地拆分网络层并在多个可用计算单元上并行执行,旨在平衡总推理能耗或延迟与精度,后者受硬件特性影响。我们在CIFAR-10、CIFAR-100和ImageNet上测试,针对DIANA与Darkside两款开源异构SoC,获得丰富的精度-能耗或延迟帕累托最优解。实验表明,在保持精度不变条件下,相比人工启发式映射,ODiMO在Darkside SoC上将延迟降低最高达8倍;在能效目标下,同样在Darkside上生成的映射最多提升50.8倍能效,精度下降不足0.3%。

原文摘要 · Abstract (English)

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%).

神经网络优化边缘计算异构加速训练优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。