arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.06295cs.LGcs.NI
收藏

DVFS感知的GPU上的DNN推理:延迟建模与性能分析

DVFS-Aware DNN Inference on GPUs: Latency Modeling and Performance Analysis

Beijing National Research Center for Information Science and Technology(北京信息科学国家研究中心);Department of Electronic Engineering, Tsinghua University(清华大学电子工程系)

Yunchu Han, Zhaojun Nan, Sheng Zhou, Zhisheng Niu

AI总结:

针对GPU上DNN推理,提出DVFS感知延迟模型,精确刻画推理时间,较CPU-DVFS模型显著降低推理延迟与能耗。

摘要:

深度神经网络(DNN)的快速发展不可避免地伴随着高计算成本的问题。为了应对这一挑战,动态电压频率调整(DVFS)作为一种有前景的技术正在兴起,通过调整处理器的计算频率来平衡DNN推理的延迟和能耗。然而,现有的大多数DNN推理时间模型基于CPU-DVFS技术,直接将CPU-DVFS模型应用于GPU上的DNN推理会导致在优化延迟和能耗时产生显著误差。在本文中,我们提出了一种DVFS感知的延迟模型,以精确刻画GPU上的DNN推理时间。我们首先基于不同设备的大量实验结果来公式化DNN推理时间,并分析拟合参数的影响。然后通过将DNN划分为多个块并获得实际推理时间,进一步验证了所提出的模型。最后,我们在两个具体案例中将我们提出的模型与CPU-DVFS模型进行比较。评估结果表明,使用我们提出的模型进行本地推理优化,推理时间和能耗分别减少了不低于66%和69%。此外,与CPU-DVFS模型相比,使用我们提出的模型进行协作推理可以改进分区策略并降低能耗。

英文摘要:

The rapid development of deep neural networks (DNNs) is inherently accompanied by the problem of high computational costs. To tackle this challenge, dynamic voltage frequency scaling (DVFS) is emerging as a promising technology for balancing the latency and energy consumption of DNN inference by adjusting the computing frequency of processors. However, most existing models of DNN inference time are based on the CPU-DVFS technique, and directly applying the CPU-DVFS model to DNN inference on GPUs will lead to significant errors in optimizing latency and energy consumption. In this paper, we propose a DVFS-aware latency model to precisely characterize DNN inference time on GPUs. We first formulate the DNN inference time based on extensive experiment results for different devices and analyze the impact of fitting parameters. Then by dividing DNNs into multiple blocks and obtaining the actual inference time, the proposed model is further verified. Finally, we compare our proposed model with the CPU-DVFS model in two specific cases. Evaluation results demonstrate that local inference optimization with our proposed model achieves a reduction of no less than 66% and 69% in inference time and energy consumption respectively. In addition, cooperative inference with our proposed model can improve the partition policy and reduce the energy consumption compared to the CPU-DVFS model.

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

↑