Skip to main content
QUICK REVIEW

[Paper Review] HarDNN: Feature Map Vulnerability Evaluation in CNNs

Abdulrahman Mahmoud, Siva Kumar Sastry Hari|arXiv (Cornell University)|Feb 22, 2020
Adversarial Robustness in Machine LearningComputer Science26 references12 citations
TL;DR

HarDNN is a software-directed framework that identifies and selectively protects vulnerable feature maps in CNNs to improve resilience against transient hardware errors. By using statistical error injection with a novel $Δ$ loss metric and fast heuristics based on activation and gradient information, HarDNN achieves up to 10× higher resilience in SqueezeNet with only 30% additional computation, demonstrating superlinear gains in error coverage per computational overhead.

ABSTRACT

As Convolutional Neural Networks (CNNs) are increasingly being employed in safety-critical applications, it is important that they behave reliably in the face of hardware errors. Transient hardware errors may percolate undesirable state during execution, resulting in software-manifested errors which can adversely affect high-level decision making. This paper presents HarDNN, a software-directed approach to identify vulnerable computations during a CNN inference and selectively protect them based on their propensity towards corrupting the inference output in the presence of a hardware error. We show that HarDNN can accurately estimate relative vulnerability of a feature map (fmap) in CNNs using a statistical error injection campaign, and explore heuristics for fast vulnerability assessment. Based on these results, we analyze the tradeoff between error coverage and computational overhead that the system designers can use to employ selective protection. Results show that the improvement in resilience for the added computation is superlinear with HarDNN. For example, HarDNN improves SqueezeNet's resilience by 10x with just 30% additional computations.

Motivation & Objective

  • To address the growing need for resilience in safety-critical CNN applications exposed to transient hardware errors.
  • To identify which feature maps in a CNN are most vulnerable to hardware-induced inference corruption.
  • To enable selective protection of only the most vulnerable feature maps, minimizing computational overhead.
  • To develop fast, accurate vulnerability estimation techniques that avoid full-scale error injection.
  • To quantify the tradeoff between resilience improvement and computational cost in protected CNNs.

Proposed method

  • Employs statistical error injection across multiple transient error models to estimate feature map vulnerability.
  • Introduces $Δ$ loss as a fine-grained metric to measure output corruption severity, replacing binary misclassification.
  • Develops six heuristics using activation values and backpropagation gradients to predict vulnerability without error injection.
  • Uses the $Δ$ loss metric to rank feature maps by vulnerability and guide selective protection.
  • Applies selective protection by duplicating only the most vulnerable feature maps to improve resilience.
  • Evaluates tradeoffs between error coverage and computational overhead using real CNNs like SqueezeNet and ResNet50.

Experimental results

Research questions

  • RQ1Which feature maps in a CNN are most susceptible to transient hardware errors leading to output corruption?
  • RQ2How can vulnerability be accurately and efficiently estimated at the feature map level without exhaustive error injection?
  • RQ3What is the relationship between computational overhead and resilience improvement when selectively protecting vulnerable feature maps?
  • RQ4How do different error models affect the relative vulnerability ranking of feature maps?
  • RQ5Can fast heuristics based on activation and gradient information provide reliable vulnerability estimates compared to full error injection?

Key findings

  • The $Δ$ loss metric enables 10× faster error injection campaigns than binary misclassification, with comparable vulnerability estimation accuracy.
  • On average, only 30% of feature maps account for 76% of total network vulnerability, indicating high skew in error susceptibility.
  • HarDNN achieves a 10× improvement in resilience for SqueezeNet with just 30% additional computational overhead.
  • The improvement in resilience is superlinear with respect to added computation, indicating high efficiency of selective protection.
  • Gradient-based heuristics provide a strong trade-off between speed and accuracy, making them suitable for fast profiling during development.
  • The vulnerability ranking of feature maps remains consistent across three different transient error models, validating the robustness of the approach.

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.