arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1804.01526cs.LGcs.NAmath.NAstat.ML
收藏

用混合块浮点数训练DNNs

Training DNNs with Hybrid Block Floating Point

EPFL(苏黎世联邦理工学院)

Mario Drumond, Tao Lin, Martin Jaggi, Babak Falsafi

AI总结:

本文提出了一种混合块浮点数(HBFP)方法,通过在块浮点数中执行所有点积运算,其他运算使用浮点数,从而在保持高精度的同时提高硬件密度和吞吐量。

摘要:

深度神经网络(DNN)的广泛应用催生了持续增长的计算需求,迫使数据中心运营商采用领域专用加速器来训练它们。这些加速器通常使用密集打包的全精度浮点运算以最大化面积性能。持续的研究努力旨在通过用固定点运算替换浮点运算来进一步提高这种性能密度。然而,这些尝试面临的主要障碍是固定点的动态范围狭窄,不足以支持DNN训练的收敛。我们识别出块浮点数(BFP)作为有前途的替代表示,因为它具有宽动态范围,并且能够使大多数DNN运算使用固定点逻辑进行。不幸的是,BFP单独引入了几个限制,使其无法直接应用。在本文中,我们引入了HBFP,一种混合BFP-FP方法,它在BFP中执行所有点积运算,其他运算使用浮点运算。HBFP实现了两全其美:浮点数的高精度和固定点的优越硬件密度。对于广泛的各种模型,我们证明HBFP在保持浮点数精度的同时,能够实现高达8.5倍的吞吐量。

英文摘要:

The wide adoption of DNNs has given birth to unrelenting computing requirements, forcing datacenter operators to adopt domain-specific accelerators to train them. These accelerators typically employ densely packed full precision floating-point arithmetic to maximize performance per area. Ongoing research efforts seek to further increase that performance density by replacing floating-point with fixed-point arithmetic. However, a significant roadblock for these attempts has been fixed point's narrow dynamic range, which is insufficient for DNN training convergence. We identify block floating point (BFP) as a promising alternative representation since it exhibits wide dynamic range and enables the majority of DNN operations to be performed with fixed-point logic. Unfortunately, BFP alone introduces several limitations that preclude its direct applicability. In this work, we introduce HBFP, a hybrid BFP-FP approach, which performs all dot products in BFP and other operations in floating point. HBFP delivers the best of both worlds: the high accuracy of floating point at the superior hardware density of fixed point. For a wide variety of models, we show that HBFP matches floating point's accuracy while enabling hardware implementations that deliver up to 8.5x higher throughput.

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

↑