Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Precision Analog Computing for Neural Networks

Sahaj Garg, Joe Lou|arXiv (Cornell University)|Feb 12, 2021
Neural Networks and Reservoir ComputingComputer Science4 citations
TL;DR

This paper proposes dynamic precision analog computing for neural networks by enabling programmable tradeoffs between energy efficiency and accuracy through repeated operations and averaging to reduce noise impact. It achieves up to 89% energy reduction in ResNet50 and 24% in BERT by learning optimal layer-wise precision without retraining, demonstrating sub-3 aJ/MAC optical inference with <2% accuracy loss.

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. 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 &lt;2% accuracy degradation.

Motivation & Objective

  • To address the underutilization of dynamic precision in analog neural network accelerators, which currently offer fixed or statically configured precision.
  • To enable programmable precision scaling in analog hardware by trading off energy, throughput, or area to improve signal-to-noise ratio.
  • To develop a method for determining optimal layer-wise precision in pre-trained models without retraining, based on hardware noise constraints.
  • To evaluate the energy efficiency gains of dynamic precision across diverse neural network architectures and noise sources.
  • To demonstrate that dynamic precision enables ultra-low-energy inference in analog and optical neural processors.

Proposed method

  • Derive a theoretical relationship between analog noise power and effective bit precision by equating it to quantization noise power.
  • Use redundant coding—repeating operations in time or space and averaging results—to improve effective precision at the cost of increased energy.
  • Formulate a constrained optimization problem to maximize model accuracy subject to a total energy budget per layer, with energy/MAC as a tunable variable.
  • Convert the energy constraint into a penalty function and solve via gradient descent to learn optimal energy allocations per layer.
  • Apply per-channel weight quantization and per-tensor activation quantization with percentile clipping for thermal noise robustness.
  • Simulate inference on ResNet50, BERT, and MobileNetV2 under shot noise, thermal noise, and weight noise to evaluate energy-accuracy tradeoffs.

Experimental results

Research questions

  • RQ1Can dynamic precision in analog computing architectures significantly reduce energy consumption while maintaining high model accuracy?
  • RQ2How does the effective bit precision of analog systems vary across different neural network layers under various noise sources?
  • RQ3What is the optimal layer-wise precision allocation strategy for minimizing energy consumption with minimal accuracy degradation?
  • RQ4To what extent can redundant operation repetition improve precision in analog neural network accelerators?
  • RQ5Can dynamic precision be effectively learned without retraining network weights, and how does it compare to fixed-precision analog designs?

Key findings

  • Dynamic precision reduces energy consumption by up to 89% for ResNet50 and 24% for BERT compared to fixed-precision analog inference.
  • In shot-noise-limited homodyne optical neural networks, inference achieves 2.7 aJ/MAC for ResNet50 and 1.6 aJ/MAC for BERT with less than 2% accuracy degradation.
  • The method enables optimal energy/MAC allocation per layer through gradient-based learning, without retraining model weights.
  • Percentile clipping of activations improves accuracy under thermal noise, especially at low precision, by reducing input dynamic range.
  • Layers with high MAC counts do not dominate total energy consumption, even when assigned higher energy/MAC, due to their low per-MAC cost.
  • The approach is robust to different noise types, including shot noise, thermal noise, and weight noise, across diverse architectures like ResNet50, BERT, and MobileNetV2.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.