Towards Learning of Filter-Level Heterogeneous Compression of Convolutional Neural Networks

Yochai Zur, Chaim Baskin, Evgenii Zheltonozhskii, Brian Chmiel, Itay Evron +2 more
4/22/2019
8 citations
cs.CVcs.LGcs.NE
quantization-pruning

Official code: yochaiz/Slimmable (9 stars, Python, last commit 2019-05-02). 1 more implementation below.

Abstract

Recently, deep learning has become a de facto standard in machine learning with convolutional neural networks (CNNs) demonstrating spectacular success on a wide variety of tasks. However, CNNs are typically very demanding computationally at inference time.

Show full abstract

One of the ways to alleviate this burden on certain hardware platforms is quantization relying on the use of low-precision arithmetic representation for the weights and the activations. Another popular method is the pruning of the number of filters in each layer. While mainstream deep learning methods train the neural networks weights while keeping the network architecture fixed, the emerging neural architecture search (NAS) techniques make the latter also amenable to training. In this paper, we formulate optimal arithmetic bit length allocation and neural network pruning as a NAS problem, searching for the configurations satisfying a computational complexity budget while maximizing the accuracy. We use a differentiable search method based on the continuous relaxation of the search space proposed by Liu et al. (arXiv:1806.09055). We show, by grid search, that heterogeneous quantized networks suffer from a high variance which renders the benefit of the search questionable. For pruning, improvement over homogeneous cases is possible, but it is still challenging to find those configurations with the proposed method. The code is publicly available at https://github.com/yochaiz/Slimmable and https://github.com/yochaiz/darts-UNIQ

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
yochaiz/SlimmableOfficial9Python–2019-05-02
yochaiz/darts-UNIQOfficial6PythonApache-2.02019-05-02
yochaiz/SlimmableOfficial100%
91PythonDec 6, 20187 years ago
yochaiz/darts-UNIQOfficial100%
Apache-2.0

DARTS (https://arxiv.org/abs/1806.09055) combined with UNIQ (https://arxiv.org/abs/1804.10969)

65Python, ShellJul 22, 20187 years agoApache-2.0

Similar Papers

Cite this paper

@article{zur2019towards,
  title  = {Towards Learning of Filter-Level Heterogeneous Compression of Convolutional Neural Networks},
  author = {Yochai Zur and Chaim Baskin and Evgenii Zheltonozhskii and Brian Chmiel and Itay Evron and Alex M. Bronstein and Avi Mendelson},
  year   = {2019},
  eprint = {1904.09872},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.09872}
}

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/1904.09872.svg)](https://codeofpaper.com/paper/1904.09872)

Discussion