TernGEMM: GEneral Matrix Multiply Library with Ternary Weights for Fast DNN Inference

Citations

WEB OF SCIENCE

3
Citations

SCOPUS

6

초록

Efficient implementation of deep neural networks on CPU-based systems is very critical because applications proliferate to embedded and Internet of Things (IoT) systems. Many CPUs for personal computers and embedded systems equip Single Instruction Multiple Data (SIMD) instructions, which can be utilized to implement an efficient GEneral Matrix Multiply (GEMM) library that is very necessary for efficient deep neural network implementation. While many deep neural networks show quite good performance even at 1-bit or 2-bit precision, the current CPU instruction and library do not efficiently support arithmetic operations below 8-bit. We propose TernGEMM, a special GEMM library using SIMD instructions for Deep Neural Network (DNN) inference with ternary weights and activations under 8-bit. TernGEMM improves the speed by replacing slow multiply-add with logical operations and also accumulating a number of multiplications without bit expansion operations. We compared the speedup of TernGEMM with tiling optimization and GEMMLowp, an 8-bit precision GEMM library. For Intel CPU, the speedup of ×2.052, ×2.973, and ×2.986 is achieved on ResNet-50, MobileNet-V2, EfficientNet-B0, respectively. For ARM CPU, TernGEMM's speedup is ×2.143, ×1.765, and ×1.856, respectively.

키워드

Deep neural networksImplementationInferenceMatrix multiplicationDeep neural networksEmbedded systemsInternet of thingsPersonal computersProgram processorsBit precisionEfficient implementationEmbedded-systemImplementationInferenceMAtrix multiplicationMatrix multiplyNetwork inferencePerformanceSingle instruction multiple data instructionsMatrix algebra
제목
TernGEMM: GEneral Matrix Multiply Library with Ternary Weights for Fast DNN Inference
저자
Choi, SeokhyeonShim, KyuhongChoi, JungwookSung, WonyongShim, Byonghyo
DOI
10.1109/SiPS52927.2021.00028
발행일
2021-11
유형
Proceedings Paper
저널명
2021 IEEE WORKSHOP ON SIGNAL PROCESSING SYSTEMS (SIPS 2021)
2021
October
페이지
111 ~ 116