arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1909.07729cs.LGcs.NEstat.ML
收藏

K-TanH:用于深度学习的高效TanH

K-TanH: Efficient TanH For Deep Learning

Intel Labs(英特尔研究院);Georgia Institute of Technology(佐治亚理工学院)

Abhisek Kundu, Alex Heinecke, Dhiraj Kalamkar, Sudarshan Srinivasan, Eric C. Qin, Naveen K. Mellempudi, Dipankar Das, Kunal Banerjee, Bharat Kaul, Pradeep Dubey

摘要:

我们提出了K-TanH,这是一种新颖的,高度准确的,硬件有效的近似用于深度学习的流行激活函数TanH。K-TanH由参数化的低精度整数运算组成,例如移位和加/减(不需要浮点运算),其中参数存储在非常小的查找表中,可以放入CPU寄存器中。K-TanH可以处理各种数字格式,例如Float 32和BFloat 16。对其他激活函数的高质量近似,例如,Sigmoid、Swish和GELU可以从K-TanH导出。我们的AVX 512 K-TanH实现证明了$>5\times$比英特尔SVML更快的速度,并且在效率上始终优于使用浮点运算的其他近似值。最后,我们在WMT 16数据集上训练语言翻译模型GNMT,并通过BFloat 16输入上的K-TanH获得近似TanH,从而获得了最先进的Bleu得分和收敛结果。

英文摘要:

We propose K-TanH, a novel, highly accurate, hardware efficient approximation of popular activation function TanH for Deep Learning. K-TanH consists of parameterized low-precision integer operations, such as, shift and add/subtract (no floating point operation needed) where parameters are stored in very small look-up tables that can fit in CPU registers. K-TanH can work on various numerical formats, such as, Float32 and BFloat16. High quality approximations to other activation functions, e.g., Sigmoid, Swish and GELU, can be derived from K-TanH. Our AVX512 implementation of K-TanH demonstrates $>5\times$ speed up over Intel SVML, and it is consistently superior in efficiency over other approximations that use floating point arithmetic. Finally, we achieve state-of-the-art Bleu score and convergence results for training language translation model GNMT on WMT16 data sets with approximate TanH obtained via K-TanH on BFloat16 inputs.

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

↑