Skip to main content
QUICK REVIEW

[Paper Review] Towards the Quantification of Safety Risks in Deep Neural Networks

Peipei Xu, Wenjie Ruan|arXiv (Cornell University)|Sep 13, 2020
Adversarial Robustness in Machine LearningComputer Science51 references5 citations
TL;DR

This paper proposes DeepQuant, a generic framework for quantifying safety risks in deep neural networks by modeling risks through a Lipschitz-based metric over a unified safety property. It introduces uncertainty examples—inputs near decision boundaries where networks are unsure despite human clarity—and demonstrates efficient, scalable computation via derivative-free optimization with GPU tensor parallelization, achieving tight robustness and uncertainty quantification on MNIST, CIFAR-10, and ImageNet models.

ABSTRACT

Safety concerns on the deep neural networks (DNNs) have been raised when they are applied to critical sectors. In this paper, we define safety risks by requesting the alignment of the network's decision with human perception. To enable a general methodology for quantifying safety risks, we define a generic safety property and instantiate it to express various safety risks. For the quantification of risks, we take the maximum radius of safe norm balls, in which no safety risk exists. The computation of the maximum safe radius is reduced to the computation of their respective Lipschitz metrics - the quantities to be computed. In addition to the known adversarial example, reachability example, and invariant example, in this paper we identify a new class of risk - uncertainty example - on which humans can tell easily but the network is unsure. We develop an algorithm, inspired by derivative-free optimization techniques and accelerated by tensor-based parallelization on GPUs, to support efficient computation of the metrics. We perform evaluations on several benchmark neural networks, including ACSC-Xu, MNIST, CIFAR-10, and ImageNet networks. The experiments show that, our method can achieve competitive performance on safety quantification in terms of the tightness and the efficiency of computation. Importantly, as a generic approach, our method can work with a broad class of safety risks and without restrictions on the structure of neural networks.

Motivation & Objective

  • To address the lack of a general, scalable, and verifiable method for quantifying diverse safety risks in deep neural networks (DNNs) applied to safety-critical systems.
  • To define a generic safety property expression that can be instantiated to represent various risk types, including adversarial, reachability, invariant, and uncertainty risks.
  • To develop an efficient, scalable, and verifiable method for computing the maximum safe norm ball radius around inputs, ensuring no safety risk exists within that radius.
  • To identify and formalize a new class of safety risk—uncertainty examples—where human perception is clear but the DNN output is highly uncertain.
  • To enable practical safety evaluation of large-scale DNNs, including state-of-the-art models like those on ImageNet, with theoretical guarantees and competitive tightness.

Proposed method

  • Define a generic safety property parameterized over the DNN output, which can be instantiated to express multiple risk types such as adversarial, reachability, invariant, and uncertainty risks.
  • Quantify safety risks as the maximum radius of an Lp-norm ball around a given input where no risk exists, using a conservative estimate based on the Lipschitz constant of the safety property.
  • Formulate the computation of the maximum safe radius as an optimization problem to minimize the Lipschitz metric, using a derivative-free optimization algorithm inspired by stochastic search methods.
  • Accelerate computation via tensor-based parallelization on GPUs, enabling efficient scaling to large models with complex architectures and activation functions.
  • Use KL divergence between the DNN’s output distribution and a uniform distribution as a metric to detect and quantify uncertainty examples.
  • Implement the framework in the DeepQuant tool, open-sourced on GitHub, supporting evaluation across MNIST, CIFAR-10, and ImageNet models with L∞-norm and other norms.

Experimental results

Research questions

  • RQ1Can a unified framework be developed to quantify diverse safety risks in DNNs, including both known and novel risk types?
  • RQ2How can the maximum safe norm ball radius be conservatively and efficiently computed for a given input and DNN, providing theoretical guarantees?
  • RQ3What is the impact of network depth and architecture on the quantification of safety risks, particularly uncertainty?
  • RQ4Can uncertainty examples—where humans are certain but DNNs are confused—be systematically detected and quantified?
  • RQ5How does the proposed method scale to large, real-world DNNs such as those used in ImageNet, and how does its performance compare to existing approaches?

Key findings

  • DeepQuant successfully identifies and quantifies uncertainty examples—previously unexplored safety risks—by minimizing KL divergence between network output and uniform distribution, revealing regions of high model uncertainty.
  • On MNIST, the method achieves mean L∞-norm robustness values ranging from 32.16 (DNN-2) to 77.48 (DNN-6), with DNN-4 and DNN-5 showing a balanced trade-off between accuracy (99.06–99.16%) and robustness.
  • For CIFAR-10 and ImageNet models, DeepQuant demonstrates scalability and efficiency through GPU-accelerated tensor parallelization, enabling evaluation on large-scale networks.
  • The uncertainty quantification results show a sharp increase in uncertainty as the norm-ball radius increases, with DNN-1 and DNN-2 exhibiting significantly worse uncertainty at d=0.15.
  • Intermediate images generated during uncertainty search show a progressive increase in ambiguity, with the KL divergence decreasing to zero, indicating complete model confusion at the optimal perturbation.
  • DeepQuant is the first tool to automatically and insightfully reveal uncertainty examples, providing a new dimension for safety evaluation beyond adversarial robustness.

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.