Channel-wise Mixed-precision Assignment for DNN Inference on Constrained Edge Nodes

Matteo Risso, Alessio Burrello, Luca Benini, Enrico Macii, Massimo Poncino +1 more
6/17/2022
cs.LG

Official code: eml-eda/multi-prec-nas (4 stars, Python, Apache-2.0, last commit 2023-03-06).

Abstract

Quantization is widely employed in both cloud and edge systems to reduce the memory occupation, latency, and energy consumption of deep neural networks. In particular, mixed-precision quantization, i.e., the use of different bit-widths for different portions of the network, has been shown to provide excellent efficiency gains with limited accuracy drops, especially with optimized bit-width assignments determined by automated Neural Architecture Search (NAS) tools.

Show full abstract

State-of-the-art mixed-precision works layer-wise, i.e., it uses different bit-widths for the weights and activations tensors of each network layer. In this work, we widen the search space, proposing a novel NAS that selects the bit-width of each weight tensor channel independently. This gives the tool the additional flexibility of assigning a higher precision only to the weights associated with the most informative features. Testing on the MLPerf Tiny benchmark suite, we obtain a rich collection of Pareto-optimal models in the accuracy vs model size and accuracy vs energy spaces. When deployed on the MPIC RISC-V edge processor, our networks reduce the memory and energy for inference by up to 63% and 27% respectively compared to a layer-wise approach, for the same accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
40Python, ShellFeb 9, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{risso2022channelwise,
  title  = {Channel-wise Mixed-precision Assignment for DNN Inference on Constrained Edge Nodes},
  author = {Matteo Risso and Alessio Burrello and Luca Benini and Enrico Macii and Massimo Poncino and Daniele Jahier Pagliari},
  year   = {2022},
  eprint = {2206.08852},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.08852}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.08852.svg)](https://codeofpaper.com/paper/2206.08852)

Discussion