English

Performance Characterization of using Quantization for DNN Inference on Edge Devices: Extended Version

Performance 2023-03-10 v1 Signal Processing

Abstract

Quantization is a popular technique used in Deep Neural Networks (DNN) inference to reduce the size of models and improve the overall numerical performance by exploiting native hardware. This paper attempts to conduct an elaborate performance characterization of the benefits of using quantization techniques -- mainly FP16/INT8 variants with static and dynamic schemes -- using the MLPerf Edge Inference benchmarking methodology. The study is conducted on Intel x86 processors and Raspberry Pi device with ARM processor. The paper uses a number of DNN inference frameworks, including OpenVINO (for Intel CPUs only), TensorFlow Lite (TFLite), ONNX, and PyTorch with MobileNetV2, VGG-19, and DenseNet-121. The single-stream, multi-stream, and offline scenarios of the MLPerf Edge Inference benchmarks are used for measuring latency and throughput in our experiments. Our evaluation reveals that OpenVINO and TFLite are the most optimized frameworks for Intel CPUs and Raspberry Pi device, respectively. We observe no loss in accuracy except for the static quantization techniques. We also observed the benefits of using quantization for these optimized frameworks. For example, INT8-based quantized models deliver 3.3×3.3\times and 4×4\times better performance over FP32 using OpenVINO on Intel CPU and TFLite on Raspberry Pi device, respectively, for the MLPerf offline scenario. To the best of our knowledge, this paper is the first one that presents a unique characterization study characterizing the impact of quantization for a range of DNN inference frameworks -- including OpenVINO, TFLite, PyTorch, and ONNX -- on Intel x86 processors and Raspberry Pi device with ARM processor using the MLPerf Edge Inference benchmark methodology.

Keywords

Cite

@article{arxiv.2303.05016,
  title  = {Performance Characterization of using Quantization for DNN Inference on Edge Devices: Extended Version},
  author = {Hyunho Ahn and Tian Chen and Nawras Alnaasan and Aamir Shafi and Mustafa Abduljabbar and Hari Subramoni and Dhabaleswar K. and Panda},
  journal= {arXiv preprint arXiv:2303.05016},
  year   = {2023}
}

Comments

Extended version of accepted short paper by ICFEC 2023

R2 v1 2026-06-28T09:08:36.512Z