paper-with-me

Papers

Efficient Execution of Quantized Deep Learning Models: A Compiler Approach

2020-06-18 · Animesh Jain, Shoubhik Bhattacharya, Masahiro Masuda, Vin Sharma, Yida Wang

A growing number of applications implement predictive functions using deep learning models, which require heavy use of compute and memory. One popular technique for increasing resource efficiency is 8-bit integer quantization, in which 32-bit floating point numbers (fp32) are represented using shorter 8-bit integer numbers. Although deep learning frameworks such as TensorFlow, TFLite, MXNet, and PyTorch enable developers to quantize models with only a small drop in accuracy, they are not well suited to execute quantized models on a variety of hardware platforms. For example, TFLite is optimized to run inference on ARM CPU edge devices but it does not have efficient support for Intel CPUs and Nvidia GPUs. In this paper, we address the challenges of executing quantized deep learning models on diverse hardware platforms by proposing an augmented compiler approach. A deep learning compiler such as Apache TVM can enable the efficient execution of model from various frameworks on various targets. Many deep learning compilers today, however, are designed primarily for fp32 computation and cannot optimize a pre-quantized INT8 model. To address this issue, we created a new dialect called Quantized Neural Network (QNN) that extends the compiler's internal representation with a quantization context. With this quantization context, the compiler can generate efficient code for pre-quantized models on various hardware platforms. As implemented in Apache TVM, we observe that the QNN-augmented deep learning compiler achieves speedups of 2.35x, 2.15x, 1.35x and 1.40x on Intel Xeon Cascade Lake CPUs, Nvidia Tesla T4 GPUs, ARM Raspberry Pi3 and Pi4 respectively against well optimized fp32 execution, and comparable performance to the state-of-the-art framework-specific solutions.

📄 PDF Abstract BibTeX arXiv:2006.10226

Code (0)

등록된 구현이 없습니다.

Tasks

CPUDeep LearningQuantization

Similar Papers 제목 키워드 기반

Nano-U: Efficient Terrain Segmentation for Tiny Robot Navigation

2026-05-11 · Federico Pizzolato, Francesco Pasti, Nicola Bellotto arxiv

Terrain segmentation is a fundamental capability for autonomous mobile robots operating in unstructured outdoor environments. However, state-of-the-art models are incompatible with the memory and compute constraints typi…

Knowledge DistillationRobot Navigation

CPrune: Compiler-Informed Model Pruning for Efficient Target-Aware DNN Execution

2022-07-04 · Yongin Kwon, Jemin Lee, TaeHo Kim, Sangtae Ha

Mobile devices run deep learning models for various purposes, such as image classification and speech recognition. Due to the resource constraints of mobile devices, researchers have focused on either making a lightweigh…

Compiler Optimizationimage-classificationImage ClassificationModel Compression+2

NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executables

2025-09-08 · Yilin Li, Guozhu Meng, Mingyang Sun, Yanzhong Wang 외 arxiv

On-device deep learning models have extensive real world demands. Deep learning compilers efficiently compile models into executables for deployment on edge devices, but these executables may face the threat of reverse e…

MLIR: A Compiler Infrastructure for the End of Moore's Law

2020-02-25 · Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen 외

This work presents MLIR, a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the…

Towards Real-Time DNN Inference on Mobile Platforms with Model Pruning and Compiler Optimization

2020-04-22 · Wei Niu, Pu Zhao, Zheng Zhan, Xue Lin 외

High-end mobile platforms rapidly serve as primary computing devices for a wide range of Deep Neural Network (DNN) applications. However, the constrained computation and storage resources on these devices still pose sign…

Compiler OptimizationStyle TransferSuper-Resolution