arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.05233cs.LGstat.ML
收藏

DNN的Winograd卷积:超越线性多项式

Winograd Convolution for DNNs: Beyond linear polynomials

Trinity College Dublin(都柏林圣三一学院)

Barbara Barabasz, David Gregg

摘要:

Winograd卷积广泛用于深度神经网络(DNN)。DNN的现有工作只考虑了与Toom-Cook卷积等价的子集Winograd算法。我们研究了更广泛的DNN Winograd算法,并表明这些额外的算法在许多情况下可以显着提高浮点(FP)的准确性。我们使用ImageNet数据集的2000个输入,给出了三种FP格式的结果:fp 32,fp 16和bf 16(fp 32的截断形式)。我们发现,在fp 16中,这种方法在一个重要的情况下使我们的图像识别精度提高了6.5倍,同时在最内层循环中保持了相同数量的元素乘法运算。在bf 16中,卷积可以使用比当前使用的Winograd算法少5%的最内层循环乘法来计算,同时保持图像识别的准确性与直接卷积方法相同。

英文摘要:

Winograd convolution is widely used in deep neural networks (DNNs). Existing work for DNNs considers only the subset Winograd algorithms that are equivalent to Toom-Cook convolution. We investigate a wider range of Winograd algorithms for DNNs and show that these additional algorithms can significantly improve floating point (FP) accuracy in many cases. We present results for three FP formats: fp32, fp16 and bf16 (a truncated form of fp32) using 2000 inputs from the ImageNet dataset. We found that in fp16 this approach gives us up to 6.5 times better image recognition accuracy in one important case while maintaining the same number of elementwise multiplication operations in the innermost loop. In bf16 the convolution can be computed using 5% fewer innermost loop multiplications than with currently used Winograd algorithms while keeping the accuracy of image recognition the same as for direct convolution method.

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

↑