Input Validation for Neural Networks via Runtime Local Robustness Verification

Jiangchao Liu, Liqian Chen, Antoine Miné, Ji WangarXiv 2020

Abstract

Deep Neural Networks (DNNs) are susceptible to adversarial attacks and natural misclassifications. This paper presents a runtime input validation framework that leverages local robustness verification to identify suspicious inputs. By calculating the "robustness radius"—the minimum distance to a decision boundary—the framework can distinguish between valid inputs and malicious or erroneous ones. Evaluation on standard benchmarks demonstrates high detection rates with low false-alarm overhead.

Introduction

The brittleness of Deep Neural Networks (DNNs) poses significant risks in safety-critical applications. Adversarial examples, crafted through imperceptible perturbations, can lead to catastrophic failures. While formal verification offers global guarantees, its computational complexity often precludes real-time application. This work shifts the paradigm toward runtime validation, focusing on the local robustness of individual inputs to ensure system integrity during operation.

Methodology

The proposed framework centers on the robustness radius, defined as the minimum $L_\infty$ distance required to change a network's classification for a given input.

Verification Techniques

The authors employ the ERAN (Extensible Robustness Analysis) framework, utilizing two levels of verification:

  1. Complete Verification: Employs Mixed-Integer Linear Programming (MILP) for exact radius calculation. Though accurate, it is computationally intensive.
  2. Incomplete Verification: Uses abstract interpretation (e.g., DeepZono) to derive a lower bound for the radius. This polynomial-time approach is optimized for runtime deployment.

Validation Strategies

Two primary filters are introduced:

  • Threshold-based Validation: Rejects inputs with a robustness radius below a predefined limit ($\delta$).
  • Distribution-based Validation: Monitors a sliding window of radii from accepted inputs. It applies a normality test (D’Agostino and Pearson’s) to detect deviations from the expected distribution of clean data, providing a defense against sophisticated sequential attacks.

Experimental Evaluation

The framework was tested on MNIST and CIFAR10 datasets against various attacks, including FGSM, C&W, and HopSkipJump.

The "Hole" Phenomenon

A key discovery is that adversarial and misclassified inputs typically reside in "holes" within the decision space, characterized by significantly smaller robustness radii compared to valid data.

Robustness radii for valid data samples.
Robustness radii for adversarial examples (C&W attack).

As shown in the figures above, valid data (Figure 2) exhibits a much higher distribution of robustness radii than adversarial examples (Figure 6), which cluster near the decision boundaries. This separation allows for effective filtering.

Performance Metrics

On a CNN trained for MNIST, the threshold method achieved:

  • Rejection Rates: 75% of natural misclassifications and 95-100% of adversarial attacks.
  • False Alarm Rate: Approximately 3%.
  • Efficiency: Incomplete verification consistently processed inputs in under one second, making it feasible for near-real-time use.

Discussion and Conclusion

The study demonstrates that approximate robustness radii are sufficient for effective runtime filtering. While challenges remain regarding scalability to larger architectures and performance on lower-accuracy base models (like CIFAR10), the framework provides a practical layer of defense for DNNs in real-world environments. Future work will explore "robustness-aware" adaptive attacks and further optimization for high-frequency systems.

Summary updated

BibTeX
@misc{liu2020input,
  author = {Jiangchao Liu and Liqian Chen and Antoine Miné and Ji Wang},
  title = {{Input Validation for Neural Networks via Runtime Local Robustness Verification}},
  year = {2020},
  eprint = {2002.03339},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03339},
}
Figure