Skip to main content
QUICK REVIEW

[Paper Review] Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based accelerators

Malte J. Rasch, Charles Mackin|arXiv (Cornell University)|Feb 16, 2023
Advanced Memory and Neural ComputingEngineering3 citations
TL;DR

This paper proposes hardware-aware (HWA) training to enable accurate deep neural network (DNN) inference on in-memory computing (AIMC) accelerators by simulating realistic nonidealities during retraining. By injecting noise into weights, inputs, and outputs and learning scale factors, the method achieves iso-accuracy across diverse DNNs—including CNNs, RNNs, and transformers—on AIMC hardware despite analog imperfections.

ABSTRACT

Analog in-memory computing (AIMC) -- a promising approach for energy-efficient acceleration of deep learning workloads -- computes matrix-vector multiplications (MVMs) but only approximately, due to nonidealities that often are non-deterministic or nonlinear. This can adversely impact the achievable deep neural network (DNN) inference accuracy as compared to a conventional floating point (FP) implementation. While retraining has previously been suggested to improve robustness, prior work has explored only a few DNN topologies, using disparate and overly simplified AIMC hardware models. Here, we use hardware-aware (HWA) training to systematically examine the accuracy of AIMC for multiple common artificial intelligence (AI) workloads across multiple DNN topologies, and investigate sensitivity and robustness to a broad set of nonidealities. By introducing a new and highly realistic AIMC crossbar-model, we improve significantly on earlier retraining approaches. We show that many large-scale DNNs of various topologies, including convolutional neural networks (CNNs), recurrent neural networks (RNNs), and transformers, can in fact be successfully retrained to show iso-accuracy on AIMC. Our results further suggest that AIMC nonidealities that add noise to the inputs or outputs, not the weights, have the largest impact on DNN accuracy, and that RNNs are particularly robust to all nonidealities.

Motivation & Objective

  • To address the challenge of maintaining DNN inference accuracy on analog in-memory computing (AIMC) accelerators due to nonidealities like noise and drift.
  • To develop a generalizable, hardware-aware training framework that improves robustness without requiring device-specific calibration.
  • To systematically evaluate the sensitivity of various DNN architectures to different types of AIMC nonidealities.
  • To demonstrate that large-scale DNNs can achieve near-identical accuracy on AIMC as in full-precision floating-point implementations.

Proposed method

  • Introduces a highly realistic AIMC crossbar model with nonidealities including input/output noise, conductance drift, and device variability.
  • Applies hardware-aware training by injecting stochastic noise into the forward pass during backpropagation using SGD.
  • Learns per-output scale factors (γi) and input clipping bounds (cinput) via SGD to maintain signal-to-noise ratio and dynamic range.
  • Uses knowledge distillation with a full-precision FP teacher model to accelerate convergence for large-vocabulary models.
  • Employs adaptive weight mapping and clipping to constrain analog weights within normalized conductance units (−1 to 1).
  • Applies linear ramp-up of weight noise magnitude over epochs to improve robustness during training.

Experimental results

Research questions

  • RQ1Can hardware-aware training achieve iso-accuracy for diverse DNN architectures on AIMC accelerators despite analog nonidealities?
  • RQ2Which types of nonidealities—input noise, output noise, or weight noise—most severely impact DNN inference accuracy on AIMC?
  • RQ3How do different DNN topologies (CNNs, RNNs, transformers) compare in robustness to AIMC nonidealities?
  • RQ4To what extent can a single HWA-trained model be deployed across multiple AIMC devices without device-specific calibration?

Key findings

  • HWA training enables iso-accuracy inference for large-scale DNNs—including ResNet-50, BERT-base, and LSTM-based models—on AIMC hardware.
  • RNNs show exceptional robustness to all nonidealities, outperforming CNNs and transformers in accuracy retention under noise.
  • Nonidealities affecting inputs or outputs (e.g., read noise, input quantization) have a larger impact on DNN accuracy than weight-related nonidealities.
  • Input clipping bounds and scale factors (γi) are effectively learned during HWA training, improving signal-to-noise ratio and model stability.
  • Knowledge distillation significantly accelerates convergence for large-output models like LSTMs, improving training efficiency.
  • The method achieves consistent performance across multiple runs and is broadly deployable without device-specific tuning.

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.