Skip to main content
QUICK REVIEW

[Paper Review] AnalogNets: ML-HW Co-Design of Noise-robust TinyML Models and Always-On Analog Compute-in-Memory Accelerator

Chuteng Zhou, Fernando Garćıa-Redondo|arXiv (Cornell University)|Nov 10, 2021
Advanced Memory and Neural ComputingEngineering45 references8 citations
TL;DR

AnalogNets introduces a co-designed TinyML framework combining noise-robust neural network architectures and an always-on analog compute-in-memory (CiM) accelerator using phase-change memory (PCM). The approach achieves 8.58 TOPS/W and 4.37 TOPS/W for keyword spotting and visual wake words, respectively, with only 0.8%/1.2% accuracy degradation after 24 hours of PCM conductance drift, demonstrating high energy efficiency and robustness on real hardware.

ABSTRACT

Always-on TinyML perception tasks in IoT applications require very high energy efficiency. Analog compute-in-memory (CiM) using non-volatile memory (NVM) promises high efficiency and also provides self-contained on-chip model storage. However, analog CiM introduces new practical considerations, including conductance drift, read/write noise, fixed analog-to-digital (ADC) converter gain, etc. These additional constraints must be addressed to achieve models that can be deployed on analog CiM with acceptable accuracy loss. This work describes $ extit{AnalogNets}$: TinyML models for the popular always-on applications of keyword spotting (KWS) and visual wake words (VWW). The model architectures are specifically designed for analog CiM, and we detail a comprehensive training methodology, to retain accuracy in the face of analog non-idealities, and low-precision data converters at inference time. We also describe AON-CiM, a programmable, minimal-area phase-change memory (PCM) analog CiM accelerator, with a novel layer-serial approach to remove the cost of complex interconnects associated with a fully-pipelined design. We evaluate the AnalogNets on a calibrated simulator, as well as real hardware, and find that accuracy degradation is limited to 0.8$\%$/1.2$\%$ after 24 hours of PCM drift (8-bit) for KWS/VWW. AnalogNets running on the 14nm AON-CiM accelerator demonstrate 8.58/4.37 TOPS/W for KWS/VWW workloads using 8-bit activations, respectively, and increasing to 57.39/25.69 TOPS/W with $4$-bit activations.

Motivation & Objective

  • To address the challenge of deploying accurate, low-power TinyML models on analog compute-in-memory (CiM) hardware with non-idealities like conductance drift and ADC noise.
  • To co-design neural network architectures and hardware accelerators specifically for analog CiM, ensuring robustness to analog non-idealities and low-precision quantization.
  • To develop a minimal-area, programmable PCM-based CiM accelerator (AON-CiM) with a layer-serial execution model to reduce interconnect complexity.
  • To achieve high energy efficiency and minimal accuracy degradation under real-world analog hardware constraints, particularly for always-on IoT applications.
  • To demonstrate that systematic ML-HW co-design enables near-floating-point accuracy on analog CiM with orders-of-magnitude better energy efficiency than MCU-based solutions.

Proposed method

  • Proposes AnalogNets: custom TinyML model architectures for keyword spotting (KWS) and visual wake words (VWW) specifically optimized for analog CiM hardware.
  • Employs a comprehensive training methodology that incorporates simulated analog non-idealities—such as conductance drift, read/write noise, and low-precision ADCs—during backpropagation to improve robustness.
  • Introduces the AON-CiM accelerator, a 14nm CMOS-based, phase-change memory (PCM)-based CiM hardware with a novel layer-serial execution model to eliminate complex interconnects of fully pipelined designs.
  • Uses a PWM-based DAC and low-bitwidth ADCs to minimize area and power, with performance scaled across 8-, 6-, and 4-bit activation precision.
  • Employs a calibrated simulator and real PCM testchip for evaluation, validating accuracy and energy efficiency under real-world analog conditions.
  • Applies aggressive quantization and model compression techniques, including pruning and weight sharing, to fit models within the constraints of on-chip NVM and low-precision computation.

Experimental results

Research questions

  • RQ1How can TinyML models be co-designed with analog CiM hardware to maintain high accuracy despite conductance drift and analog noise?
  • RQ2What is the achievable energy efficiency of a fully on-chip, always-on analog CiM accelerator for real-time TinyML inference tasks?
  • RQ3Can a layer-serial execution model in analog CiM reduce hardware area and complexity without sacrificing throughput or energy efficiency?
  • RQ4How does aggressive quantization (down to 4-bit activations) affect model accuracy when combined with analog non-idealities and low-precision ADCs?
  • RQ5To what extent can ML-HW co-design close the accuracy gap between digital baselines and analog CiM deployments in always-on TinyML applications?

Key findings

  • AnalogNets achieve 95.6% accuracy on the KWS task and 85.7% on VWW after 24 hours of PCM conductance drift, with only 0.8% and 1.2% accuracy degradation, respectively.
  • The AON-CiM accelerator achieves 8.58 TOPS/W and 4.37 TOPS/W for KWS and VWW at 8-bit activation precision, increasing to 57.39 TOPS/W and 25.69 TOPS/W at 4-bit precision.
  • Throughput scales with layer size and aspect ratio, with larger, taller layers achieving higher TOPS/W due to amortized DAC/ADC energy costs.
  • The layer-serial design reduces area by eliminating complex interconnects, achieving a total chip area of 3.2mm² with 3.07mm² dedicated to the CiM array.
  • Energy efficiency is improved by four orders of magnitude compared to MCU-based TinyML: 8.2 μJ/inference on AON-CiM versus 48.6 mJ/inference on MCU for KWS.
  • The results demonstrate that systematic ML-HW co-design enables near-ideal model accuracy on analog CiM hardware, making it viable for always-on, energy-constrained IoT applications.

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.