Skip to main content
QUICK REVIEW

[Paper Review] Memristor-based Deep Convolution Neural Network: A Case Study

Fan Zhang, Miao Hu|arXiv (Cornell University)|Sep 14, 2018
Advanced Memory and Neural ComputingEngineering11 references7 citations
TL;DR

This paper proposes a realistic memristor-based implementation of ResNet-20 using an improved conversion algorithm and experiment-verified circuit simulation to map convolutional kernels to 1T1M crossbars. It demonstrates that 8-bit ADC/DAC quantization is essential to preserve classification accuracy, preventing error accumulation across layers in end-to-end simulations with sub-1.2% worst-case relative error.

ABSTRACT

In this paper, we firstly introduce a method to efficiently implement large-scale high-dimensional convolution with realistic memristor-based circuit components. An experiment verified simulator is adapted for accurate prediction of analog crossbar behavior. An improved conversion algorithm is developed to convert convolution kernels to memristor-based circuits, which minimizes the error with consideration of the data and kernel patterns in CNNs. With circuit simulation for all convolution layers in ResNet-20, we found that 8-bit ADC/DAC is necessary to preserve software level classification accuracy.

Motivation & Objective

  • To address the lack of accurate analog circuit simulation for large-scale memristor crossbar arrays in CNNs.
  • To develop a practical method for mapping high-dimensional convolution kernels to 2D memristor crossbars using realistic hardware components.
  • To evaluate whether state-of-the-art CNNs like ResNet-20 can function reliably when implemented with analog memristor crossbars.
  • To determine the minimum ADC/DAC bit-width required to preserve classification accuracy despite non-idealities and error propagation.

Proposed method

  • An improved kernel-to-conductance conversion algorithm is developed that accounts for memristor non-idealities, data sparsity, and kernel patterns.
  • An experiment-verified simulator is used to model analog crossbar behavior, replacing oversimplified models with realistic SPICE-based accuracy.
  • A 1T1M crossbar architecture is employed, where input voltages are applied to rows and output currents are read from columns to perform analog vector-matrix multiplication.
  • A calibration stage is introduced using 1st-order polynomial fitting on 10 randomly selected input samples to correct crossbar output deviations.
  • The simulation includes all convolution layers in ResNet-20 using a subset of CIFAR-10 (150 images), with ADC/DAC quantization varied across 4-, 6-, and 8-bit settings.
  • Error propagation is tracked layer-by-layer to assess cumulative impact on final classification accuracy.

Experimental results

Research questions

  • RQ1Can a realistic analog circuit simulation accurately predict the behavior of memristor crossbars in large-scale CNNs?
  • RQ2What is the minimum ADC/DAC bit-width required to maintain software-level classification accuracy in memristor-based CNN inference?
  • RQ3How do data sparsity and kernel type affect the accuracy of memristor crossbar implementations?
  • RQ4To what extent do non-idealities such as wire resistance and device variability impact end-to-end classification performance?

Key findings

  • The improved conversion algorithm reduces mean relative error by approximately 50% compared to the original method, especially under low ideal output values and high data sparsity.
  • The method achieves a mean relative error of 0.25% (equivalent to ~8.6 bits) and a worst-case relative error of 1.2% (~6.4 bits) for a 576×64 crossbar.
  • Without ADC/DAC quantization, error accumulates across layers and degrades classification accuracy, making it impractical for large-scale deployment.
  • 6-bit ADC/DAC increases the error rate from 10% to 17.3%, while 4-bit ADC/DAC increases it from 11.3% to 88.7%, indicating severe degradation.
  • 8-bit ADC/DAC provides the best balance, preserving or even slightly improving classification accuracy compared to the software baseline.
  • The simulation results confirm that 8-bit quantization is necessary to prevent classification degradation in memristor-based CNN inference.

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.