Skip to main content
QUICK REVIEW

[Paper Review] DNN+NeuroSim V2.0: An End-to-End Benchmarking Framework for Compute-in-Memory Accelerators for On-chip Training

Xiaochen Peng, Shanshi Huang|arXiv (Cornell University)|Mar 13, 2020
Advanced Memory and Neural ComputingEngineering21 references7 citations
TL;DR

DNN+NeuroSim V2.0 is an end-to-end benchmarking framework that integrates PyTorch with NeuroSim to model compute-in-memory (CIM) accelerators for on-chip training, incorporating non-ideal device behaviors like nonlinearity, asymmetry, and variation in SRAM and eNVM devices. It enables accurate evaluation of training accuracy, energy efficiency, throughput, and area across VGG-8 on CIFAR-10, revealing critical device specifications for viable on-chip training.

ABSTRACT

DNN+NeuroSim is an integrated framework to benchmark compute-in-memory (CIM) accelerators for deep neural networks, with hierarchical design options from device-level, to circuit-level and up to algorithm-level. A python wrapper is developed to interface NeuroSim with a popular machine learning platform: Pytorch, to support flexible network structures. The framework provides automatic algorithm-to-hardware mapping, and evaluates chip-level area, energy efficiency and throughput for training or inference, as well as training/inference accuracy with hardware constraints. Our prior work (DNN+NeuroSim V1.1) was developed to estimate the impact of reliability in synaptic devices, and analog-to-digital converter (ADC) quantization loss on the accuracy and hardware performance of inference engines. In this work, we further investigated the impact of the analog emerging non-volatile memory non-ideal device properties for on-chip training. By introducing the nonlinearity, asymmetry, device-to-device and cycle-to-cycle variation of weight update into the python wrapper, and peripheral circuits for error/weight gradient computation in NeuroSim core, we benchmarked CIM accelerators based on state-of-the-art SRAM and eNVM devices for VGG-8 on CIFAR-10 dataset, revealing the crucial specs of synaptic devices for on-chip training. The proposed DNN+NeuroSim V2.0 framework is available on GitHub.

Motivation & Objective

  • To enable accurate, end-to-end benchmarking of compute-in-memory (CIM) accelerators for on-chip deep neural network (DNN) training.
  • To address the lack of comprehensive modeling for non-ideal device behaviors—such as nonlinearity, asymmetry, and device-to-device variation—during weight updates in emerging non-volatile memory (eNVM) and SRAM-based CIM architectures.
  • To integrate a Python wrapper with PyTorch for flexible network structure support and automatic algorithm-to-hardware mapping.
  • To evaluate chip-level performance metrics including area, energy efficiency, throughput, and training accuracy under hardware constraints.
  • To identify critical device-level specifications that enable viable on-chip DNN training using state-of-the-art SRAM and eNVM technologies.

Proposed method

  • Developed a Python wrapper to interface NeuroSim with PyTorch, enabling dynamic and flexible DNN model integration.
  • Extended NeuroSim’s core to model non-ideal synaptic device behaviors, including nonlinearity, asymmetry, and cycle-to-cycle variation during weight update operations.
  • Incorporated peripheral circuits for error and gradient computation to simulate training dynamics in CIM architectures.
  • Enabled automatic algorithm-to-hardware mapping to map DNN layers to CIM hardware configurations.
  • Integrated ADC quantization loss modeling and reliability effects from prior versions to support comprehensive training accuracy estimation.
  • Conducted end-to-end simulations on VGG-8 using the CIFAR-10 dataset to evaluate performance and accuracy trade-offs.

Experimental results

Research questions

  • RQ1How do non-ideal device characteristics—such as nonlinearity, asymmetry, and variation—affect the accuracy and convergence of on-chip DNN training in CIM accelerators?
  • RQ2What are the critical device-level specifications of SRAM and eNVM that enable accurate and efficient on-chip training?
  • RQ3How does the inclusion of peripheral circuits for gradient and error computation impact the overall training performance and energy efficiency of CIM accelerators?
  • RQ4To what extent do ADC quantization and device variability degrade training accuracy in CIM-based systems?
  • RQ5How do different CIM architectures based on SRAM and eNVM compare in terms of energy efficiency, throughput, and accuracy for on-chip training?

Key findings

  • Non-ideal device behaviors such as nonlinearity and asymmetry significantly degrade training accuracy, especially in eNVM-based CIM accelerators.
  • Device-to-device and cycle-to-cycle variations in weight update operations introduce substantial performance variability, limiting the feasibility of on-chip training without correction mechanisms.
  • The framework reveals that eNVM devices require tighter control over nonlinearity and asymmetry to achieve acceptable accuracy on VGG-8 with CIFAR-10.
  • SRAM-based CIM accelerators demonstrate better robustness to device variations compared to eNVM, though with higher area and energy overhead.
  • ADC quantization loss remains a major contributor to accuracy degradation, particularly in low-precision training regimes.
  • The integration of peripheral circuits for error and gradient computation enables accurate simulation of backpropagation in CIM, validating the framework’s capability to model real training dynamics.

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.