arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.10737cs.LG
收藏

Accuracy Booster:为DNN训练启用4位定点算术

Accuracy Booster: Enabling 4-bit Fixed-point Arithmetic for DNN Training

EPFL(洛桑联邦理工学院);Korea University(高丽大学)

Simla Burcu Harma, Ayan Chakraborty, Nicholas Sperry, Babak Falsafi, Martin Jaggi, Yunho Oh

AI总结:

针对DNN训练的计算资源需求,本文提出Accuracy Booster技术,通过混合尾数的HBFP格式,在超过99%的训练算术中使用4位尾数,在保持SOTA精度的同时将算术密度至少提升2.3倍。

摘要:

训练DNN模型对计算资源的前所未有的需求促使人们寻找最小数值编码。最近的SOTA方案主张采用多级缩放的窄位宽数值格式。在本文中,我们表明单级缩放足以在最大化算术密度的同时保持训练精度。我们将一种先前提出的用于8位训练的单级缩放格式——Hybrid Block Floating Point (HBFP),确定为进行最小化优化的理想候选者。我们使用数学工具对HBFP设计空间进行了全面探索,研究各参数间的相互作用,并寻找跨层和跨epoch实现更小编码的机会。基于我们的发现,我们提出了Accuracy Booster,这是一种混合尾数HBFP技术,在训练中超过99%的算术运算使用4位尾数,而6位尾数仅在最后一个epoch以及第一/最后一层中使用。我们证明,Accuracy Booster能使算术密度比所有其他SOTA格式至少提高2.3倍,同时在4位训练中实现SOTA精度。

英文摘要:

The unprecedented demand for computing resources to train DNN models has led to a search for minimal numerical encoding. Recent state-of-the-art (SOTA) proposals advocate for multi-level scaled narrow bitwidth numerical formats. In this paper, we show that single-level scaling is sufficient to maintain training accuracy while maximizing arithmetic density. We identify a previously proposed single-level scaled format for 8-bit training, Hybrid Block Floating Point (HBFP), as the optimal candidate to minimize. We perform a full-scale exploration of the HBFP design space using mathematical tools to study the interplay among various parameters and identify opportunities for even smaller encodings across layers and epochs. Based on our findings, we propose Accuracy Booster, a mixed-mantissa HBFP technique that uses 4-bit mantissas for over 99% of all arithmetic operations in training and 6-bit mantissas only in the last epoch and first/last layers. We show Accuracy Booster enables increasing arithmetic density over all other SOTA formats by at least 2.3x while achieving state-of-the-art accuracies in 4-bit training.

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

↑