arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.13944cs.DCeess.SP
收藏

PowerTrain:用于优化加速边缘设备上DNN训练的快速、可泛化的时间与功耗预测模型

PowerTrain: Fast, Generalizable Time and Power Prediction Models to Optimize DNN Training on Accelerated Edges

Prashanthi S. K., Saisamarth Taluri, Beautlin S, Lakshya Karwa, Yogesh Simmhan

AI总结:

针对加速边缘设备上DNN训练,提出PowerTrain迁移学习方法,通过少量额外剖析即可准确预测不同功耗模式下的训练时间和功耗,并快速选择最优功耗模式,显著优于基线。

摘要:

加速边缘设备(如Nvidia的Jetson,拥有1000多个CUDA核心)越来越多地用于DNN训练和联邦学习,而不仅仅是推理工作负载。这些紧凑型设备的一个独特之处在于它们可以对CPU、GPU、内存频率以及活动CPU核心进行细粒度控制,这可以在受限环境中限制其功耗范围,同时降低计算性能。鉴于这个超过10k+的参数空间,为动态到达的训练工作负载选择功耗模式以利用功耗-性能权衡,需要对每个新工作负载进行昂贵的性能剖析,或者采用临时(ad hoc)方式。我们提出PowerTrain,一种迁移学习方法,用于准确预测在给定DNN工作负载(模型+数据集)上使用任何指定功耗模式(CPU/GPU/内存频率、核心数)训练时所消耗的功耗和时间。它需要在单个Jetson设备(Orin AGX)上对参考DNN工作负载进行一次性离线剖析,覆盖数千种功耗模式,以构建基于神经网络(NN)的时间和功耗预测模型。随后,这些NN模型被迁移(重新训练)到新的DNN工作负载,甚至不同的Jetson设备,只需额外剖析最少50种功耗模式即可进行准确的时间和功耗预测。然后利用这些预测快速构建帕累托前沿,并为新工作负载选择最佳功耗模式。PowerTrain的预测对新工作负载具有鲁棒性,在从Orin AGX上的ResNet参考工作负载迁移后,对六个新训练工作负载在多达4400种功耗模式下,功耗的MAPE低于6%,时间的MAPE低于15%。当迁移到两个全新的Jetson设备时,它也表现出韧性,预测误差分别低于14.5%和11%。这些结果在时间上优于基线预测超过10%,在功耗上优于基线优化最多45%和88%。

英文摘要:

Accelerated edge devices, like Nvidia's Jetson with 1000+ CUDA cores, are increasingly used for DNN training and federated learning, rather than just for inferencing workloads. A unique feature of these compact devices is their fine-grained control over CPU, GPU, memory frequencies, and active CPU cores, which can limit their power envelope in a constrained setting while throttling the compute performance. Given this vast 10k+ parameter space, selecting a power mode for dynamically arriving training workloads to exploit power-performance trade-offs requires costly profiling for each new workload, or is done \textit{ad hoc}. We propose \textit{PowerTrain}, a transfer-learning approach to accurately predict the power and time consumed when training a given DNN workload (model + dataset) using any specified power mode (CPU/GPU/memory frequencies, core-count). It requires a one-time offline profiling of $1000$s of power modes for a reference DNN workload on a single Jetson device (Orin AGX) to build Neural Network (NN) based prediction models for time and power. These NN models are subsequently transferred (retrained) for a new DNN workload, or even a different Jetson device, with minimal additional profiling of just $50$ power modes to make accurate time and power predictions. These are then used to rapidly construct the Pareto front and select the optimal power mode for the new workload. PowerTrain's predictions are robust to new workloads, exhibiting a low MAPE of $<6\%$ for power and $<15\%$ for time on six new training workloads for up to $4400$ power modes, when transferred from a ResNet reference workload on Orin AGX. It is also resilient when transferred to two entirely new Jetson devices with prediction errors of $<14.5\%$ and $<11\%$. These outperform baseline predictions by more than $10\%$ and baseline optimizations by up to $45\%$ on time and $88\%$ on power.

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

↑