To Compress, or Not to Compress: Characterizing Deep Learning Model Compression for Embedded Inference
Authors:
- Qing QinQQQing Qin
- Jie RenJRJie Ren
- JiaLong YuJYJiaLong Yu
- Hai WangHWHai Wang
- Ling GaoLGLing Gao
- Jie ZhengJZJie Zheng
- Yansong FengYFYansong Feng
- Jianbin FangJFJianbin Fang
- Zheng WangZheng Wang
- 1 December 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 729-736
Abstract
The recent advances in deep neural networks (DNNs) make them attractive for embedded systems. However, it can take a long time for DNNs to make an inference on resource constrained computing devices. Model compression techniques can address the computation issue of deep inference on embedded devices. This technique is highly attractive, as it does not rely on specialized hardware, or computation-offloading that is often infeasible due to privacy concerns or high latency. However, it remains unclear how model compression techniques perform across a wide range of DNNs. To design efficient embedded deep learning solutions, we need to understand their behaviors. This work develops a quantitative approach to characterize model compression techniques on a representative embedded deep learning architecture, the NVIDIA Jetson Tx2. We perform extensive experiments by considering 11 influential neural network architectures from the image classification and the natural language processing domains. We experimentally show that how two mainstream compression techniques, data quantization and pruning, perform on these network architectures and the implications of compression techniques to the model storage size, inference time, energy consumption and performance metrics. We demonstrate that there are opportunities to achieve fast deep inference on embedded systems, but one must carefully choose the compression settings. Our results provide insights on when and how to apply model compression techniques and guidelines for designing efficient embedded deep learning systems.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- A portable, automatic data qantizer for deep neural networks2018
- Low-resource Multi-task Audio Sensing for Mobile and Embedded Devices via Shared Deep Neural Network RepresentationsProceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 2017
- Distributed Deep Neural Networks Over the Cloud, the Edge and End Devices2017
- Neurosurgeon2017
- Towards Pervasive and User Satisfactory CNN across GPU Microarchitectures2017
- Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural NetworksIEEE Journal of Solid-State Circuits, 2016
- EIEACM SIGARCH Computer Architecture News, 2016
- Deep Residual Learning for Image Recognition2016
- Deep Face Recognition2015