Resistive random-access memory (ReRAM)-based processing-in-memory (PIM) accelerators offer a highly efficient platform for parallel matrix-vector multiplications (VMM) in neural networks, leveraging analog computation, high density, low leakage, and non-volatility. However, their susceptibility to permanent faults, such as stuck-at-high (SaH) and stuck-at-low (SaL) resistance states, permanently corrupts the convolutional neural networks (CNNs) weights mapped onto ReRAM cell conductance values, thereby degrading inference accuracy and leading to system unreliability in safety-critical applications. Fault injection is a commonly used technique to assess the vulnerability of neural networks by systematically injecting faults into individual parameters and measuring the resulting accuracy degradation. Although this method is accurate, it is prohibitively time-consuming and computationally expensive, especially for large-scale CNNs. In this paper, we propose a fast, scalable, and analytical framework to quantify the fault vulnerability of convolutional neural networks deployed on ReRAM-based PIM accelerators. This method quantifies vulnerability at different granularities, including weights, kernels, and layers, without the need for exhaustive simulation, enabling the design of fault-tolerant accelerators for edge and safety-critical applications. The comparison between the results of the proposed vulnerability score (VS) metrics with performance metric of CNNs captured with fault injection simulations confirms the effectiveness of our proposed method. Unlike exhaustive fault injection, which requires days or weeks, whereas the proposed approach achieves a speedup of about 104×−105×, enabling fast and accurate vulnerability analysis for large-scale CNNs within only a few minutes or hours.
Figures & tables
Figure 1: The main computations in CNNs (a) vector-matrix multiplications in FC layer, and (b) Convolutional in CONV layer.
Figure 2: ReRAM Structure, (a) 1T1R ReRAM cell structure, and (b) ReRAM crossbar array performing analog VMM operation.
Figure 3: General process of mapping of CNN learning parameters to ReRAM crossbars.
Figure 4: General process of mapping of CNN learning parameters to ReRAM crossbars.
CNNs
Dataset
Baseline Accuracy
Number of CONV Layers
Number of FC layers
Total Parameters
Total Size (MB)
LeNet5
MNIST
99.26%
2
3
44,426
0.30
SimpleNet
MNIST
99.42%
2
2
431,080
1.76
ResNet18
Cifar10
89.42%
20
1
11,173,962
53.89
VGG19
Cifar10
88.40%
16
1
20,040,522
83.64
AlexNet
Cifar10
86.82%
5
3
57,044,810
226.55
InceptionV3
Cifar10
93.35%
83
1
21,638,954
82.55
Table 1: Specifications of the CNN Models Under Study.
Figure 5: Architecture of CNN models under study.
Figure 6: The layer-wise sensitivity of (a) SimpleNet , (b) LeNet5 , and (c) AlexNet .
Figure 7: The layer-wise sensitivity of ResNet18 (a) weights of CONVs and FCs, (b) weights of BatchNorm, and (c) biases of BatchNorm and Conv 1×1
Figure 8: The layer-wise sensitivity of VGG19 (a) weights of CONVs and FCs, (b) biases of CONVs and FCs, (c) weights of BatchNorm, and (d) biases of BatchNorm.
Figure 9: The sensitivity of different kernels of CONV layers in (a) SimpleNet , (b) LeNet5 .
Figure 10: The sensitivity of different kernels of CONV layers in AlexNet .
Figure 11: The kernel-wise sensitivity analyzing of CONV layers in ResNet18 .
Figure 12: The kernel-wise sensitivity analysis of CONV layers in VGG19 .
Figure 13: Element-wise and kernel-wise sensitivity histogram of LeNet5 .
Figure 14: Element-wise and kernel-wise sensitivity histogram of AlexNet .
Figure 15: Element-wise and kernel-wise sensitivity histogram of ResNet18 .
Figure 16: The layer-wise sensitivity of various layers in InceptionV3 to SaH and SaL faults, (a) weights of CONVs, (b) weights of BatchNorm, and (c) biases of BatchNorm.
Figure 17: The kernel-wise sensitivity analyzing of CONV layers in InceptionV3 .
Figure 18: Kernel-wise sensitivity histogram of InceptionV3 .
Figure 20: The percentages of kernels at different SaH and SaL sensitivity levels across various models.
Figure 21: The comparison of the proposed VS and (a) accuracy, (b) loss and (c) MSE and (d) prediction hamming distance in SimpleNet .
Figure 22: The comparison of the proposed VS and (a) accuracy, (b) loss and (c) MSE and (d) prediction hamming distance in LeNet5 .
Figure 23: The comparison of the proposed VS and (a) accuracy, (b) loss and (c) MSE and (d) prediction hamming distance in ResNet18 .
Model
Layer
Accuracy Drop
Loss
MSE
Hamming Distance
LeNet
All kernels
0.76 ∗∗∗
0.85 ∗∗∗
0.81 ∗∗∗
0.71 ∗∗
conv1.weight
0.94 ∗∗
0.94 ∗∗
0.89 ∗
0.94 ∗∗
conv2.weight
0.43
0.62
0.47
0.22
SimpleNet
All kernels
0.12
0.19
0.20
0.09
conv1.weight
0.31
0.31
0.36
0.40
conv2.weight
0.86 ∗
0.86 ∗
1.00 ∗∗∗
0.96 ∗∗
Table 2: Spearman’s rank correlation ( ρ ) between the proposed VS and performance metrics.
Figure 24: The comparison of the proposed VS and (a) accuracy, (b) loss and (c) MSE and (d) prediction hamming distance in VGG19 .
CNN model
LeNet5
SimpleNet
AlexNet
VGG19
ResNet19
InceptionV3
Time (sec)
1.510
4.696
1069.844 ≈ 19 min
2066.676 ≈ 35 min
3107.888 ≈ 53 min
142056.613 ≈ 39 h, 27 min
Table 3: Time required for gradient-based sensitivity analysis.
Resistive random-access memory (ReRAM)-based Processing-in-Memory (PIM) accelerator is a promising platform for processing massively memory intensive matrix-vector multiplications of neural networks in parallel domain, due to its capability of analog computation, ultra-high density, near-zero leakage current, and non-volatility. Despite many advantages, ReRAM-based accelerators are highly error-prone due to limitations of technology fabrication that lead to process variations and defects. These limitations degrade the accuracy of Deep Convolutional Neural Networks (Deep CNNs) running on PIM accelerators. While these CNNs accelerators are widely deployed in safety-critical systems, their vulnerability to fault is not well explored. In this paper, we have developed a fault injection framework to investigate the vulnerability of large-scale CNNs at both software- and hardware-level of inference phases. Faulty ReRAM devices are another reliability challenges due to significant degradation of classification accuracy when CNN parameters are mapped to the accelerators. To investigate this challenge, we map the CNN learning parameter to the ReRAM crossbar and inject faults into crossbar arrays. The proposed framework analyzes the impact of stuck-at high (SaH) and stuck-at low (SaL) fault models on different layers and locations of CNN learning parameters. By performing extensive fault injections, we illustrate that the vulnerability behavior of ReRAM-based PIM accelerator for CNNs is greatly impressible to the types and depth of layers, the location of the learning parameter in every layer, and the value and types of faults. Our observations show that different models have different vulnerabilities to faults. Specifically, we show that SaL further reduces classification accuracy than SaH.
Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi
Amirkabir University of Technology (Tehran Polytechnic), Tehran, Iran
Compute-in-memory (CiM) architectures promise significant improvements in energy efficiency and throughput for deep neural network acceleration by alleviating the von Neumann bottleneck. However, their reliance on emerging non-volatile memory devices introduces device-level non-idealities-such as write variability, conductance drift, and stochastic noise-that fundamentally challenge reliability, predictability, and safety, especially in safety-critical applications. This talk examines the reliability limits of CiM-based neural accelerators and presents a series of techniques that bridge device physics, architecture, and learning algorithms to address these challenges. We first demonstrate that even small device variations can lead to disproportionately large accuracy degradation and catastrophic failures in safety-critical inference workloads, revealing a critical gap between average-case evaluations and worst-case behavior. Building on this insight, we introduce SWIM, a selective write-verify mechanism that strategically applies verification only where it is most impactful, significantly improving reliability while maintaining CiM's efficiency advantages. Finally, we explore a learning-centric solution that improves realistic worst-case performance by training neural networks with right-censored Gaussian noise, aligning training assumptions with hardware-induced variability and enabling robust deployment without excessive hardware overhead. Together, these works highlight the necessity of cross-layer co-design for CiM accelerators and provide a principled path toward dependable, efficient neural inference on emerging memory technologies-paving the way for their adoption in safety- and reliability-critical systems.
SRAM-based FPGAs provide an attractive platform for energy- and latency-constrained CNN inference at the network edge, yet transient faults can lead to silent errors that compromise reliability. Always-on redundancy (e.g., full TMR) improves correctness but incurs substantial performance and energy overhead, while reactive recovery may introduce unacceptable latency on the critical path. We propose ProWAFT, a proactive workload-aware fault-tolerance framework for FPGA-based CNN accelerators that uses partial reconfiguration to selectively apply TMR across reconfigurable partitions. ProWAFT quantifies workload criticality, models fault propagation and reconfiguration overhead, and selects configurations that minimize a composite objective over latency, energy, and reliability risk. Implemented on a Xilinx Zynq UltraScale+ ZCU104 platform with six reconfigurable regions and evaluated on a 500-task trace derived from ResNet-18, MobileNetV2, and EfficientNet-Lite under time-varying SEU injection, ProWAFT achieves lower composite cost than static TMR and reactive reconfiguration while maintaining high task success rate and near-baseline throughput with low online decision overhead.
Xinxin Chen, Haoran Qiao, Yiming Guo +3
Department of Computer Science University of Chinese Academy of Sciences