paper-with-me

홈 › Papers

Quantizing deep convolutional networks for efficient inference: A whitepaper

2018-06-21 · Raghuraman Krishnamoorthi

We present an overview of techniques for quantizing convolutional neural networks for inference with integer weights and activations. Per-channel quantization of weights and per-layer quantization of activations to 8-bits of precision post-training produces classification accuracies within 2% of floating point networks for a wide variety of CNN architectures. Model sizes can be reduced by a factor of 4 by quantizing weights to 8-bits, even when 8-bit arithmetic is not supported. This can be achieved with simple, post training quantization of weights.We benchmark latencies of quantized networks on CPUs and DSPs and observe a speedup of 2x-3x for quantized implementations compared to floating point on CPUs. Speedups of up to 10x are observed on specialized processors with fixed point SIMD capabilities, like the Qualcomm QDSPs with HVX. Quantization-aware training can provide further improvements, reducing the gap to floating point to 1% at 8-bit precision. Quantization-aware training also allows for reducing the precision of weights to four bits with accuracy losses ranging from 2% to 10%, with higher accuracy drop for smaller networks.We introduce tools in TensorFlow and TensorFlowLite for quantizing convolutional networks and review best practices for quantization-aware training to obtain high accuracy with quantized weights and activations. We recommend that per-channel quantization of weights and per-layer quantization of activations be the preferred quantization scheme for hardware acceleration and kernel optimization. We also propose that future processors and hardware accelerators for optimized inference support precisions of 4, 8 and 16 bits.

📄 PDF Abstract BibTeX arXiv:1806.08342

Code (3)

KwangHoonAn/Quantizations pytorch
lz20061213/darknet-ameliorate
shiyongming/calib-dataset-eval tf

Tasks

Quantization

Similar Papers 제목 키워드 기반

Ethics Whitepaper: Whitepaper on Ethical Research into Large Language Models

2024-10-17 · Eddie L. Ungless, Nikolas Vitsakis, Zeerak Talat, James Garforth 외

This whitepaper offers an overview of the ethical considerations surrounding research into or with large language models (LLMs). As LLMs become more integrated into widely used applications, their societal impact increas…

Ethics

Pixel Embedding: Fully Quantized Convolutional Neural Network with Differentiable Lookup Table

2024-07-23 · Hiroyuki Tokunaga, Joel Nicholls, Daria Vazhenina, Atsunori Kanemura

By quantizing network weights and activations to low bitwidth, we can obtain hardware-friendly and energy-efficient networks. However, existing quantization techniques utilizing the straight-through estimator and piecewi…

Quantization

Inference of Recyclable Objects with Convolutional Neural Networks

2021-04-02 · Jaime Caballero, Francisco Vergara, Randal Miranda, José Serracín

Population growth in the last decades has resulted in the production of about 2.01 billion tons of municipal waste per year. The current waste management systems are not capable of providing adequate solutions for the di…

Management

A Greedy Algorithm for Quantizing Neural Networks

2020-10-29 · Eric Lybrand, Rayan Saab

We propose a new computationally efficient method for quantizing the weights of pre- trained neural networks that is general enough to handle both multi-layer perceptrons and convolutional neural networks. Our method det…

Quantization

Whitepaper of NEWS 2016 Shared Task on Machine Transliteration

2016-08-01 · WS 2016 8 · Xiangyu Duan, Min Zhang, Haizhou Li, Rafael Banchs 외
Machine TranslationTransliteration