针对GPU上DNN推理的能耗与延迟,提出精准建模方法。
DVFS-Aware DNN Inference on GPUs: Latency Modeling and Performance Analysis
- 基于实测数据构建GPU专用的DVFS推理时延模型
- 本地推理可降低66%时延、69%能耗,协同推理更优
- 适合优化GPU部署的AI系统设计者与能效研究人员
深度神经网络(DNN)的快速发展伴随着高昂的计算成本。为应对这一挑战,动态电压频率调节(DVFS)成为平衡DNN推理延迟与能耗的有前景技术,通过调整处理器工作频率实现。然而,现有大多数推理时延模型基于CPU-DVFS技术,直接应用于GPU上的DNN推理会导致延迟与能耗优化出现显著误差。本文提出一种面向DVFS的GPU DNN推理时延模型,基于多设备实测数据建立推理时延公式,并分析拟合参数影响;通过将DNN划分为多个模块并获取实际推理时间验证模型有效性。在两个具体场景下,与CPU-DVFS模型对比表明:采用本模型进行本地推理可使推理时延减少不低于66%,能耗降低不低于69%;协同推理中,该模型可优化任务划分策略,进一步降低能耗。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。