Robustness of Neural Networks against Storage Media Errors

Minghai Qin, Chao Sun, Dejan VucinicarXiv 2017

Introduction

As deep learning models continue to scale, their storage requirements in Non-Volatile Memory (NVM) have grown to gigabytes. Traditionally, system reliability is maintained through Error Correction Codes (ECC), which ensure data integrity but impose a "tax" of 10-20% storage overhead and increased latency. In high-throughput environments, such as real-time video processing for autonomous vehicles or edge-based in-memory computing, this overhead becomes a critical bottleneck. This research explores whether neural networks can be designed to inherently tolerate raw bit errors, potentially allowing for the reduction or elimination of traditional ECC.

The Fragility of Standard Formats

The primary obstacle to error tolerance is the fragility of standard numerical formats. In IEEE 754 floating-point representation, a single bit flip in the exponent can transform a small weight (e.g., 0.3) into a catastrophic value (e.g., 21,000). Such "exploding weights" can instantly disrupt the logic of an entire model. To combat this, the researchers propose moving away from standard floats toward more robust representations and error-handling strategies.

Proposed Methodology

The study introduces three primary strategies to mitigate the impact of storage noise, modeled as a Binary Symmetric Channel:

  1. Weight Nulling via Check-Bits: Rather than attempting the computationally expensive task of correcting a flipped bit, the system simply detects it using a single parity bit (15 bits for weight, 1 for parity). If a parity check fails, the weight is "nulled"—set to zero. This effectively removes the corrupted connection, acting as a dynamic form of dropout.
  2. Quantization: To prevent the exploding weight problem, the authors utilize direct linear quantization within a fixed range $[w_{min}, w_{max}]$. This ensures that no single bit flip can result in a value outside the expected distribution of the network.
  3. Hamming-Distance-Based Mapping: A novel binary-to-real mapping was proposed to ensure that numerical distortion decreases as bit depth increases. Unlike standard binary, where a Most Significant Bit (MSB) flip always causes a 50% relative distortion, this mapping theoretically approaches zero distortion as the number of bits grows.
Architecture of a typical Convolutional Neural Network (CNN) used in the study, featuring convolution, pooling, and fully connected layers.

Experimental Evaluation

The effectiveness of these methods was tested across three distinct architectures and datasets: MNIST (CNN), CIFAR-10 (VGG-like), and IMDB sentiment analysis (LSTM).

Key Insights

  • Zero is Safer than Wrong: The core finding is that setting a corrupted weight to zero is significantly less damaging than allowing a high-magnitude corrupted weight to persist. Because many weights in trained networks are already near zero, nulling mimics natural sparsity.
  • Temporal Fragility in RNNs: Recurrent Neural Networks (RNNs) proved more sensitive to errors than CNNs. Because LSTM weights are reused at every time step, a single bit error propagates through the entire temporal sequence, compounding the failure.
  • Layer Sensitivity: While later layers in CNNs contain more parameters and are thus more likely to experience bit flips, early layers remain critical for feature extraction, making them high-impact points of failure.

Results and Discussion

The "Weight Nulling" approach demonstrated dramatic improvements in the Raw Bit Error Rate (RBER) that models could tolerate while maintaining 95% of their baseline accuracy. For CIFAR-10, robustness improved by 50x, allowing the model to survive an RBER of $10^{-3}$ compared to the baseline failure at $2 \times 10^{-5}$. Even more striking was the Cat-vs-Dog classification task using VGG-16, which saw a 250x improvement in error tolerance.

Accuracy degradation of the MNIST model as the Raw Bit Error Rate (RBER) increases.

As shown in the MNIST evaluation, accuracy remains remarkably stable at lower RBERs but begins to degrade more sharply as the error rate exceeds 0.01. The implementation of weight nulling shifts this degradation curve significantly to the right.

Conclusion and Future Work

By treating neural network weights as inherently resilient rather than requiring perfect storage, we can significantly reduce the hardware overhead of AI systems. While the Hamming-distance mapping showed only slight experimental gains at 16-bit depths, its theoretical potential remains high for higher-precision systems. Future work will focus on implementing these logic-gate-level changes in NVM controller hardware and investigating noise-aware training to further bolster these resilience gains.

Summary updated

BibTeX
@misc{qin2017robustness,
  author = {Minghai Qin and Chao Sun and Dejan Vucinic},
  title = {{Robustness of Neural Networks against Storage Media Errors}},
  year = {2017},
  eprint = {1709.06173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.06173},
}
Figure