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

使用图神经网络对深度神经网络的性能进行建模

Using Graph Neural Networks to model the performance of Deep Neural Networks

University of Texas, Austin(德克萨斯大学奥斯汀分校);Facebook, Inc.(Facebook公司)

Shikhar Singh, Benoit Steiner, James Hegarty, Hugh Leather

摘要:

随着机器学习软件的前所未有的激增,为这样的应用生成高效代码的需求不断增长。最先进的深度学习编译器,如TVM和Halide,包含了一个基于学习的性能模型,用于搜索给定深度学习算法的有效实现空间。对于给定的应用程序,该模型生成性能度量,例如运行时间,而无需在硬件上执行应用程序。这样的模型通过避免在硬件上对大量的候选实现(称为调度)进行基准测试来加快编译过程。现有的性能模型采用前馈网络、递归网络或决策树集成来估计神经网络的不同实现的性能。图形提供了一种自然和直观的方式来建模深度学习网络,其中每个节点代表一个计算阶段或操作。在性能模型中描述这些工作负载的固有图结构可以更好地表示和学习阶段间交互。性能模型的准确性直接影响搜索策略的效率,使其成为这类深度学习编译器的关键组件。在这项工作中,我们开发了一种新的性能模型,采用图形表示。在我们的模型中,每个计算阶段都代表一个节点,其特征在于捕获该阶段执行的操作。节点之间的交互是使用图卷积实现的。实验评估显示,与Halide和TVM模型相比,预测误差分别减少了7:75倍和12倍。

英文摘要:

With the unprecedented proliferation of machine learning software, there is an ever-increasing need to generate efficient code for such applications. State-of-the-art deep-learning compilers like TVM and Halide incorporate a learning-based performance model to search the space of valid implementations of a given deep learning algorithm. For a given application, the model generates a performance metric such as the run time without executing the application on hardware. Such models speed up the compilation process by obviating the need to benchmark an enormous number of candidate implementations, referred to as schedules, on hardware. Existing performance models employ feed-forward networks, recurrent networks, or decision tree ensembles to estimate the performance of different implementations of a neural network. Graphs present a natural and intuitive way to model deep-learning networks where each node represents a computational stage or operation. Incorporating the inherent graph structure of these workloads in the performance model can enable a better representation and learning of inter-stage interactions. The accuracy of a performance model has direct implications on the efficiency of the search strategy, making it a crucial component of this class of deep-learning compilers. In this work, we develop a novel performance model that adopts a graph representation. In our model, each stage of computation represents a node characterized by features that capture the operations performed by the stage. The interaction between nodes is achieved using graph convolutions. Experimental evaluation shows a 7:75x and 12x reduction in prediction error compared to the Halide and TVM models, respectively.

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

↑