Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators

Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi, Meysam SharifzadeharXiv 2026 · DOI

TL;DR

This paper introduces a fast, gradient-based analytical framework to identify which parts of a Convolutional Neural Network (CNN) are most vulnerable to hardware faults when deployed on ReRAM-based accelerators. By replacing exhaustive, weeks-long fault injection simulations with a mathematical sensitivity analysis, the authors achieve a $10^4\times$ to $10^5\times$ speedup, enabling the design of fault-tolerant AI hardware in minutes or hours.

What Problem Does This Paper Address?

Resistive Random-Access Memory (ReRAM) is a rising star in the hardware world. It allows for "Processing-in-Memory" (PIM), where the memory cells themselves perform the heavy lifting of neural network math—specifically Vector-Matrix Multiplications (VMM)—using analog signals. This is incredibly efficient for power-hungry CNNs.

However, ReRAM has a reliability problem. Due to fabrication limits and wear-out, cells can suffer from permanent "stuck-at" faults:

  • Stuck-at-High (SaH): The cell is stuck in a high-resistance state.
  • Stuck-at-Low (SaL): The cell is stuck in a low-resistance state.

When a CNN's weights are mapped to these faulty cells, the network's accuracy can plummet. Traditionally, researchers find these "weak points" using Fault Injection (FI)—systematically breaking parts of the model and measuring the fallout. For modern, large-scale models with millions of parameters, exhaustive FI is computationally impossible, often requiring weeks of simulation time.

Methods

The authors propose a scalable, analytical framework that uses gradient-based sensitivity analysis instead of brute-force simulation.

  1. Taylor Expansion Approximation: Instead of running an entire inference pass for every possible fault, they use the first-order (gradient) and second-order (Hessian) derivatives of the loss function. This tells them how much the total error changes when a specific weight is perturbed by a fault.
  2. Hierarchical Granularity: The framework calculates sensitivity at three levels:
  3. Element-wise: Individual weights and biases.
  4. Kernel-wise: Groups of weights that form a convolutional filter.
  5. Layer-wise: The average sensitivity of an entire layer.
  6. Vulnerability Score (VS): They combine these sensitivity values with the statistical probability of faults occurring in actual ReRAM hardware to create a "Vulnerability Score."
  7. Mapping Logic: The paper details how CNN parameters are unrolled and mapped onto ReRAM crossbar arrays, as shown in the general process below:
Fig. 3: General process of mapping of CNN learning parameters to ReRAM crossbars.

Datasets

The framework was evaluated using six well-known CNN architectures across two standard benchmarks:

  • MNIST: Used for training and evaluating SimpleNet and LeNet5.
  • CIFAR-10: Used for larger models including AlexNet, ResNet18, VGG19, and InceptionV3.

Key Insights and Ideas

  • Curvature Matters: The authors found that first-order gradients alone often underestimate fault impact. Including the second-order "curvature" (Hessian) of the loss surface is critical for accurately predicting the damage caused by large weight shifts (like a weight being forced to a maximum or minimum value by a stuck-at fault).
  • The "U-Shaped" Vulnerability: Generally, early layers are highly sensitive because their errors propagate and amplify through the rest of the network. However, the final classifier layers also show high sensitivity because there are no subsequent layers to "filter out" or compensate for the noise.
  • SaL is Deadlier than SaH: In most tested architectures, Stuck-at-Low (SaL) faults contributed significantly more to accuracy degradation than Stuck-at-High (SaH) faults.
  • Kernel Heterogeneity: Within a single layer, some kernels are "critical" while others are "non-critical." This suggests that hardware designers could save resources by only applying expensive redundancy (like triple modular redundancy) to the high-sensitivity kernels identified by this framework.

Key Results

  • Massive Speedup: For a model like SimpleNet, exhaustive fault injection takes nearly 5 days. The proposed analytical method takes roughly 4.7 seconds. For InceptionV3, the method completes in about 39 hours, whereas exhaustive FI would take years.
  • High Accuracy: The Vulnerability Score (VS) showed a strong Spearman rank correlation (up to 0.94) with actual accuracy drops measured via targeted fault injection. This proves the mathematical approximation is a reliable proxy for real-world hardware failure.
  • Granular Insights: The analysis of ResNet18 revealed that convolutional weights and biases are far more critical than BatchNorm parameters, providing a clear roadmap for where to implement fault tolerance.

Limitations and Future Work

  • Hessian Approximation: To remain computationally efficient, the authors used only the diagonal elements of the Hessian matrix. While effective, this ignores off-diagonal interactions between weights.
  • Fault Models: The study focuses on permanent stuck-at faults. Future work could extend this to transient faults (soft errors) or multi-bit upsets.
  • Fault-Aware Mapping: The authors suggest that the next step is using these sensitivity rankings to perform "fault-aware mapping"—essentially "hiding" the most sensitive weights in the healthiest ReRAM cells during the deployment phase.

Summary updated

Abstract

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 (\textit{SaH}) and stuck-at-low (\textit{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 $10^4\times-10^5\times$, enabling fast and accurate vulnerability analysis for large-scale CNNs within only a few minutes or hours.
BibTeX
@misc{dorostkar2026scalable,
  author = {Aniseh Dorostkar and Hamed Farbeh and Hamid R. Zarandi and Meysam Sharifzadeh},
  title = {{Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators}},
  year = {2026},
  eprint = {2611.26307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26307},
}
Figure