arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.08822cs.LGcs.CC
收藏

对于深度学习训练来说,人工智能算法足够了吗?

Is Integer Arithmetic Enough for Deep Learning Training?

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);McGill University(麦吉尔大学)

Alireza Ghaffari, Marzieh S. Tahaei, Mohammadreza Tayaranian, Masoud Asgharian, Vahid Partovi Nia

摘要:

深度学习模型不断增加的计算复杂性使得它们难以在各种云和边缘平台上进行训练和部署。用低位整数运算取代浮点运算是一种很有前途的方法,可以节省深度学习模型的能量、内存占用和延迟。因此,近年来量子化引起了研究人员的注意。然而,没有详细研究使用整数来形成包括前向传递、反向传播和随机梯度下降的全功能整数训练流水线。我们的经验和数学结果表明,整数运算似乎足以训练深度学习模型。与最近的提议不同,我们直接切换计算的数字表示,而不是量化。我们的新训练方法形成了一个完整的整数训练管道,与浮点相比,它不会改变损失和准确性的轨迹,也不需要任何特殊的超参数调整,分布调整或梯度裁剪。我们的实验结果表明,我们提出的方法是有效的,在各种各样的任务,如分类(包括视觉Transformer),目标检测,和语义分割。

英文摘要:

The ever-increasing computational complexity of deep learning models makes their training and deployment difficult on various cloud and edge platforms. Replacing floating-point arithmetic with low-bit integer arithmetic is a promising approach to save energy, memory footprint, and latency of deep learning models. As such, quantization has attracted the attention of researchers in recent years. However, using integer numbers to form a fully functional integer training pipeline including forward pass, back-propagation, and stochastic gradient descent is not studied in detail. Our empirical and mathematical results reveal that integer arithmetic seems to be enough to train deep learning models. Unlike recent proposals, instead of quantization, we directly switch the number representation of computations. Our novel training method forms a fully integer training pipeline that does not change the trajectory of the loss and accuracy compared to floating-point, nor does it need any special hyper-parameter tuning, distribution adjustment, or gradient clipping. Our experimental results show that our proposed method is effective in a wide variety of tasks such as classification (including vision transformers), object detection, and semantic segmentation.

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

↑