高技术通讯2024,Vol.34Issue(6) :567-577.DOI:10.3772/j.issn.1002-0470.2024.06.002

一种基于自适应PoT量化的无乘法神经网络训练方法

Multiplication-free neural network training based on adaptive PoT quantization

刘畅 张蕊 支天
高技术通讯2024,Vol.34Issue(6) :567-577.DOI:10.3772/j.issn.1002-0470.2024.06.002

一种基于自适应PoT量化的无乘法神经网络训练方法

Multiplication-free neural network training based on adaptive PoT quantization

刘畅 1张蕊 2支天2
扫码查看

作者信息

  • 1. 中国科学院大学 北京 100049;中国科学院计算技术研究所智能处理器研究中心 北京 100190
  • 2. 中国科学院计算技术研究所智能处理器研究中心 北京 100190;中国科学院计算技术研究所处理器芯片全国重点实验室 北京 100190
  • 折叠

摘要

当前的深度神经网络的训练过程中需要包含大量的全精度乘累加(MAC)操作,导致神经网络模型的线性层(包含卷积层和全连接层)的计算过程所需的能耗占整体能耗的绝大部分,达90%以上.本文提出了一种自适应逐层缩放的量化训练方法,可支持在神经网络计算全流程(前向传播和后向传播)将全部线性层中的全精度乘法替换为 4位定点数加法计算和1 位异或运算.实验结果表明,上述方法在能耗和准确率方面都优于现有方法,可支撑在训练过程中减少达 95.8%的线性层能耗,在ImageNet数据集上的卷积神经网络和在WMT En-De任务上的Transformer网络得到小于1%的精度损失.

Abstract

The current deep neural network training process needs a large number of full-precision multiply-accumulate(MAC)operations,resulting in a situation that the energy consumption of the linear layers(including the convolu-tional layer and the fully connected layer)accounts for the vast majority of the overall energy consumption,reac-hing more than 90%.This work proposes an adaptive layer-wise scaling quantization training method,which can support the replacement of full-precision multiplication in all linear layers with 4-bit fixed-point addition and 1-bit XOR operation.The experimental results show that the above method is superior to the existing methods in terms of energy consumption and accuracy,and can reduce the energy consumption of linear layers by 95.8%in the train-ing process.The convolutional neural networks on ImageNet and the Transformer networks on WMT En-De achieve less than 1%accuracy loss.

关键词

神经网络/量化/训练加速/低能耗

Key words

neural network/quantization/training acceleration/low energy consumption

引用本文复制引用

基金项目

国家重点研发计划(2018AAA0103300)

国家自然科学基金(62102399)

国家自然科学基金(U22A2028)

国家自然科学基金(U20A20227)

中国科学院稳定支持基础研究领域青年团队计划(YSBR-029)

出版年

2024
高技术通讯
中国科学技术信息研究所

高技术通讯

CSTPCD北大核心
影响因子:0.19
ISSN:1002-0470
参考文献量42
段落导航相关论文