Learning Sparse & Ternary Neural Networks with Entropy-Constrained Trained Ternarization (EC2T)

Arturo Marban, Daniel Becking, Simon Wiedemann, Wojciech Samek
4/2/2020
cs.LGcs.ITstat.ML

Official code: d-becking/efficientCNNs (6 stars, Python, MIT, PyTorch, last commit 2022-12-08).

Abstract

Deep neural networks (DNN) have shown remarkable success in a variety of machine learning applications. The capacity of these models (i.e., number of parameters), endows them with expressive power and allows them to reach the desired performance.

Show full abstract

In recent years, there is an increasing interest in deploying DNNs to resource-constrained devices (i.e., mobile devices) with limited energy, memory, and computational budget. To address this problem, we propose Entropy-Constrained Trained Ternarization (EC2T), a general framework to create sparse and ternary neural networks which are efficient in terms of storage (e.g., at most two binary-masks and two full-precision values are required to save a weight matrix) and computation (e.g., MAC operations are reduced to a few accumulations plus two multiplications). This approach consists of two steps. First, a super-network is created by scaling the dimensions of a pre-trained model (i.e., its width and depth). Subsequently, this super-network is simultaneously pruned (using an entropy constraint) and quantized (that is, ternary values are assigned layer-wise) in a training process, resulting in a sparse and ternary network representation. We validate the proposed approach in CIFAR-10, CIFAR-100, and ImageNet datasets, showing its effectiveness in image classification tasks.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Finding Storage- and Compute-Efficient Convolutional Neural Networks

63PythonFeb 16, 20203 years agoMIT
compound-scalingec2tefficient-inferenceefficient-neural-networksentropy-coding+8 more

Similar Papers

Cite this paper

@article{marban2020learning,
  title  = {Learning Sparse & Ternary Neural Networks with Entropy-Constrained Trained Ternarization (EC2T)},
  author = {Arturo Marban and Daniel Becking and Simon Wiedemann and Wojciech Samek},
  year   = {2020},
  eprint = {2004.01077},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.01077}
}

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

Discussion