A simple approach for quantizing neural networks

09/07/2022
by   Johannes Maly, et al.
0

In this short note, we propose a new method for quantizing the weights of a fully trained neural network. A simple deterministic pre-processing step allows us to quantize network layers via memoryless scalar quantization while preserving the network performance on given training data. On one hand, the computational complexity of this pre-processing slightly exceeds that of state-of-the-art algorithms in the literature. On the other hand, our approach does not require any hyper-parameter tuning and, in contrast to previous methods, allows a plain analysis. We provide rigorous theoretical guarantees in the case of quantizing single network layers and show that the relative error decays with the number of parameters in the network if the training data behaves well, e.g., if it is sampled from suitable random distributions. The developed method also readily allows the quantization of deep networks by consecutive application to single layers.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/29/2020

A Greedy Algorithm for Quantizing Neural Networks

We propose a new computationally efficient method for quantizing the wei...
research
06/24/2022

Computational Complexity Evaluation of Neural Network Applications in Signal Processing

In this paper, we provide a systematic approach for assessing and compar...
research
04/13/2022

Efficient Deep Learning-based Estimation of the Vital Signs on Smartphones

Nowadays, due to the widespread use of smartphones in everyday life and ...
research
10/24/2017

Pre-Processing-Free Gear Fault Diagnosis Using Small Datasets with Deep Convolutional Neural Network-Based Transfer Learning

Early fault diagnosis in complex mechanical systems such as gearbox has ...
research
09/20/2023

SPFQ: A Stochastic Algorithm and Its Error Analysis for Neural Network Quantization

Quantization is a widely used compression method that effectively reduce...
research
09/21/2023

Video Scene Location Recognition with Neural Networks

This paper provides an insight into the possibility of scene recognition...
research
06/15/2020

Detecting unusual input to neural networks

Evaluating a neural network on an input that differs markedly from the t...

Please sign up or login with your details

Forgot password? Click here to reset