Skip to main content
QUICK REVIEW

[Paper Review] Robustness of Neural Networks against Storage Media Errors

Minghai Qin, Chao Sun|arXiv (Cornell University)|Sep 18, 2017
Advanced Neural Network ApplicationsComputer Science14 references26 citations
TL;DR

This paper investigates the robustness of trained deep neural networks against bit errors in non-volatile memory storage when error correction codes (ECCs) are disabled. It proposes a check-bit-based weight nulling technique that improves accuracy by orders of magnitude and introduces a Hamming-distance-based binary representation that asymptotically reduces distortion to zero as bit width increases, significantly outperforming standard binary or IEEE 754 representations under bit flips.

ABSTRACT

We study the trade-offs between storage/bandwidth and prediction accuracy of neural networks that are stored in noisy media. Conventionally, it is assumed that all parameters (e.g., weight and biases) of a trained neural network are stored as binary arrays and are error-free. This assumption is based upon the implementation of error correction codes (ECCs) that correct potential bit flips in storage media. However, ECCs add storage overhead and cause bandwidth reduction when loading the trained parameters during the inference. We study the robustness of deep neural networks when bit errors exist but ECCs are turned off for different neural network models and datasets. It is observed that more sophisticated models and datasets are more vulnerable to errors in their trained parameters. We propose a simple detection approach that can universally improve the robustness, which in some cases can be improved by orders of magnitude. We also propose an alternative binary representation of the parameters such that the distortion brought by bit flips is reduced and even theoretically vanishing when the number of bits to represent a parameter increases.

Motivation & Objective

  • To analyze the vulnerability of deep neural networks to bit errors in non-volatile memory when ECCs are disabled.
  • To identify that more complex models and datasets are more sensitive to parameter bit flips.
  • To propose a lightweight check-bit mechanism that universally enhances robustness across models and datasets.
  • To design a binary representation of real numbers that minimizes distortion from bit flips, especially as bit width increases.
  • To theoretically and empirically validate that distortion can be reduced to zero in the limit of large bit widths.

Proposed method

  • Proposes a check-bit-based weight nulling technique: each weight is paired with a parity bit to detect and correct single-bit errors.
  • Uses Hamming-distance-based bijection to map binary arrays to integers, prioritizing lower Hamming weight values to smaller integers.
  • Defines distortion metrics d_max,k(f) and d_ave,k(f) to quantify the maximum and average error in parameter representation after bit flips.
  • Applies Stirling's approximation to prove that d_max,1(f) → 0 as q → ∞, showing asymptotic distortion reduction.
  • Employs CIFAR-10 and ImageNet datasets with ResNet, VGG, and DenseNet models to evaluate robustness under raw bit error rates (RBER).
  • Compares performance of standard binary expansion, IEEE 754 floating-point, and the proposed Hamming-based representation under bit flip conditions.

Experimental results

Research questions

  • RQ1How does the robustness of deep neural networks degrade under bit errors in non-volatile memory when ECCs are disabled?
  • RQ2Can a universal, lightweight check-bit mechanism improve robustness across diverse neural network architectures and datasets?
  • RQ3Does a Hamming-distance-based binary representation of real numbers reduce distortion from bit flips compared to standard representations?
  • RQ4What is the theoretical limit of distortion reduction as the number of bits per parameter increases?
  • RQ5To what extent can the proposed binary representation reduce accuracy loss under realistic bit error rates?

Key findings

  • The check-bit-based weight nulling technique improves robustness by orders of magnitude in some cases, significantly enhancing accuracy under bit flip conditions.
  • More complex models like ResNet and DenseNet are more vulnerable to parameter bit flips than simpler architectures such as VGG.
  • The Hamming-distance-based binary representation reduces distortion to zero in the limit of large bit widths (q → ∞), unlike binary expansion or IEEE 754, which maintain a constant minimum distortion.
  • Empirical results on CIFAR-10 show a measurable but limited improvement with the Hamming-based representation at q=16, suggesting that larger bit widths are needed for full benefit.
  • Theoretical analysis confirms that d_max,1(f) → 0 as q → ∞, with convergence rate O(1/√q), indicating that distortion diminishes slowly but asymptotically.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.