arrow
返回

NITI: Training Integer Neural Networks Using Integer-Only Arithmetic

delete2022-11-01
delete15
delete
OA
AI
王茂林 封面图
王茂林 (Maolin Wang)
S
S A Rasoulinezhad
P
Philip H. W. Leong
H
Hayden Kwok‐Hay So *
DOI:10.1109/TPDS.2022.3149787delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Low bitwidth integer arithmetic has been widely adopted in hardware implementations of deep neural network inference applications. However, despite the promised energy-efficiency improvements demanding edge applications, the use of low bitwidth integer arithmetic for neural network training remains limited. Unlike inference, training demands high dynamic range and numerical accuracy for high quality results, making the use of low-bitwidth integer arithmetic particularly challenging. To address this challenge, we present a novel neural network training framework called NITI that exclusively utilizes low bitwidth integer arithmetic. NITI stores all parameters and accumulates intermediate values as 8-bit integers while using no more than 5 bits for gradients. To provide the necessary dynamic range during the training process, a per-layer block scaling exponentiation scheme is utilized. By deeply integrating with the rounding procedures and integer entropy loss calculation, the proposed scaling scheme incurs only minimal overhead in terms of storage and additional computation. Furthermore, a hardware-efficient pseudo-stochastic rounding scheme that eliminates the need for external random number generation is proposed to facilitate conversion from wider intermediate arithmetic results to lower precision for storage. Since NITI operates only with standard 8-bit integer arithmetic and storage, it is possible to accelerate it using existing low bitwidth operators originally developed for inference in commodity accelerators. To demonstrate this, an open-source software implementation of end-to-end training, using native 8-bit integer operations in modern GPUs is presented. In addition, experiments have been conducted on an FPGA-based training accelerator to evaluate the hardware advantage of NITI. When compared with an equivalent training setup implemented with floating point storage and arithmetic, NITI has no accuracy degradation on the MNIST and CIFAR10 datasets. On ImageNet, NITI achieves similar accuracy as state-of-the-art integer training frameworks without relying on full-precision floating-point first and last layers.
Keyword:
Training
Arithmetic
Neural networks
Dynamic range
Degradation
Tensors
Standards
Neural network training
integer arithmetic
NITI
GPU
tensor core
hardware accelerator

期刊

IEEE Transactions on Parallel and Distributed Systems 封面图
IEEE Transactions on Parallel and Distributed Systems
IF:
6
论文数:
5.2K
被引数:
1.1W

机构

U
University of Hong Kong
学者数:
4.1W
论文数: 3.9W
被引数: 10.1W
U
University of Sydney
学者数:
6.5W
论文数: 6.2W
被引数: 90
引用论文

引用论文

A Planar Decanuclear Cobalt(II) Phosphonate
err2014-04-22
err0
PREAI
errDipankar Sahoo; Ramesh K. Metre; Wolfgang Kroener; Klaus Gieb; Paul Müller; Vadapalli Chandrasekhar
err分享
err收藏
Efficient and self-adaptive in-situ learning in multilayer memristor neural networks多层忆阻器神经网络的高效自适应原位学习
err2018-06-19
err551
errOAAI
errLi, Can; Belkin, Daniel; Li, Yunning; Yan, Peng; Hu, Miao; Ge, Ning; Jiang, Hao; Montgomery, Eric; Lin, Peng; Wang, Zhongrui; Song, Wenhao; Strachan, John Paul; Barnell, Mark; Wu, Qing; Williams, R. Stanley; Yang, J. Joshua; Xia, Qiangfei
err分享
err收藏
err分享
err收藏
Sorption of 17α-ethinyl estradiol, bisphenol A and phenanthrene to different size fractions of soil and sediment
err2012-07-01
err0
PREAI
errKe Sun; Jie Jin; Bo Gao; Zheyun Zhang; Ziying Wang; Zezhen Pan; Dongyu Xu; Ye Zhao
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Pyglotaran: a lego-like Python framework for global and target analysis of time-resolved spectra
err2023-07-31
err0
errOAAI
errIvo H. M. van Stokkum; Jörn Weißenborn; Sebastian Weigand; Joris J. Snellenburg
err分享
err收藏
学者 查看更多内容