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

从独特的候选者中学习以优化张量核上的降精度卷积程序

Learning from distinctive candidates to optimize reduced-precision convolution program on tensor cores

NOTA;Hanyang University(汉阳大学)

Junkyeong Choi, Hyucksung Kwon, Woongkyu Lee, Jungwook Choi, Jieun Lim

摘要:

卷积是深度神经网络的基本运算之一,需要进行矩阵计算。在图形处理单元(GPU)中,张量核心是一种专用的矩阵处理硬件,配备了降低精度的矩阵乘累加(MMA)指令,以提高吞吐量。然而,实现最佳性能是具有挑战性的,因为MMA指令的最佳调度针对不同的卷积大小而变化。特别是,降低精度的MMA需要许多元素分组为矩阵操作数,严重限制了数据的重用和强加包装和布局开销的时间表。本文提出了一种卷积运算的降精度MMA自动调度方法。在这种方法中,我们设计了一个搜索空间,探索线程瓦片和经线大小,以增加数据重用,尽管降低精度MMA的大矩阵操作数。搜索空间还包括寄存器级打包和布局优化选项,以减少处理精度降低的数据的开销。最后,我们提出了一个搜索算法,通过学习不同的候选人找到最佳的时间表。这种降低精度的MMA优化方法在流行的神经网络的卷积运算上进行评估,以证明与具有缩短搜索时间的最新技术相比,在张量核心上的大幅加速。

英文摘要:

Convolution is one of the fundamental operations of deep neural networks with demanding matrix computation. In a graphic processing unit (GPU), Tensor Core is a specialized matrix processing hardware equipped with reduced-precision matrix-multiply-accumulate (MMA) instructions to increase throughput. However, it is challenging to achieve optimal performance since the best scheduling of MMA instructions varies for different convolution sizes. In particular, reduced-precision MMA requires many elements grouped as a matrix operand, seriously limiting data reuse and imposing packing and layout overhead on the schedule. This work proposes an automatic scheduling method of reduced-precision MMA for convolution operation. In this method, we devise a search space that explores the thread tile and warp sizes to increase the data reuse despite a large matrix operand of reduced-precision MMA. The search space also includes options of register-level packing and layout optimization to lesson overhead of handling reduced-precision data. Finally, we propose a search algorithm to find the best schedule by learning from the distinctive candidates. This reduced-precision MMA optimization method is evaluated on convolution operations of popular neural networks to demonstrate substantial speedup on Tensor Core compared to the state of the arts with shortened search time.

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

↑