Dynamic Precision Analog Computing for Neural Networks

Sahaj Garg, Joe Lou, Anirudh Jain, Mitchell Nahmias
2/12/2021
cs.LGcs.ET

Official code: sahajgarg/low_precision_nn (13 stars, Python, last commit 2021-02-24).

Abstract

Analog electronic and optical computing exhibit tremendous advantages over digital computing for accelerating deep learning when operations are executed at low precision. In this work, we derive a relationship between analog precision, which is limited by noise, and digital bit precision.

Show full abstract

We propose extending analog computing architectures to support varying levels of precision by repeating operations and averaging the result, decreasing the impact of noise. Such architectures enable programmable tradeoffs between precision and other desirable performance metrics such as energy efficiency or throughput. To utilize dynamic precision, we propose a method for learning the precision of each layer of a pre-trained model without retraining network weights. We evaluate this method on analog architectures subject to a variety of noise sources such as shot noise, thermal noise, and weight noise and find that employing dynamic precision reduces energy consumption by up to 89% for computer vision models such as Resnet50 and by 24% for natural language processing models such as BERT. In one example, we apply dynamic precision to a shot-noise limited homodyne optical neural network and simulate inference at an optical energy consumption of 2.7 aJ/MAC for Resnet50 and 1.6 aJ/MAC for BERT with <2% accuracy degradation.

View on arXivView PDF

Code Implementations(1)

132Python, ShellFeb 10, 20215 years ago

Similar Papers

Cite this paper

@article{garg2021dynamic,
  title  = {Dynamic Precision Analog Computing for Neural Networks},
  author = {Sahaj Garg and Joe Lou and Anirudh Jain and Mitchell Nahmias},
  year   = {2021},
  eprint = {2102.06365},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06365}
}

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

Discussion