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

DNNAbacus:深度神经网络的精确计算成本预测

DNNAbacus: Toward Accurate Computational Cost Prediction for Deep Neural Networks

Beijing Institute of Technology(北京理工大学);Alibaba-inc(阿里巴巴集团)

Lu Bai, Weixing Ji, Qinyuan Li, Xilai Yao, Wei Xin, Wanyi Zhu

摘要:

深度学习正在吸引各个领域的兴趣,包括自然语言处理、语音识别和计算机视觉。然而,模型训练是耗时的,并且需要巨大的计算资源。现有的深度神经网络性能预测工作主要集中在少数几个模型的训练时间预测上,依赖于解析模型,相对误差较大。%优化任务调度和减少数据中心的作业失败对于提高资源利用率和减少碳排放至关重要。本文调查了29个经典深度神经网络的计算资源需求,并建立了预测计算成本的精确模型。我们首先分析了典型网络的分析结果,并证明了具有不同输入和超参数的模型的计算资源需求并不明显和直观。然后,我们提出了一个轻量级的预测方法DNNAbacus与一个新的网络结构矩阵的网络表示。DNNAbacus可以准确地预测PyTorch和TensorFlow模型的内存和时间成本,这也可以推广到不同的硬件架构,并且可以为看不见的网络提供zero-shot能力。我们的实验结果表明,29个经典模型的平均相对误差(MRE)是0.9%的时间和2.8%的内存,这是远远低于国家的最先进的作品。

英文摘要:

Deep learning is attracting interest across a variety of domains, including natural language processing, speech recognition, and computer vision. However, model training is time-consuming and requires huge computational resources. Existing works on the performance prediction of deep neural networks, which mostly focus on the training time prediction of a few models, rely on analytical models and result in high relative errors. %Optimizing task scheduling and reducing job failures in data centers are essential to improve resource utilization and reduce carbon emissions. This paper investigates the computational resource demands of 29 classical deep neural networks and builds accurate models for predicting computational costs. We first analyze the profiling results of typical networks and demonstrate that the computational resource demands of models with different inputs and hyperparameters are not obvious and intuitive. We then propose a lightweight prediction approach DNNAbacus with a novel network structural matrix for network representation. DNNAbacus can accurately predict both memory and time cost for PyTorch and TensorFlow models, which is also generalized to different hardware architectures and can have zero-shot capability for unseen networks. Our experimental results show that the mean relative error (MRE) is 0.9% with respect to time and 2.8% with respect to memory for 29 classic models, which is much lower than the state-of-the-art works.

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

↑