训练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.
MAx-DNN: Multi-Level Arithmetic Approximation for Energy-Efficient DNN Hardware Accelerators
National Technical University of Athens, School of Electrical and Computer Engineering(希腊雅典国家技术大学电气与计算机工程学院);Harokopio University of Athens, Department of Informatics and Telematics(雅典霍罗科波利斯大学信息与电信学院)
HGQ-LUT: Fast LUT-Aware Training and Efficient Architectures for DNN Inference
California Institute of Technology, Pasadena, CA, USA(加州理工学院);University of Bristol, UK(布里斯托大学);Imperial College London, UK(伦敦帝国理工学院);SLAC National Accelerator Laboratory, Menlo Park, CA, USA(SLAC国家加速器实验室)
Full-Stack Optimization for CAM-Only DNN Inference
Technische Universität Dresden(德累斯顿工业大学);Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI)(可扩展数据分析与人工智能中心(ScaDS.AI));Federal University of Rio Grande do Sul(南里奥格兰德联邦大学)
From Arithmetic to Logic: The Resilience of Logic and Lookup-Based Neural Networks Under Parameter Bit-Flips
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Federal University of Rio de Janeiro(里约热内卢联邦大学);Instituto de Telecomunicações, Porto, Portugal(葡萄牙波尔图电信研究所);Google LLC(谷歌公司)