Unrolling Ternary Neural Networks

Stephen Tridgell, Martin Kumm, Martin Hardieck, David Boland, Duncan Moss +2 more
9/9/2019
eess.SPcs.LGcs.NE

Official code: da-steve101/binary_connect_cifar (11 stars, GPL-3.0, last commit 2019-11-04).

Abstract

The computational complexity of neural networks for large scale or real-time applications necessitates hardware acceleration. Most approaches assume that the network architecture and parameters are unknown at design time, permitting usage in a large number of applications. This paper demonstrates, for the case where the neural network architecture and ternary weight values are known a priori, that extremely high throughput implementations of neural network inference can be made by customising the datapath and routing to remove unnecessary computations and data movement. This approach is ideally suited to FPGA implementations as a specialized implementation of a trained network improves efficiency while still retaining generality with the reconfigurability of an FPGA. A VGG style network with ternary weights and fixed point activations is implemented for the CIFAR10 dataset on Amazon's AWS F1 instance. This paper demonstrates how to remove 90% of the operations in convolutional layers by exploiting sparsity and compile-time optimizations. The implementation in hardware achieves 90.9 +/- 0.1% accuracy and 122 k frames per second, with a latency of only 29 us, which is the fastest CNN inference implementation reported so far on an FPGA.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

An implementation of a BinaryConnect network for cifar10

111VHDL, ScalaJun 22, 20176 years agoGPL-3.0

Similar Papers

Cite this paper

@article{tridgell2019unrolling,
  title  = {Unrolling Ternary Neural Networks},
  author = {Stephen Tridgell and Martin Kumm and Martin Hardieck and David Boland and Duncan Moss and Peter Zipf and Philip H. W. Leong},
  year   = {2019},
  eprint = {1909.04509},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.04509}
}

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

Discussion