Ultra-low Precision Multiplication-free Training for Deep Neural Networks

Chang Liu, Rui Zhang, Xishan Zhang, Yifan Hao, Zidong Du +3 more
2/28/2023
cs.LGcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

The training for deep neural networks (DNNs) demands immense energy consumption, which restricts the development of deep learning as well as increases carbon emissions. Thus, the study of energy-efficient training for DNNs is essential. In training, the linear layers consume the most energy because of the intense use of energy-consuming full-precision (FP32) multiplication in multiply-accumulate (MAC). The energy-efficient works try to decrease the precision of multiplication or replace the multiplication with energy-efficient operations such as addition or bitwise shift, to reduce the energy consumption of FP32 multiplications. However, the existing energy-efficient works cannot replace all of the FP32 multiplications during both forward and backward propagation with low-precision energy-efficient operations. In this work, we propose an Adaptive Layer-wise Scaling PoT Quantization (ALS-POTQ) method and a Multiplication-Free MAC (MF-MAC) to replace all of the FP32 multiplications with the INT4 additions and 1-bit XOR operations. In addition, we propose Weight Bias Correction and Parameterized Ratio Clipping techniques for stable training and improving accuracy. In our training scheme, all of the above methods do not introduce extra multiplications, so we reduce up to 95.8% of the energy consumption in linear layers during training. Experimentally, we achieve an accuracy degradation of less than 1% for CNN models on ImageNet and Transformer model on the WMT En-De task. In summary, we significantly outperform the existing methods for both energy efficiency and accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2023ultralow,
  title  = {Ultra-low Precision Multiplication-free Training for Deep Neural Networks},
  author = {Chang Liu and Rui Zhang and Xishan Zhang and Yifan Hao and Zidong Du and Xing Hu and Ling Li and Qi Guo},
  year   = {2023},
  eprint = {2302.14458},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.14458v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.14458.svg)](https://codeofpaper.com/paper/2302.14458)

Discussion