StrassenNets: Deep Learning with a Multiplication Budget

Michael Tschannen, Aran Khanna, Anima Anandkumar
12/11/2017
cs.LGcs.CV

Official code: mitscha/strassennets (47 stars, Jupyter Notebook, last commit 2018-07-15).

Abstract

A large fraction of the arithmetic operations required to evaluate deep neural networks (DNNs) consists of matrix multiplications, in both convolution and fully connected layers. We perform end-to-end learning of low-cost approximations of matrix multiplications in DNN layers by casting matrix multiplications as 2-layer sum-product networks (SPNs) (arithmetic circuits) and learning their (ternary) edge weights from data.

Show full abstract

The SPNs disentangle multiplication and addition operations and enable us to impose a budget on the number of multiplication operations. Combining our method with knowledge distillation and applying it to image classification DNNs (trained on ImageNet) and language modeling DNNs (using LSTMs), we obtain a first-of-a-kind reduction in number of multiplications (over 99.5%) while maintaining the predictive performance of the full-precision models. Finally, we demonstrate that the proposed framework is able to rediscover Strassen's matrix multiplication algorithm, learning to multiply $2 \times 2$ matrices using only 7 multiplications instead of 8.

View on arXivView PDF

Code Implementations(1)

Deep learning with a multiplication budget

4711Jupyter Notebook, PythonDec 3, 20178 years ago

Similar Papers

Cite this paper

@article{tschannen2017strassennets,
  title  = {StrassenNets: Deep Learning with a Multiplication Budget},
  author = {Michael Tschannen and Aran Khanna and Anima Anandkumar},
  year   = {2017},
  eprint = {1712.03942},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.03942}
}

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

Discussion