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

基于运行时的深度神经网络训练性能预测器

A Runtime-Based Computational Performance Predictor for Deep Neural Network Training

University of Toronto(多伦多大学);Vector Institute(向量研究所)

Geoffrey X. Yu, Yubo Gao, Pavel Golikov, Gennady Pekhimenko

摘要:

深度学习研究人员和从业者通常利用GPU来帮助更快地训练他们的深度神经网络(DNN)。然而,选择使用哪种GPU具有挑战性,因为(i)有许多选择,(ii)用户需要解决相互竞争的问题:最大限度地提高计算性能,同时最大限度地降低成本。在这项工作中,我们提出了一种新的实用技术,以帮助用户做出明智和具有成本效益的GPU选择:在用户已经拥有的GPU的帮助下进行性能预测。我们的技术利用了这样一个观察结果,即由于DNN训练由重复的计算步骤组成,因此预测单个迭代的执行时间通常足以表征整个训练过程的性能。我们通过使用(i)波缩放(一种基于GPU执行模型的技术)或(ii)预先训练的多层感知器,将训练迭代中每个操作的执行时间从一个GPU缩放到另一个GPU来进行预测。我们将我们的技术实现到一个名为Habitat的Python库中,并发现它在ResNet-50,Inception v3,Transformer,GNMT和DCGAN六种不同的GPU架构上进行了准确的迭代执行时间预测(平均误差为11.8%)。Habitat支持PyTorch,易于使用,并且是开源的。

英文摘要:

Deep learning researchers and practitioners usually leverage GPUs to help train their deep neural networks (DNNs) faster. However, choosing which GPU to use is challenging both because (i) there are many options, and (ii) users grapple with competing concerns: maximizing compute performance while minimizing costs. In this work, we present a new practical technique to help users make informed and cost-efficient GPU selections: make performance predictions with the help of a GPU that the user already has. Our technique exploits the observation that, because DNN training consists of repetitive compute steps, predicting the execution time of a single iteration is usually enough to characterize the performance of an entire training process. We make predictions by scaling the execution time of each operation in a training iteration from one GPU to another using either (i) wave scaling, a technique based on a GPU's execution model, or (ii) pre-trained multilayer perceptrons. We implement our technique into a Python library called Habitat and find that it makes accurate iteration execution time predictions (with an average error of 11.8%) on ResNet-50, Inception v3, the Transformer, GNMT, and DCGAN across six different GPU architectures. Habitat supports PyTorch, is easy to use, and is open source.

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

↑