arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.06440cs.LGcs.DCstat.ML
收藏

通过单个构建块实现高性能深度学习

High-Performance Deep Learning via a Single Building Block

Intel Corporation(英特尔公司)

Evangelos Georganas, Kunal Banerjee, Dhiraj Kalamkar, Sasikanth Avancha, Anand Venkat, Michael Anderson, Greg Henry, Hans Pabst, Alexander Heinecke

摘要:

深度学习(DL)是机器学习最重要的分支之一。由于DL工作负载的巨大计算成本,工业界和学术界已经为每个工作负载/架构开发了具有高度专业化内核的DL库,从而产生了大量复杂的代码库,这些代码库致力于性能,但它们难以维护并且无法推广。在这项工作中,我们介绍了批量减少GEMM内核,并显示如何最流行的DL算法可以制定与此内核作为基本的构建块。因此,DL库开发退化为仅仅(可能是自动的)围绕这个唯一优化的内核进行循环调优。通过利用我们的新内核,我们实现了递归神经网络,卷积神经网络和多层感知器训练和推理原语在短短3 K行的高级代码。我们的原语在多节点CPU集群上的性能优于供应商优化的库,我们还提供针对GPU的概念验证CNN内核。最后,我们证明了张量编译器中的批处理减少GEMM内核产生高性能的CNN原语,进一步放大了我们的方法的可行性。

英文摘要:

Deep learning (DL) is one of the most prominent branches of machine learning. Due to the immense computational cost of DL workloads, industry and academia have developed DL libraries with highly-specialized kernels for each workload/architecture, leading to numerous, complex code-bases that strive for performance, yet they are hard to maintain and do not generalize. In this work, we introduce the batch-reduce GEMM kernel and show how the most popular DL algorithms can be formulated with this kernel as the basic building-block. Consequently, the DL library-development degenerates to mere (potentially automatic) tuning of loops around this sole optimized kernel. By exploiting our new kernel we implement Recurrent Neural Networks, Convolution Neural Networks and Multilayer Perceptron training and inference primitives in just 3K lines of high-level code. Our primitives outperform vendor-optimized libraries on multi-node CPU clusters, and we also provide proof-of-concept CNN kernels targeting GPUs. Finally, we demonstrate that the batch-reduce GEMM kernel within a tensor compiler yields high-performance CNN primitives, further amplifying the viability of our approach.

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

↑