원시데이터 수집 시스템
선정목록으로

Design Exploration of ReRAM-Based Crossbar for AI Inference

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Yasmin Halawani — System-on-Chip Center (SoCC), Khalifa University, Abu Dhabi, United Arab Emirates
  2. Baker Mohammad — System-on-Chip Center (SoCC), Khalifa University, Abu Dhabi, United Arab Emirates
  3. Hani Saleh — System-on-Chip Center (SoCC), Khalifa University, Abu Dhabi, United Arab Emirates
DOI
10.1109/access.2021.3076445
저널
IEEE Access
발행년도
2021
발행기관
Institute of Electrical and Electronics Engineers
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2021.3076445
토픽
Conducting polymers and applications
OpenAlex ID
W3159298738

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

ReRAM-based crossbar designs utilizing mixed-signal implementation has gained importance due to their low power, small size, low cost, and high throughput especially for multiply-and-add operations in AI-related applications. This paper provides a framework with associated code for analyzing the impact of ReRAM device variation and post-training analog conductance quantization that has not been fully explored for pre-trained network accelerators. A detailed study with end-to-end implementation is presented, ranging from mapping the pre-trained DNN weights to quantized crossbar conductance values and into final classification with the presence of variation. Monte Carlo analysis was performed to better analyze the impact of the different parameters on the final accuracy without being device-specific. The work assumes different conductance value variations, different conductance dynamic ranges, and various device quantization levels (QLs). MNIST and CIFAR-10 data sets were used in this study for ANN and CNN, respectively. Results show that for simple ANN, the accuracy drop due to quantization was ~ 2% at 64-QLs. While for CNN, the decrease in classification accuracy was around 10% with the same number of levels. Moreover, weight variation might cause a ~ 5% and ~ 8% drop in classification accuracy for ANN with 5% and CNN with 3% variation, respectively. The study confirms that increasing the number of levels with small variation results in near-optimal accuracy. However, the increase in accuracy saturates at an upper limit. The amount of distortion propagated through the layers is different in the two cases. It is dependent on the complexity of input data and network structure, such as the size of the neurons in each layer, the number of layers, and the number of channels and filters at each stage. This contribution is the first to provide the framework to explore the implication that emphasizes on device-independent post-training DNN quantization and weight variation on classification accuracy. This helps explore design trade-offs especially for edge devices in cases where there is no access to the training set to the end-user due to security or cost issues for pre-trained networks.

본문 58,925자

본문 펼치기
Received April 13, 2021, accepted April 26, 2021, date of publication April 29, 2021, date of current version May 18, 2021. _Digital Object Identifier 10.1109/ACCESS.2021.3076445_ # Design Exploration of ReRAM-Based Crossbar for AI Inference YASMIN HALAWANI, (Member, IEEE), BAKER MOHAMMAD, (Senior Member, IEEE), AND HANI SALEH, (Senior Member, IEEE) System-on-Chip Center (SoCC), Department of Electrical and Computer Engineering, Khalifa University, Abu Dhabi, United Arab Emirates Corresponding author: Baker Mohammad (baker.mohammad@ku.ac.ae) This work was supported in part by the Khalifa University Competitive Internal Research Award (CIRA) under Award CIRA-2019-026, and in part by the System-on-Chip Center under Award RC2-2018-020. ABSTRACT ReRAM-based crossbar designs utilizing mixed-signal implementation has gained importance due to their low power, small size, low cost, and high throughput especially for multiply-and-add operations in AI-related applications. This paper provides a framework with associated code for analyzing the impact of ReRAM device variation and post-training analog conductance quantization that has not been fully explored for pre-trained network accelerators. A detailed study with end-to-end implementation is presented, ranging from mapping the pre-trained DNN weights to quantized crossbar conductance values and into final classification with the presence of variation. Monte Carlo analysis was performed to better analyze the impact of the different parameters on the final accuracy without being device-specific. The work assumes different conductance value variations, different conductance dynamic ranges, and various device quantization levels (QLs). MNIST and CIFAR-10 data sets were used in this study for ANN and CNN, respectively. Results show that for simple ANN, the accuracy drop due to quantization was ∼ 2% at 64-QLs. While for CNN, the decrease in classification accuracy was around 10% with the same number of levels. Moreover, weight variation might cause a ∼ 5% and ∼ 8% drop in classification accuracy for ANN with 5% and CNN with 3% variation, respectively. The study confirms that increasing the number of levels with small variation results in near-optimal accuracy. However, the increase in accuracy saturates at an upper limit. The amount of distortion propagated through the layers is different in the two cases. It is dependent on the complexity of input data and network structure, such as the size of the neurons in each layer, the number of layers, and the number of channels and filters at each stage. This contribution is the first to provide the framework to explore the implication that emphasizes on device-independent post-training DNN quantization and weight variation on classification accuracy. This helps explore design trade-offs especially for edge devices in cases where there is no access to the training set to the end-user due to security or cost issues for pre-trained networks. INDEX TERMS Device variation, in-memory computing, neural network, post-training, quantization, ReRAM. I. INTRODUCTION Emerging applications related to Artificial Intelligence (AI) rely on complex machine learning (ML) algorithms to offer high performance in executing segmentation and classification tasks. Machine learning models have two phases: learning and inference that can be both computationally and memory-intensive [1]. The associate editor coordinating the review of this manuscript and approving it for publication was Sun Junwei . Graphics processing units (GPUs) were introduced with hundreds or thousands of smaller cores to enable massively parallel computing to increase throughput in realizing ANN applications. However, it still suffers from considerable bus access time, high energy consumption, and memory bottleneck, which is a big issue for edge devices. Recently, embedded field-programmable gate arrays (FPGAs) attract more attention as a low power solution for ML inference [2]. 3D integration of memory processing is also investigated. The consensus in the hardware community is that training phase for edge devices need to be done offline and with access to FIGURE 1. Multiply-and-add operations that are found in applications such as ANN, shown in a), can be realized by a multiplier, an adder, and a memory as demonstrated in b). While in c) a ReRAM-based crossbar architecture is presented where a single device can substitute the three blocks from CMOS implementation. Each device in the crossbar represents a weight from the layer of the network. Moreover, the device may have certain quantization levels (QLs) in its dynamic range (DR), as illustrated in d). Due to intrinsic device variation, the target weight value programmed (G1, G2, G3 and G4) on the ReRAM will have a ± certain deviation, which impacts the overall result. high performance and large memory system. However, there is a need for inference to be implemented at the edge due to limited bandwidth, requirements for low latency and in some cases, security [3]. This presents a new challenge to implement inference on the edge due to their limited performance and power budget [4]. Luckily, most of edge device inference applications can tolerate accuracy loss to some extent, and this can be exploited for hardware trade-off to attain speed and power advantages. Neural network accelerator is the main core design in an AI inference engine. Their main building blocks consist of multiply-and-add (MAC) blocks and memory. Many architectures use in-memory computing (IMC) with both traditional and emerging technologies [4]–[6]. ReRAM is a promising technology for building efficient IMC architectures for accelerating artificial neural networks, as demonstrated in Fig. 1 [7], [8]. Besides computation, the sensitivity of the device’s resistivity to operating conditions and surrounding environment provides great potential in the sensing and security applications [9], [10]. These devices suffer from intrinsic variation that can degrade the performance of the application. ReRAM-devices are built in a crossbar fashion where they inherently support parallel computations, and can naturally realize vector-matrix operations with significant savings in energy, area and achieve faster execution time. Moreover, these devices can be configured to support analog or mixed-signal type IMC operations [11], [12]. Furthermore, the low power requirement for computing with ReRAM devices makes them an ideal candidate for resource-constrained Internetof-Things (IoTs) nodes. An essential aspect in the design and implementation of a neural network (NN) is the sensitivity of the output to the variations in its parameters. The sensitivity of the results are affected by the structural configuration such as the number of layers and the number of neurons per layer. Also, the hardware implementations of NNs are susceptible to imprecision and unavoidable variations in the inputs and weights of the network due to the physical limitation of digital and/or analog components. The main contribution of this work is to provide a methodology that incorporates the device’s intrinsic variation, dynamic range and available conductance states into DNN model to study the impact of devices characteristics and post-training quantization on the classification accuracy of analog accelerators. The work is inspired from [13], so in our case we envision a lookup table with resistance-level approach based on the measurements data of our mentioned device. To the best of our knowledge, no work that emphasizes on device-independent post-training NN quantization has been reported before. This helps when there is no access to the training sets to the end-user for security issues and in generic cases where the network has already been trained. This will support a vertical market where testing set can be used for multiple devices with different requirements for accuracy, power, and speed. The rest of the paper is organized as follows: Section II provides insight into the quantization technique as an efficient solution for Hardware-based inference at the edge. Section III describes the work-flow utilized from building and training the neural network to statistically evaluating the quantized ReRAM-based NN. After that, Section IV presents a full example of a pre-trained ANN following the flowchart process from training the network to evaluating the post-quantized ReRAM ANN. Then, the obtained ANN classification results from exploring the different design points from the device’s dynamic range, and weight variation effect are demonstrated in Section V. The work is then expanded to study more complex network structure by evaluating CIFAR-10 data set on a pre-trained CNN in Section VI. Finally, the paper is concluded in section VII and provide some future work. II. OVERVIEW OF EFFICIENT INFERENCE FOR EDGE DEVICE In addition to selecting the right algorithm for the target application, further optimization to reduce computing complexity and achieve lower power happens at all levels. Some techniques to reduce the number of operations, such as pruning and quantization, are proposed to achieve efficient hardware inference on the devices [14]. This paper focuses on utilizing the quantization approach and emerging ReRAM crossbar architecture to achieve power and area efficiency. It is another compression technique besides pruning, where inputs and/or weights for the NN can be represented with a lower number of bits. Quantization is powerful as it requires a smaller number of bits to perform a significant amount of MAC operations in the neural network. Inputs, weights, and activation functions can be quantized to achieve savings in memory, computational resources, speedup, and number of MAC operations. Utilizing an extremely compact representation such as 2-bits has shown 58× reduction in convolution operations and 32× savings in memory. This comes at the cost of 12.5% loss in accuracy compared to the full-precision floating-point [15], [16]. However, aggressive quantization generally entails a severe penalty in terms of accuracy and often requires retraining the network or resorting to higher precision quantization. Trained quantization can help fine-tune the weights to the available representation, but this comes at the expense of execution time and resources. Hence, in [17] a trade-off between accuracy and number of bits used for the inputs is presented. They showed that a 7% reduction in accuracy compared to the full-precision version was obtained by using ternary inputs and binary weights. Also, higher precision is required during the weight update step, which means that other specific hardware units might be needed. In [16], authors indicated the need for a quantization-aware approach to reduce the quantization error. This is based on the statistical characteristics of weight distribution. A PArameterized Clipping acTivation (PACT) technique uses a parameter that is optimized during training to find the right quantization scale [18]. They focus on quantizing the activation functions instead of the weights as they are relatively larger in size. A Hardware-Aware Automated Quantization framework is demonstrated in [19]. It is based on the concept that each layer in a CNN pipeline requires a different optimal bitwidth resolution for the weights and the activation function for efficient implementation over different hardware architectures. PytorX, a simulation framework that considers Stuck-At-Fault, IR-drop, thermal noise, shot noise, and random telegraph noise, is proposed in [20]. Also, they show injecting noise during training gives better results as the NN adapts to it. In [21] RxNN, an extension to the Caffe learning framework, is presented to evaluate large-scale DNNs on resistive crossbar systems. It splits and maps the network’s computations into crossbar operations and evaluates them using a fast crossbar model. It takes into account the non-linear DAC/ADC converters and the equivalent non-ideal conductance matrix for the crossbar. Their results show that re-training can partly restore the degradation in accuracy. An end-to-end framework for data-dependent crossbar modeling along with a PyTorch-based functional simulator considering tiling, and bit-slicing is proposed in [22]. Data-dependent non-idealities can have a pronounced effect on the crossbar outputs, particularly at higher operating voltages. The neural network was trained to learn the transfer characteristics of the non-ideal crossbar. Mitigation techniques for such non-idealities strongly depend upon the modeling approach and requires retraining of the neural network weights. They for example show that lower ON/OFF conductance ratio leads to high relative error between the ideal output and the non-ideal obtained output. This is due to the fact that for a given ON resistance, the average resistance in the crossbar is low for lower ON/OFF ratio. In this paper, authors demonstrate why, how, and where to prune neural networks for superior exploitation of the crossbar’s underlying parallelism model [23]. Computation costs can be improved by aligning the network design space with the underlying hardware’s parallelism model. The key take-away from these deductions is that it is possible to achieve both higher accuracies and lower computation costs by considering the target hardware’s parallelism model along with the network architecture search space. In [24], the authors have studied the impact of the ReRAM device on the training/inference accuracy of CIFAR-10 using VGG-Net by integrating the device properties in the TensorFlow. The examined characteristics included the device’s non-linearity and asymmetry of conductance tuning, conductance variations, endurance, and the data retention for the inference phase. One of their findings is that the conductance range variation does not degrade the training accuracy; instead, a small variation can even reduce the accuracy loss introduced by asymmetry. Authors in [25], presents analytical solutions to quantize both activations and weights while minimizing quantization error at the tensor level. They utilize a 4-bit post-training quantization approach for faster deployment. A framework for optimized deployment of NN on embedded devices where a sensitivity analysis of each layer for quantization is performed [26]. This helps in quantizing each layer differently than the other to help maintain the performance of the NN and at the same time gain savings in the memory storage and traffic. A piecewise linear quantization method enables accurate post-training quantization for a low number of bits in [27]. Their approach divides the Gaussian distribution of the NN weights into two regions; the condensed center and the tail. Several works in literature included circuit-level details in their frameworks. In [28] and [29], details from the interconnects to the IOs and ADC/DACs were taken into consideration in evaluating the accuracy, power, area and latency metrics. Moreover, in [30], authors presented a micro-architecture simulator whose core component functionality is verified by the corresponding circuit simulation of a real chip design that is taped-out under 130nm process. Their case study focused on the effect of pruning on the evaluation of the framework’s accuracy and only for Cifar-10 with 15 convolution layers. They also highlighted the training algorithm for retraining and/or fine-tuning with different setups like quantization and non-linearity of the IO. ReRAM devices play a vital role in accelerating NN computations, especially in IoT nodes and edge computing devices. However, it is hard to get to the exact analog value with very high precision in memristors due to the intrinsic variations that can occur due to process variations such as oxygen concentration in switching behavior [31], [32]. Moreover, successive writing and reading operations might cause the device to wear out due to low training endurance. Moreover, the memristor’s continuous analog resistance range is quantized into discrete levels to decrease the write circuitry’s complexity. Non-uniform quantization where the low resistance state contributes significantly to mapping the parameters and the high resistance state has little contribution to the magnitude of conversion [33]. Hence having more accurate mapping of low resistance is more important than the high resistance. Recent work on a simple two-layer ANN for MNIST classification has been utilized for training and testing [34]. Input pixels, as well as the weighted sum of each neuron, are truncated to 1-bit. Hence, the inference is realized with lowprecision. They showed that at least 6-bits are required for training and at most 2-bits for testing. Moreover, the authors extended their work for CNN in [35]. Data retention and ADC quantization are the key factors for inference accuracy degradation in their CIM inference engine. They evaluate their impacts and benchmark across technologies on an accelerator design based on VGG-8, for the CIFAR-10 dataset, with 8-bit weight and 8-bit activation precision for 2%, 6%, and 10% state drift. However, both frameworks were more hardwareoriented. Not many details are disclosed on the crossbar’s architecture such as how negative weights are presented as conductance values, and the weight-to-device mapping algorithm. While in [36], an alternating direction method of multipliers (ADMM) is incorporated into the network’s training phase. They include weight pruning, linear quantization, conductance range, the mismatch between weight value and real conductance values. They use different crossbars to represent positive and negative weights. And another crossbar to represent the higher and the lower bits. This causes area overhead. In our proposed work, only a single column is concatenated to the original crossbar to be able to remove the effect of weight shifting as a mean to represent negative conductance values. Moreover, in [37], the author showed that post-training quantization of neural network weights only can have a different impact on the reported drop of accuracy depending on the chosen CNN structure. For example, for Mobilenet, the accuracy goes down to 0.001 from the full floating-point of 0.707. While Inception and ResNet can still provide near-optimal classification accuracy. Our study shows the details of the architecture’s mapping to take into account the negative neural weights. Also, the full range of pixels as well as the image dimension were considered. In addition to the desire for universal training models and not device-specific models, the limited capabilities of edge devices to update weights make it necessary to perform post-training quantization that can minimize the hardware requirements and maintain acceptable accuracy. As a consequence, in the following section, a proposed work-flow for studying the effect of post-quantization, weight variation, and dynamic range on ReRAM-Based NN Inference is presented. III. PROPOSED WORK-FLOW FOR ReRAM-BASED NEURAL NETWORK INFERENCE In this section, the post-training quantization work-flow for weights of a pre-trained NN with full precision (FP) is analyzed for target ReRAM-crossbar implementation. As an example, a simple two-layer ANN and more complex CNN have been used to demonstrate the approach. Using ReRAM implies quantization of weights due to the physical limitations on the number of resistance states an analog memristor device can exhibit. Several works have shown that memristor devices can exhibit stable multi-level resistance states that are captured in the device models [38], [39]. Authors in [40] fabricated a Al-doped HfO2-based memristor with 20-levels. Also in [41] reported on a 12-levels stable resistance states using HfO2− _x_ . Varying the electrode material used can vary the number of stable resistance states to be achieved [42]. Some works even have demonstrated 64-conductance levels [43], [44]. Fig. 2, demonstrates the proposed flow utilized in our analysis. The flow first starts with block (1), where the NN is trained using MATLAB 2019b or Caffe deep learning framework. Then these weights are mapped into memristor conductance values in a specific conductance range in (2). After that, in block (3), a certain number of QL is assumed for the specific conductance range. Next, variations are added into the quantized conductance weights sampled from a normal distribution as in step (4). Finally, in block (5), the input data set is mapped into voltage levels and applied to the NN to evaluate the testing classification accuracy. The whole process can be repeated for various conductance range, QLs, and weight variations. Outputs are multiplied by a scaling factor as a way to reduce the effect of mapping and quantization. IV. MAPPING OF SIMPLE ANN UNDER THE PROPOSED FLOW In here, we start with the ANN example. The structure of the ANN for MNIST classification is shown in Fig. 3. The 28×28 input image is first flattened to 1D, resulting in 784 inputs. This is followed by 32 hidden nodes and 10 output nodes to classify the input images to classes from 0-9. The ANN was trained for 200 epochs with 0.01 learning rate resulting in 94.58% classification accuracy. Further training can achieve higher accuracy. However, we chose to stop at this level and consider it our baseline. This ANN structure was FIGURE 2. Flow chart showing the undergone method to perform statistical analysis on a pre-trained DNN for several quantization levels and evaluating their classification accuracies. then mapped into two memristor crossbars demonstrated in Fig.4. The hidden and output crossbars have the following dimensions respectively 785 × 33 and 33 × 11. The last row in both crossbars is for the bias connection values and has an input of 1V. While the additional last column is used to hold the minimum negative value from the FP weights. FIGURE 3. ANN structure for MNIST data-set classification utilizing 32 nodes for the hidden layer and 10 nodes for the output layer. FIGURE 4. Memristor-based ANN structure for MNIST data-set classification utilizing a hidden layer and an output layer crossbars. a) Shows an input image that will be flattened to 1D and then converted to voltage. b) and c) both demonstrate the crossbars followed by a sensing circuitry that will sense the output current from all columns and then convert it to voltage. This is then followed by a subtractor to remove the effect of weight shifting. After that the output is ready to pass through a non-linear activation function and d) instance for both hidden and output crossbars. The weight-to-conductance mapping algorithm from [45] has been considered in this paper. It considers the actual physical range G _off_ to G _on_ of the memristor [13]. As a start, a 10× dynamic range was assumed. The DR can later be changed to 100× and then 1000× after going through the whole flow as depicted by block (6). The pre-trained ANN weights are first shifted by the minimum negative value and then converted into conductance values via the mapping algorithm. The shifted mapped conductance values achieve 94.58% classification accuracy. In order to remove the contribution of the shifting, the summation of all inputs multiplied by the minimum weight is subtracted from each output column before passing it to the non-linear activation function. In addition, the outputs at this stage are multiplied by a scaling factor obtained by realizing the relation between the shifted output values from a neural network and the output from memristor-based crossbar architecture. This step is required to compensate for the mapping between the neural weight values and memristor conductance. Moreover, state disturbance with time can be considered as part of the conductance variations from the target value. It can be compensated via the programmable scaling factor. And in case of device failure, memory redundancy can be considered. Our goal is to provide designers with a way to analyze the variation and quantify its impact on system performance. After that, the output is passed through the non-linear activation function. The operation is expressed by the following, where output currents are produced by multiplying input voltages with the network’s conductance values - I1 I2 I3 = - Vin1 Vin2 bias <sup>�</sup>   ×  w1 + | wmin | w2 + | wmin | | wmin | w3 + | wmin | w4 + | wmin | | wmin | w5 + | wmin | w6 + | wmin | | wmin |  _,_ where I _i_ is the output current per column _i_, the whole term w _j_ + | _wmin_ | is the mapped conductance value after shifting by the minimum NN weight value w _min_, and V _in_ is the input voltage. This is followed by removing the effect of the shifting by 64, and 128. First, we started with 4-QLs, meaning 2 bits of information. Then for each one of those levels, a truncated Gaussian distribution was created. It is worth mentioning that the weights in a trained network often follow Normal distribution that is widely used to fit a wide range of the variations of real data applications [49]. Besides, the trained weights have values around zero, which means they can be roughly fitted to Normal distribution. Truncated Gaussian distribution was assumed for the following reasons: a) memristor’s mapped weight values should be strictly positive, and if the distribution was not truncated, then a negative weight might appear even after the mapping and shifting processes, and b) avoid having extreme values [−inf,+inf] even though the actual probability of an extreme event will be very low; hence, truncate the range is made finite at both ends [50]. Nonetheless, other distributions can be utilized to replace the normal distribution. Each mapped weight from the hidden and output matrices was substituted by a random value drawn from its target truncated Gaussian distribution of the target conductance range with a specific variation starting with 5% as in block (4). Eventually, the newly created hidden and output matrices were evaluated by a forward pass to examine the classification accuracy. This is repeated 1000 times, and in each time, new random values are drawn from each respected range. Assuming that each sample resembles a memristor crossbar. After that, another 1000 samples are generated for 10%, 20% and 30% each as illustrated by block (10) in the flow. The MATLAB code used in analyzing the weight variation effect on the accuracy is available in the Appendix. Next, an 8-QLs is considered, and the whole process will be repeated. And so on and so forth until all QL are tested and evaluated as in block (5). V. ANN WEIGHT QUANTIZATION AND VARIATION FOR DIFFERENT DYNAMIC RANGES A major limitation in memristor devices is the intrinsic programming variation that occurs to a specific conductance value due to the movement of the ions and other device limitations [51]. Designing memristor devices with higher dynamic ranges can relax the need for precise writing circuitry in analog computations as the noise margin between successive states will be larger compared to devices with smaller dynamic ranges [52]. Hence, the output result is affected by both the state drift and the accuracy of conductance tuning. This section shows three case studies on the multilayer perceptron where the QL, device’s dynamic range, and weight variations are the variables. _A._ _QUANTIZATION_ Table 1 demonstrates the obtained classification accuracies for each one of the considered quantization levels if each value was substituted by the mean of the range it resides in. The accuracy is significantly affected at low-bit representation with around 10% classification accuracy. The accuracy starts to increase with 16 levels of quantization subtracting the following term: - _n_ _i_ =1 = _Vin_ × | _wmin_ |, where _Vi_ _i_ =1 is the input to the hidden/output layer and _n_ is the number of input nodes. The whole process of mapping the FP weights into memristor conductance value is captured by block (2) in Fig. 2. It is worth mentioning that the matrix values to memristor conductance mapping should take into account the polarity and wire resistance. Inaccurate mapping of matrix coefficient values or neural network weights to conductance values might cause the mapped parameter to go beyond the device’s actual range. Moreover, the memristor state may get saturated because of the small dynamic range of the parameters. Another point that should be noticed is if the crossbar’s mapped weights are so high, the summation of the output voltage might exceed the operational range of the output amplifier [46]. A simple linear and fast 1:1 approximation mapping from matrix coefficients to memristor conductance values is defined in [47]. A simple, linear mapping of conductance values in a physical memristive crossbar does not perform well as the array size gets larger [45]. Hence the authors in [48] illustrated that the coefficient value in the mapping depends on the conductivity of the specific memristor _Gi,j_ and all the other memristors in the column in a non-linear manner. According to block (3) in the flowchart in Fig. 2, the next step is to define the number of quantization levels (QL) for the inference phase with the specific physical memristor conductance range. The following QL were considered: 4, 8, 16, 32, TABLE 1. Classification accuracy for a simple 2-layer ANN when only the effect of quantization is considered for a 10 × DR. FIGURE 5. Histogram for six quantization levels ranging from 2-bits to 7-bits representation with a 100 × off/on resistance ratio and 10% weight variation for MNIST data set classification on 2-layer ANN. until it reaches an acceptable level at 64 levels or higher. The classification values in the table were obtained with 10× DR. _B._ _DYNAMIC RANGE_ Memristor devices have shown a large off/on resistance ratio that can reach up-to 10 <sup>4</sup> [42]. Hence, in our simulations, three cases with 10×, 100×, and 1000× were considered. By examining the histograms for all these ranges, it shows that the distribution for the 4-QL among all DRs is narrow and concentrated mainly between 9%-11% accuracies for the 1000 samples. We only demonstrate the histogram for the 100× DR in Fig. 5 since the other two follow the same trend. It can be noticed that with 8-QLs, the distribution of accuracies starts to spread. Higher QLs are observed to have a right-skewed distribution with most occurrences having _>_ 90% classification accuracies. It should be noted that all these plots were obtained using 10% weight variation around the mean. The curves in Fig. 6 present the cumulative distribution function (CDF) and shows the probability that a particular sample takes in classification accuracy. For example, by examining the blue curve in Fig. 6, the probability of having a classification accuracy of 50% or less is about 75% for 8-QL. Moreover, the probability of having a 10% for 4 levels of quantization is almost the same. While for higher QLs, the probability of obtaining an accuracy _<_ 90% is around 10%. But for 93% it grows to FIGURE 6. CDF showing the probability of having a less than or equal a target classification accuracy for 10 × dynamic range for a simple 2-layer ANN with MNIST classification. around 90%. CDF was also calculated for the 100× and 1000×, and it was concluded that regardless of the dynamic range of the memristor device, all QL levels follow the same curve. The mean of the 1000 samples for each quantization level and over all three different dynamic ranges were calculated. Fig. 7 shows how the mean of accuracies per level is small for low number of quantization levels (low number of bits). And intuitively, as the number of bits increases (QL), the accuracy increases. But there is an upper limit at 16-QLs where the accuracy saturates and no apparent benefit for going to higher number of states. Since there is a jump from 8-QLs to 16-QLs, another intermediate value which is 9-QLs was tested and achieved an 88.98% classification accuracy. It should be noted that the simulated 9-QLs had 10% variation and 10× dynamic range. Moreover, although increasing the dynamic range of a Memristor device helps to relax the noise margin and the precision of the writing circuitry, in our simulations, it did not show much of a difference in accuracy. That is mainly due to limiting the truncated Gaussian distribution to a certain range where weights can vary within. _C._ _WEIGHT VARIATION_ For further analysis of different weight variations, the 16QLs case was selected to proceed with as it gives the best accuracy with the lowest states. The boxplot representation for 5%, 10%, 20% and 30% variations of the weight around the mean is shown in Fig. 8. It demonstrates that for smaller variations, the majority of accuracies for the 1000 samples have a narrow distribution and are _>_ 90%. While the conductance variation increases, this causes the distribution of the classification accuracy of the 1000 samples to go wider, causing many outliers, and the accuracy of these samples is skewed. Consequently, the mean of the accuracies drops as the device variation increases; this is presented in Fig. 9. TABLE 2. CIFAR-10 classification accuracy for both original CNN and Memristor-based CNN. Simulations were carried on for a layer-by-layer quantization as well as quantizing the whole CNN pipeline with 16-QLs and 10 × DR. Also, the effect of variation on the fully quantized Memristor-based CNN as well as the layer-by-layer quantization is demonstrated. Results were compared to the baseline network accuracy. FIGURE 7. Classification accuracies for different memristor device dynamic ranges as a function of various QLs with 10% variation for MNIST classification on ANN. FIGURE 8. Boxplot representation for 5%, 10%, 20% and 30% of ANN weight variation cases for MNIST classification. It shows that for smaller variations the spread is narrow and contained in the whiskers. While for higher variations the spread of the output results is large with many outliers. VI. CNN WEIGHT QUANTIZATION AND VARIATION In this section, the work has been extended to account for other DNNs such as the state-of-the-art CNN. The goal is to provide a predictive performance of any pre-trained FIGURE 9. The mean of the variations 5%, 10%, 20% and 30% respectively, showing a decrease in the classification accuracy of MNIST data set as the programing variation increase. FIGURE 10. Architecture of the RRAM-based convolution layers organized by concatenating the shifting columns, addition of offset multipliers, output subtractors, and array-wise adders. The lump of the effect of non-idealities is included in the offset value. CNN on the dedicated Memristor-based hardware accelerator. The dedicated accelerator is constrained by the physical number of quantization (conductance) levels the memristor device can exhibit and the expected amount of variations in its conductance. In order to follow the same flowchart demonstrated in Fig. 2 and convert the convolution FIGURE 11. A CNN structure consisting of 3-convolution and 2-fully connected layers. CIFAR-10 data set was used on this structure to study the impact of post-training quantization and weight variation. These additional 16 columns hold the absolute minimum value of each filter in that channel. After that, every image block is flattened to 1D, converted to voltage, and applied at the crossbar’s terminals. Then same procedure highlighted in Section III is followed. In the following simulation results and discussions, 16-QLs and a dynamic range of 10× were assumed. FIGURE 12. Confusion Matrix showing precision and recall values for CIFAR-10 on Memristor-based CNN without quantization and variation. FIGURE 13. Confusion matrix showing precision and recall for CIFAR-10 classification on a quantized Memristor-based CNN (all layers) with variation = 10%. operation to vector-matrix multiplication, the following must be performed: Every channel within the layer resembles a memristive crossbar. The filters in every channel are flattened to 1D and concatenated with a number of columns equal to the number of filters in that channel as demonstrated in Fig. 10. For example, if there are 16 filters with a dimension of 3 × 3, then there will be 16 minimum values one from each filter. Hence, the crossbar will have a size of 9 × 32. As an example to demonstrate the proposed framework on CNN, a 3 ConV and 2 FC (3C2F) layer neural network is presented in Fig. 11 where CIFAR-10 data-set was trained on Caffe deep learning framework. After that, the network was quantized to 16 levels in a layer-by-layer fashion to study the effect of quantization and weight variation separately. Table 2 presents the classification accuracy of the baseline CNN, fully-quantized network and layer-by-layer quantized CNN. It shows that the latter layers are more robust to the quantization from the earlier ones. Then weight variation of 10% was introduced to the layer-by-layer quantized network as demonstrated in column 4 in Table 2. Moreover, the weights of a quantized network were varied by 1%, 3%, and 10% to analyze the sensitivity to the variation on the fully quantized network. Results are highlighted in the second row and fourth column of the Table. The presented outcomes show that the effect of quantization is more dominant as long as the conductance variation is below 3%. It is worth mentioning that layer-by-layer mapping of the quantized weights to the quantization levels (physical available conductance states) performed better than a one time mapping of the pre-trained weights to the range. For example, for original CNN when quantizing the whole network with one maximum, the accuracy was 9.96%. While when each layer was quantized depending on its maximum, the accuracy was 30.52%. It should be noted that the classification accuracy for 64 QLs is 47.18%. In addition to the classification accuracy, confusion matrix showing precision and recall factors are presented. Fig. 12 illustrates how the images are classified for a baseline memristor-based CNN assuming full-precision can be achieved without quantization and conductance variation. It gives an insight into the predicted labels compared to the true ones through calculations of the true positives, false positives, true negative and false negative for each class. With quantization and variation, the network seems to classify the majority of images to airplane and horse as Fig. 13 depicts. VII. CONCLUSION AND FUTURE WORK This paper presents a methodology for investigating the impact of post-quantization, variation, and dynamic range in ReRAM-based pre-trained DNN for MNIST and CIFAR10 classification. The framework is application-applicable, where the user can explore other sets. Also, the framework helps when there is no access to the training data sets to the end-user for security reasons and in generic cases where the network has already been trained. Our simulation results show that the accuracy depends on the DNN structure and complexity of inputs. For example, for the simple multi-layer perceptron, 4-bits of information is enough to represent distinct conductance weights and achieve near-optimal accuracy ∼90% compared to full-precision accuracy 94.58%. While in the state-of-the-art CNN, memristor devices with a higher number of stable conductance states are required. Moreover, performing a layer-by-layer quantization instead of quantizing the network as a whole resulted in better accuracy: 30.52% versus 9.96%. The effect of weight variation on CNN is less than 8% when the variation is _<_ 3%. In addition, a large dynamic range of the devices (HRS/LRS) is desirable to enable multi-level conductance representation for the NN weight matrices values. Due to intrinsic variations, reduced noise margin between successive resistance levels will affect the operation’s reliability and correctness. However, in our simulations larger dynamic ranges did not affect the classification accuracy. A detailed MATLAB code is reported in the appendix together with GitHub codes available on: [https://github.com/YasmineHalawani/Statistical-](https://github.com/YasmineHalawani/Statistical-Analysis-ReRAM-Neural-Network) [Analysis-ReRAM-Neural-Network.](https://github.com/YasmineHalawani/Statistical-Analysis-ReRAM-Neural-Network) In the future, a compensation technique to mitigate the accuracy drop due to post-training quantization and variation for memristor-based NN structures targeting edge devices will be utilized. Also, a better network-to-crossbar mapping without the need for re-training. APPENDIX The following code can be used after training the neural network (NN) and obtaining all the trained weights for all layers. After that, the NN network weights are mapped into conductance values given the available physical range of the ReRAM device and that all weights should be positive. Also, the input testing patterns from the data set are mapped into appropriate voltages. The number of inputs, outputs and layers are data set and design dependent. The number of samples, can be considered as the number of wafers, are decided by the user. Also the variation of the mapped weight around the mean is controlled by the variable var. The number of quantization levels assumed is allocated by q_level. For each sample, the classification accuracy is calculated. Each ReRAM device will then have a value that is randomly assigned to it from a truncated distribution bounded by the variation. After mapping all the conduc tance weights to quantized random values, inference step is performed. MATLAB CODE REFERENCES [1] Y.-H. Chen, T. Krishna, J. S. Emer, and V. Sze, ‘‘Eyeriss: An energy efficient reconfigurable accelerator for deep convolutional neural networks,’’ _IEEE_ _J._ _Solid-State_ _Circuits_, vol. 52, no. 1, pp. 127–138, Jan. 2017. [2] E. Nurvitadhi, G. Venkatesh, J. Sim, D. Marr, R. Huang, J. O. G. Hock, Y. T. Liew, K. Srivatsan, D. Moss, S. Subhaschandra, and G. Boudoukh, ‘‘Can FPGAs beat GPUs in accelerating next-generation deep neural networks?’’ in _Proc._ _ACM/SIGDA_ _Int._ _Symp._ _Field-Program._ _Gate_ _Arrays_, Feb. 2017, pp. 5–14. [3] E. Li, L. Zeng, Z. Zhou, and X. Chen, ‘‘Edge AI: On-demand accelerating deep neural network inference via edge computing,’’ _IEEE Trans. Wireless_ _Commun._, vol. 19, no. 1, pp. 447–457, Jan. 2020. [4] J.-M. Hung, X. Li, J. Wu, and M.-F. Chang, ‘‘Challenges and trends in developing nonvolatile memory-enabled computing chips for intelligent edge devices,’’ _IEEE_ _Trans._ _Electron_ _Devices_, vol. 67, no. 4, pp. 1444–1453, Apr. 2020. [5] Y. Halawani, B. Mohammad, M. A. Lebdeh, M. Al-Qutayri, and S. F. Al-Sarawi, ‘‘ReRAM-based in-memory computing for search engine and neural network applications,’’ _IEEE_ _J._ _Emerg._ _Sel._ _Topics_ _Circuits_ _Syst._, vol. 9, no. 2, pp. 388–397, Jun. 2019. [6] H. Huang, L. Ni, K. Wang, Y. Wang, and H. Yu, ‘‘A highly parallel and energy efficient three-dimensional multilayer CMOS-RRAM accelerator for tensorized neural network,’’ _IEEE Trans. Nanotechnol._, vol. 17, no. 4, pp. 645–656, Jul. 2018. [7] A. Sebastian, M. Le Gallo, R. Khaddam-Aljameh, and E. Eleftheriou, ‘‘Memory devices and applications for in-memory computing,’’ _Nature_ _Nanotechnol._, vol. 15, no. 7, pp. 529–544, Jul. 2020. [8] M. Le Gallo and A. Sebastian, ‘‘An overview of phase-change memory device physics,’’ _J._ _Phys._ _D,_ _Appl._ _Phys._, vol. 53, no. 21, May 2020, Art. no. 213002. [9] H. Abunahla, B. Mohammad, L. Mahmoud, M. Darweesh, M. Alhawari, M. A. Jaoude, and G. W. Hitt, ‘‘MemSens: Memristor-based radiation sensor,’’ _IEEE Sensors J._, vol. 18, no. 8, pp. 3198–3205, Apr. 2018. [10] Y. Pang, B. Gao, D. Wu, S. Yi, Q. Liu, W.-H. Chen, T.-W. Chang, W.-E. Lin, X. Sun, S. Yu, H. Qian, M.-F. Chang, and H. Wu, ‘‘A reconfigurable RRAM physically unclonable function utilizing post-process randomness source with _<_ 6×10 <sup>−6</sup> native bit error rate,’’ in _IEEE Int. Solid-State Circuits Conf._ _(ISSCC) Dig. Tech. Papers_, Feb. 2019, pp. 402–404. [11] Y. Halawani, B. Mohammad, M. Al-Qutayri, and S. F. Al-Sarawi, ‘‘Memristor-based hardware accelerator for image compression,’’ _IEEE_ _Trans. Very Large Scale Integr. (VLSI) Syst._, vol. 26, no. 12, pp. 2749–2758, Dec. 2018. [12] Y. Halawani, M. A. Lebdeh, B. Mohammad, M. Al-Qutayri, and S. F. Al-Sarawi, ‘‘Stateful memristor-based search architecture,’’ _IEEE_ _Trans. Very Large Scale Integr. (VLSI) Syst._, vol. 26, no. 12, pp. 2773–2780, Dec. 2018. [13] H. Abunahla, Y. Halawani, A. Alazzam, and B. Mohammad, ‘‘NeuroMem: Analog graphene-based resistive memory for artificial neural networks,’’ _Sci. Rep._, vol. 10, no. 1, pp. 1–11, Dec. 2020. [14] S. Han, H. Mao, and W. J. Dally, ‘‘Deep compression: Com pressing deep neural networks with pruning, trained quantization and Huffman coding,’’ 2015, _arXiv:1510.00149_ . [Online]. Available: http://arxiv.org/abs/1510.00149 [15] M. Rastegari, V. Ordonez, J. Redmon, and A. Farhadi, ‘‘XNOR-Net: Ima geNet classification using binary convolutional neural networks,’’ in _Proc._ _Eur. Conf. Comput. Vis._ Cham, Switzerland: Springer, 2016, pp. 525–542. [16] J. Choi, S. Venkataramani, V. Srinivasan, K. Gopalakrishnan, Z. Wang, and P. Chuang, ‘‘Accurate and efficient 2-bit quantized neural networks,’’ in _Proc. 2nd SysML Conf._, 2019, pp. 1–12. [17] D. Wan, F. Shen, L. Liu, F. Zhu, J. Qin, L. Shao, and H. T. Shen, ‘‘TBN: Convolutional neural network with ternary inputs and binary weights,’’ in _Proc. Eur. Conf. Comput. Vis. (ECCV)_, 2018, pp. 315–332. [18] J. Choi, Z. Wang, S. Venkataramani, P. I.-J. Chuang, V. Srinivasan, and K. Gopalakrishnan, ‘‘PACT: Parameterized clipping activation for quantized neural networks,’’ 2018, _arXiv:1805.06085_ . [Online]. Available: http://arxiv.org/abs/1805.06085 [19] K. Wang, Z. Liu, Y. Lin, J. Lin, and S. Han, ‘‘HAQ: Hardware-aware automated quantization with mixed precision,’’ in _Proc. IEEE/CVF Conf._ _Comput. Vis. Pattern Recognit. (CVPR)_, Jun. 2019, pp. 8612–8620. [20] Z. He, J. Lin, R. Ewetz, J.-S. Yuan, and D. Fan, ‘‘Noise injection adaption: End-to-end ReRAM crossbar non-ideal effect adaption for neural network mapping,’’ in _Proc. 56th Annu. Design Automat. Conf._, Jun. 2019, pp. 1–6. [21] S. Jain, A. Sengupta, K. Roy, and A. Raghunathan, ‘‘RxNN: A frame work for evaluating deep neural networks on resistive crossbars,’’ 2018, _arXiv:1809.00072_ . [Online]. Available: http://arxiv.org/abs/1809.00072 [22] I. Chakraborty, M. Fayez Ali, D. Eun Kim, A. Ankit, and K. Roy, ‘‘GENIEx: A generalized approach to emulating non-ideality in memristive xbars using neural networks,’’ in _Proc._ _57th_ _ACM/IEEE_ _Design_ _Automat. Conf. (DAC)_, Jul. 2020, pp. 1–6. [23] M. A. Hanif, A. Manglik, and M. Shafique, ‘‘Resistive crossbar aware neural network design and optimization,’’ _IEEE_ _Access_, vol. 8, pp. 229066–229085, 2020. [24] X. Sun and S. Yu, ‘‘Impact of non-ideal characteristics of resistive synaptic devices on implementing convolutional neural networks,’’ _IEEE J. Emerg._ _Sel. Topics Circuits Syst._, vol. 9, no. 3, pp. 570–579, Sep. 2019. [25] R. Banner, Y. Nahshan, and D. Soudry, ‘‘Post training 4-bit quantization of convolutional networks for rapid-deployment,’’ in _Proc._ _Adv._ _Neural_ _Inf._ _Process. Syst._, 2019, pp. 7948–7956. [26] M. de Prado, M. Denna, L. Benini, and N. Pazos, ‘‘QUENN: Quantization engine for low-power neural networks,’’ in _Proc._ _15th_ _ACM_ _Int._ _Conf._ _Comput. Frontiers_, May 2018, pp. 36–44. [27] J. Fang, A. Shafiee, H. Abdel-Aziz, D. Thorsley, G. Georgiadis, and J. Hassoun, ‘‘Near-lossless post-training quantization of deep neural networks via a piecewise linear approximation,’’ 2020, _arXiv:2002.00104_ . [Online]. Available: https://arxiv.org/abs/2002.00104 [28] L. Xia, B. Li, T. Tang, P. Gu, P.-Y. Chen, S. Yu, Y. Cao, Y. Wang, Y. Xie, and H. Yang, ‘‘MNSIM: Simulation platform for memristor-based neuromorphic computing system,’’ _IEEE_ _Trans._ _Comput.-Aided_ _Design_ _Integr. Circuits Syst._, vol. 37, no. 5, pp. 1009–1022, May 2018. [29] W. Zhang, X. Peng, H. Wu, B. Gao, H. He, Y. Zhang, S. Yu, and H. Qian, ‘‘Design guidelines of RRAM based neural-processing-unit: A joint device-circuit-algorithm analysis,’’ in _Proc._ _56th_ _ACM/IEEE_ _Design Automat. Conf. (DAC)_, Jun. 2019, pp. 1–6. [30] H. Liu, J. Han, and Y. Zhang, ‘‘A unified framework for training, mapping and simulation of ReRAM-based convolutional neural network acceleration,’’ _IEEE_ _Comput._ _Archit._ _Lett._, vol. 18, no. 1, pp. 63–66, Jan. 2019. [31] Y. Sun, X. Yan, X. Zheng, Y. Liu, Y. Shen, and Y. Zhang, ‘‘Influ ence of carrier concentration on the resistive switching characteristics of a ZnO-based memristor,’’ _Nano_ _Res._, vol. 9, no. 4, pp. 1116–1124, Apr. 2016. [32] B. Mohammad, M. A. Jaoude, V. Kumar, D. M. Al Homouz, H. A. Nahla, M. Al-Qutayri, and N. Christoforou, ‘‘State of the art of metal oxide memristor devices,’’ _Nanotechnol. Rev._, vol. 5, no. 3, pp. 311–329, Jan. 2016. [33] B. Li, P. Gu, Y. Wang, and H. Yang, ‘‘Exploring the precision limitation for RRAM-based analog approximate computing,’’ _IEEE Des. Test. Comput._, vol. 33, no. 1, pp. 51–58, Feb. 2016. [34] P.-Y. Chen, X. Peng, and S. Yu, ‘‘NeuroSim+: An integrated device-to algorithm framework for benchmarking synaptic devices and array architectures,’’ in _IEDM Tech. Dig._, Dec. 2017, pp. 1–6. [35] X. Peng, S. Huang, Y. Luo, X. Sun, and S. Yu, ‘‘DNN+NeuroSim: An end-to-end benchmarking framework for compute-in-memory accelerators with versatile device technologies,’’ in _IEDM Tech. Dig._, Dec. 2019, pp. 5–32. [36] G. Yuan, X. Ma, C. Ding, S. Lin, T. Zhang, Z. S. Jalali, Y. Zhao, L. Jiang, S. Soundarajan, and Y. Wang, ‘‘An ultra-efficient memristorbased DNN framework with structured weight pruning and quantization using ADMM,’’ in _Proc._ _IEEE/ACM_ _Int._ _Symp._ _Low_ _Power_ _Electron._ _Design (ISLPED)_, Jul. 2019, pp. 1–6. [37] R. Krishnamoorthi, ‘‘Quantizing deep convolutional networks for efficient inference: A whitepaper,’’ 2018, _arXiv:1806.08342_ . [Online]. Available: http://arxiv.org/abs/1806.08342 [38] W. Sun, B. Gao, M. Chi, Q. Xia, J. J. Yang, H. Qian, and H. Wu, ‘‘Understanding memristive switching via _in_ _situ_ characterization and device modeling,’’ _Nature Commun._, vol. 10, no. 1, pp. 1–13, Dec. 2019. [39] H. Abunahla, B. Mohammad, D. Homouz, and C. J. Okelly, ‘‘Modeling valance change memristor device: Oxide thickness, material type, and temperature effects,’’ _IEEE_ _Trans._ _Circuits_ _Syst._ _I,_ _Reg._ _Papers_, vol. 63, no. 12, pp. 2139–2148, Dec. 2016. [40] L. Wu, H. Liu, J. Li, S. Wang, and X. Wang, ‘‘A multi-level memristor based on Al-doped HfO2 thin film,’’ _Nanosc._ _Res._ _Lett._, vol. 14, no. 1, pp. 1–7, Dec. 2019. [41] W. He, H. Sun, Y. Zhou, K. Lu, K. Xue, and X. Miao, ‘‘Customized binary and multi-level HfO2− _x_ -based memristors tuned by oxidation conditions,’’ _Sci. Rep._, vol. 7, no. 1, pp. 1–9, Dec. 2017. [42] A. A. Minnekhanov, A. V. Emelyanov, D. A. Lapkin, K. E. Nikiruy, B. S. Shvetsov, A. A. Nesmelov, V. V. Rylkov, V. A. Demin, and V. V. Erokhin, ‘‘Parylene based memristive devices with multilevel resistive switching for neuromorphic applications,’’ _Sci._ _Rep._, vol. 9, no. 1, pp. 1–9, Dec. 2019. [43] C. Li, M. Hu, Y. Li, H. Jiang, N. Ge, E. Montgomery, J. Zhang, W. Song, N. Dávila, and C. E. Graves, ‘‘Analogue signal and image processing with large memristor crossbars,’’ _Nature Electron._, vol. 1, no. 1, p. 52, 2018. [44] J. Park, M. Kwak, K. Moon, J. Woo, D. Lee, and H. Hwang, ‘‘TiO _x_ -based RRAM synapse with 64-levels of conductance and symmetric conductance change by adopting a hybrid pulse scheme for neuromorphic computing,’’ _IEEE Electron Device Lett._, vol. 37, no. 12, pp. 1559–1562, Dec. 2016. [45] M. Hu, J. P. Strachan, Z. Li, E. M. Grafals, N. Davila, C. Graves, S. Lam, N. Ge, J. J. Yang, and R. S. Williams, ‘‘Dot-product engine for neuromorphic computing: Programming 1T1M crossbar to accelerate matrix-vector multiplication,’’ in _Proc._ _53rd_ _Annu._ _Design_ _Automat._ _Conf._, Jun. 2016, pp. 1–6. [46] B. Li, Y. Shan, M. Hu, Y. Wang, Y. Chen, and H. Yang, ‘‘Memristor-based approximated computation,’’ in _Proc._ _Int._ _Symp._ _Low_ _Power_ _Electron._ _Design (ISLPED)_, Sep. 2013, pp. 242–247. [47] M. Hu, H. Li, Y. Chen, Q. Wu, G. S. Rose, and R. W. Linderman, ‘‘Mem ristor crossbar-based neuromorphic computing system: A case study,’’ _IEEE_ _Trans._ _Neural_ _Netw._ _Learn._ _Syst._, vol. 25, no. 10, pp. 1864–1878, Oct. 2014. [48] P. Gu, B. Li, T. Tang, S. Yu, Y. Cao, Y. Wang, and H. Yang, ‘‘Techno logical exploration of RRAM crossbar array for matrix-vector multiplication,’’ in _Proc. 20th Asia South Pacific Design Automat. Conf._, Jan. 2015, pp. 106–111. [49] M. Jiang and G. Gielen, ‘‘The effects of quantization on multi-layer feed forward neural networks,’’ _Int._ _J._ _Pattern_ _Recognit._ _Artif._ _Intell._, vol. 17, no. 4, pp. 637–661, 2003. [50] J. Burkardt, ‘‘The truncated normal distribution,’’ Dept. Sci. Comput., Florida State Univ., Tallahassee, FL, USA, Tech. Rep., 2014, pp. 1–35. [51] Q. Xia and J. J. Yang, ‘‘Memristive crossbar arrays for brain inspired computing,’’ _Nature_ _Mater._, vol. 18, no. 4, pp. 309–323, Apr. 2019. [52] Y. Halawani, B. Mohammad, D. Homouz, M. Al-Qutayri, and H. Saleh, ‘‘Modeling and optimization of memristor and STT-RAM-based memory for low-power applications,’’ _IEEE Trans. Very Large Scale Integr. (VLSI)_ _Syst._, vol. 24, no. 3, pp. 1003–1014, Mar. 2016. YASMIN HALAWANI (Member, IEEE) received the B.S. degree from the University of Sharjah (UOS), United Arab Emirates, in 2012, and the M.S. by Research and Ph.D. degrees from Khalifa University, United Arab Emirates, in 2014 and 2019, respectively, all in electrical and electronics engineering. She is currently working as a Postdoctoral Fellow with Khalifa University in the area of memristor-based in-memory computing (IMC) architectures and artificial intelligence (AI) applications. Her research projects focused on investigating the suitability of emerging memory technologies, such as memristor and STT-RAM for low power applications. In addition, her research interest includes the demonstration of the efficiency IMC for both analog and digital domains. BAKER MOHAMMAD (Senior Member, IEEE) received the B.S. degree from The University of New Mexico, Albuquerque, the M.S. degree from Arizona State University, Tempe, and the Ph.D. degree from The University of Texas at Austin, in 2008, all in electrical and computer engineering. He worked for ten years at Intel Corporation on a wide range of micro-processors design from high performance, server chips>100Watt (IA-64), to mobile embedded processor low power sub one watt (xscale). He was a Senior Staff Engineer/a Manager at Qualcomm, Austin, USA, for six years, where he was engaged in designing high performance and low power DSP processor used for communication and multi-media application. He is currently the Director of the System on Chip Center and an Associate Professor of electrical engineering and computer science with Khalifa University. He has over 16 years industrial experience in microprocessor design with emphasis on memory, low power circuit, and physical design. In addition, he is engaged in microwatt range computing platform for wearable electronics and WSN focusing on energy harvesting, power management, and power conversion including efficient dc/dc and ac/dc convertors. He authored/coauthored over 100 refereed journal articles and conference proceedings, three books, 18 U.S. patents, multiple invited seminars/panelist, and the presenter of three conference tutorials, including one tutorial on energy harvesting and power management for WSN at the 2015 (ISCAS). His research interests include VLSI, power efficient computing, high yield embedded memory, emerging technology, such as memristor, STTRAM, and in-memory-computing, and hardware accelerators for cyber physical systems. He has received several awards, including the KUSTAR Staff Excellence Award in Intellectual Property Creation, the IEEE TVLSI Best Paper Award, the 2016 IEEE MWSCAS Myrill B. Reed Best Paper Award, the Qualcomm Qstar Award for Excellence on Performance and Leadership, the SRC Techon Best Session Papers, in 2016 and 2017, the 2009 Best Paper Award for Qualcomm Qtech Conference, and the Intel Involve in the Community Award for Volunteer and Impact on the Community. He is an Associate Editor for IEEE TRANSACTION ON VERY LARGE SCALE INTEGRATION (TVLSI) and _Microelectronics Journal_ (Elsevier). He participates in many technical committees at IEEE conferences and reviews for journals, including IEEE TRANSACTION ON VERY LARGE SCALE INTEGRATION (TVLSI) and IEEE CIRCUITS AND SYSTEMS. HANI SALEH (Senior Member, IEEE) received the Bachelor of Science degree in electrical engineering from The University of Jordan, the Master of Science degree in electrical engineering from The University of Texas at San Antonio, and the Ph.D. degree in computer engineering from The University of Texas at Austin. He worked for many leading semiconductor design companies, including a Senior Chip Designer (Technical Lead) at Apple Incorporation, Intel (ATOM mobile microprocessor design), AMD (Bobcat mobile microprocessor design), Qualcomm (QDSP DSP core design for mobile SOCs), Synopsys (designed the I2C DW IP included in Synopys DesignWare Library), Fujitsu (SPARC compatible high performance microprocessor design), and Motorola Australia. Since 2012, he has been an Associate Professor of electronic engineering with Khalifa University. He is currently the Co-Founder and an Active Researcher with the Khalifa University Research Center (KSRC) and the System on Chip Research Center (SOCC), where he led multiple IoT projects for the development of wearable blood glucose monitoring SOC, mobile surveillance SOC, and AI accelerators for edge devices. He has a total of 19 years of industrial experience in ASIC chip design, microprocessor design, DSP core design, graphics core design, and embedded system design. He has over 20 issued U.S. patents, eight pending patent application, and over 120 articles published in peer reviewed conferences and journals in the areas of digital system design, computer architecture, DSP, and computer arithmetic. His research interests include the IoT design, deep learning, AI hardware design, DSP algorithms design, DSP hardware design, computer architecture, computer arithmetic, SOC design, ASIC chip design, FPGA design, and automatic computer recognition.

섹션 본문

섹션 본문이 없습니다.

참고문헌 58건

  1. Memristor Crossbar-Based Neuromorphic Computing System: A Case Study IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2014 10.1109/tnnls.2013.2296777
  2. THE EFFECTS OF QUANTIZATION ON MULTI-LAYER FEEDFORWARD NEURAL NETWORKS International Journal of Pattern Recognition and Artificial Intelligence · World Scientific · 2003 10.1142/s0218001403002514
  3. Memristor-based approximated computation International Symposium on Low Power Electronics and Design · 2013 10.5555/2648668.2648729
  4. Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding arXiv (Cornell University) · Cornell University · 2015
  5. The truncated normal distribution: Applications to queues with impatient customers Operations Research Letters · Elsevier BV · 2014 10.1016/j.orl.2014.10.008
  6. Exploring the Precision Limitation for RRAM-Based Analog Approximate Computing IEEE Design and Test · Institute of Electrical and Electronics Engineers · 2015 10.1109/mdat.2015.2487218
  7. Modeling and Optimization of Memristor and STT-RAM-Based Memory for Low-Power Applications IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tvlsi.2015.2440392
  8. Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural Networks IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 2016 10.1109/jssc.2016.2616357
  9. Influence of carrier concentration on the resistive switching characteristics of a ZnO-based memristor Nano Research · Springer Science+Business Media · 2016 10.1007/s12274-016-1006-0
  10. XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46493-0_32
  11. Dot-product engine for neuromorphic computing 2016 10.1145/2897937.2898010
  12. State of the art of metal oxide memristor devices Nanotechnology Reviews · De Gruyter · 2015 10.1515/ntrev-2015-0029
  13. Technological exploration of RRAM crossbar array for matrix-vector multiplication 2015 10.1109/aspdac.2015.7058989
  14. TiO<sub>&lt;italic&gt;x&lt;/italic&gt;</sub>-Based RRAM Synapse With 64-Levels of Conductance and Symmetric Conductance Change by Adopting a Hybrid Pulse Scheme for Neuromorphic Computing IEEE Electron Device Letters · Institute of Electrical and Electronics Engineers · 2016 10.1109/led.2016.2622716
  15. Modeling Valance Change Memristor Device: Oxide Thickness, Material Type, and Temperature Effects IEEE Transactions on Circuits and Systems I Regular Papers · Institute of Electrical and Electronics Engineers · 2016 10.1109/tcsi.2016.2622225
  16. Can FPGAs Beat GPUs in Accelerating Next-Generation Deep Neural Networks? 2017 10.1145/3020078.3021740
  17. MNSIM: Simulation Platform for Memristor-based Neuromorphic Computing System IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcad.2017.2729466
  18. A Highly Parallel and Energy Efficient Three-Dimensional Multilayer CMOS-RRAM Accelerator for Tensorized Neural Network IEEE Transactions on Nanotechnology · Institute of Electrical and Electronics Engineers · 2017 10.1109/tnano.2017.2732698
  19. Customized binary and multi-level HfO2−x-based memristors tuned by oxidation conditions Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-09413-9
  20. Analogue signal and image processing with large memristor crossbars Nature Electronics · Nature Portfolio · 2017 10.1038/s41928-017-0002-z
  21. PACT: Parameterized Clipping Activation for Quantized Neural Networks arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.06085
  22. NeuroSim+: An integrated device-to-algorithm framework for benchmarking synaptic devices and array architectures 2017 10.1109/iedm.2017.8268337
  23. MemSens: Memristor-Based Radiation Sensor IEEE Sensors Journal · IEEE Sensors Council · 2018 10.1109/jsen.2018.2808285
  24. Stateful Memristor-Based Search Architecture IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tvlsi.2018.2812800
  25. truncated normal distribution 2012
  26. Memristor-Based Hardware Accelerator for Image Compression IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tvlsi.2018.2835572
  27. Quantizing deep convolutional networks for efficient inference: A whitepaper arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1806.08342
  28. QUENN 2018 10.1145/3203217.3203282
  29. TBN: Convolutional Neural Network with Ternary Inputs and Binary Weights Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01216-8_20
  30. RxNN: A Framework for Evaluating Deep Neural Networks on Resistive Crossbars arXiv (Cornell University) · Cornell University · 2018
  31. 25.2 A Reconfigurable RRAM Physically Unclonable Function Utilizing Post-Process Randomness Source With &lt;6×10<sup>−6</sup> Native Bit Error Rate 2019 10.1109/isscc.2019.8662307
  32. Memristive crossbar arrays for brain-inspired computing Nature Materials · Nature Portfolio · 2019 10.1038/s41563-019-0291-x
  33. A Unified Framework for Training, Mapping and Simulation of ReRAM-Based Convolutional Neural Network Acceleration IEEE Computer Architecture Letters · Institute of Electrical and Electronics Engineers · 2019 10.1109/lca.2019.2908374
  34. ReRAM-Based In-Memory Computing for Search Engine and Neural Network Applications IEEE Journal on Emerging and Selected Topics in Circuits and Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/jetcas.2019.2909317
  35. Design Guidelines of RRAM based Neural-Processing-Unit 2019 10.1145/3316781.3317797
  36. Noise Injection Adaption 2019 10.1145/3316781.3317870
  37. A Multi-level Memristor Based on Al-Doped HfO2 Thin Film Nanoscale Research Letters · Springer Science+Business Media · 2019 10.1186/s11671-019-3015-x
  38. Parylene Based Memristive Devices with Multilevel Resistive Switching for Neuromorphic Applications Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-47263-9
  39. Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding International Conference on Learning Representations · 2016
  40. Understanding memristive switching via in situ characterization and device modeling Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-11411-6
  41. Impact of Non-Ideal Characteristics of Resistive Synaptic Devices on Implementing Convolutional Neural Networks IEEE Journal on Emerging and Selected Topics in Circuits and Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/jetcas.2019.2933148
  42. Post training 4-bit quantization of convolutional networks for rapid-deployment Neural Information Processing Systems · 2019
  43. An Ultra-Efficient Memristor-Based DNN Framework with Structured Weight Pruning and Quantization Using ADMM 2019 10.1109/islped.2019.8824944
  44. Edge AI: On-Demand Accelerating Deep Neural Network Inference via Edge Computing IEEE Transactions on Wireless Communications · Institute of Electrical and Electronics Engineers · 2019 10.1109/twc.2019.2946140
  45. HAQ: Hardware-Aware Automated Quantization With Mixed Precision 2019 10.1109/cvpr.2019.00881
  46. Near-Lossless Post-Training Quantization of Deep Neural Networks via a Piecewise Linear Approximation arXiv (Cornell University) · Cornell University · 2020
  47. DNN+NeuroSim: An End-to-End Benchmarking Framework for Compute-in-Memory Accelerators with Versatile Device Technologies 2021 IEEE International Electron Devices Meeting (IEDM) · 2019 10.1109/iedm19573.2019.8993491
  48. An overview of phase-change memory device physics Journal of Physics D Applied Physics · Institute of Physics · 2020 10.1088/1361-6463/ab7794
  49. Challenges and Trends inDeveloping Nonvolatile Memory-Enabled Computing Chips for Intelligent Edge Devices IEEE Transactions on Electron Devices · Institute of Electrical and Electronics Engineers · 2020 10.1109/ted.2020.2976115
  50. Memory devices and applications for in-memory computing Nature Nanotechnology · Nature Portfolio · 2020 10.1038/s41565-020-0655-z
  51. RxNN: A Framework for Evaluating Deep Neural Networks on Resistive Crossbars IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tcad.2020.3000185
  52. NeuroMem: Analog Graphene-Based Resistive Memory for Artificial Neural Networks Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-66413-y
  53. Accurate and Efficient 2-bit Quantized Neural Networks Proceedings of Machine Learning and Systems · 2019
  54. GENIEx: A Generalized Approach to Emulating Non-Ideality in Memristive Xbars using Neural Networks 2020 10.1109/dac18072.2020.9218688
  55. QUENN 2018 10.1145/3203217.3203282
  56. Parylene Based Memristive Devices with Multilevel Resistive Switching for Neuromorphic Applications Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-47263-9
  57. Resistive Crossbar-Aware Neural Network Design and Optimization IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3045071
  58. Memristor-based approximated computation 2013 10.1109/islped.2013.6629302