Learning Recurrent Binary/Ternary Weights

Arash Ardakani, Zhengyun Ji, Sean C. Smithson, Brett H. Meyer, Warren J. Gross
9/28/2018
cs.LGcs.CCstat.ML

Official code: arashardakani/Learning-Recurrent-Binary-Ternary-Weights (13 stars, Python, GPL-2.0, last commit 2018-12-04).

Abstract

Recurrent neural networks (RNNs) have shown excellent performance in processing sequence data. However, they are both complex and memory intensive due to their recursive nature.

Show full abstract

These limitations make RNNs difficult to embed on mobile devices requiring real-time processes with limited hardware resources. To address the above issues, we introduce a method that can learn binary and ternary weights during the training phase to facilitate hardware implementations of RNNs. As a result, using this approach replaces all multiply-accumulate operations by simple accumulations, bringing significant benefits to custom hardware in terms of silicon area and power consumption. On the software side, we evaluate the performance (in terms of accuracy) of our method using long short-term memories (LSTMs) on various sequential models including sequence classification and language modeling. We demonstrate that our method achieves competitive results on the aforementioned tasks while using binary/ternary weights during the runtime. On the hardware side, we present custom hardware for accelerating the recurrent computations of LSTMs with binary/ternary weights. Ultimately, we show that LSTMs with binary/ternary weights can achieve up to 12x memory saving and 10x inference speedup compared to the full-precision implementation on an ASIC platform.

View on arXivView PDF

Code Implementations(1)

GPL-2.0

Learning-Recurrent-Binary-Ternary-Weights

131PythonSep 25, 20187 years agoGPL-2.0

Similar Papers

Cite this paper

@article{ardakani2018learning,
  title  = {Learning Recurrent Binary/Ternary Weights},
  author = {Arash Ardakani and Zhengyun Ji and Sean C. Smithson and Brett H. Meyer and Warren J. Gross},
  year   = {2018},
  eprint = {1809.11086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.11086}
}

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

Discussion