UR4NNV: Neural Network Verification, Under-approximation Reachability Works!

Zhen Liang, Taoran Wu, Ran Zhao, Bai Xue, Ji Wang, Wenjing Yang, Shaojun Deng, Wanwei Liu · DOI

Introduction: Solving the "Unknown Dilemma"

As deep neural networks (DNNs) are increasingly deployed in safety-critical systems like autonomous vehicles, the need for formal verification becomes paramount. Current verification techniques generally fall into two categories: exact methods and over-approximation methods. While exact methods are sound and complete, they suffer from high computational costs (NP-hard). Conversely, over-approximation methods are fast but often result in the "unknown dilemma."

Conceptual comparison of over-approximation vs. under-approximation based verification.

In over-approximation, a "wrapper" (e.g., a polytope) is constructed around the possible outputs. If this wrapper intersects a forbidden region, it remains "unknown" whether the actual network output is unsafe or if the intersection is merely an artifact of the approximation error. UR4NNV addresses this by utilizing under-approximation reachability analysis, finding guaranteed sub-regions within the actual output to definitively identify safety violations.

Methodology: Random Branch-based Under-approximation

The core of UR4NNV is an algorithm designed for ReLU-based networks. When a ReLU function encounters values spanning zero, it splits the data's geometry. UR4NNV randomly selects branches of these splits to track a "sub-polytope" that is mathematically guaranteed to be a subset of the true reachable set.

Key features of the UR4NNV framework include:

  • Soundness for Falsification: Any violation found within the under-approximated region is a guaranteed counterexample (UNSAFE).
  • Heuristic Optimizations: The framework employs dimension-priority assignment to maximize sub-polytope size and pruning to remove redundant calculations.
  • Parallel Execution: Multiple random trials (epochs) run simultaneously to explore the output space efficiently.

Experimental Evaluation

The researchers evaluated UR4NNV using the ACAS Xu benchmark, a standard suite for airborne collision avoidance consisting of 45 neural networks and 10 safety properties.

Performance comparison of various verification methods with and without the UR4NNV pre-processor.

As shown in the experimental results, UR4NNV is significantly faster than exact solvers like Reluplex and Marabou, often by 1 to 2 orders of magnitude. Crucially, in scenarios where traditional over-approximation methods (Zonotope, Abstract Domain) returned "UNKNOWN" for all tasks, UR4NNV provided deterministic "UNSAFE" conclusions for 39 out of 44 tasks.

Key Insights and Impact

UR4NNV redefines the role of falsification in verification. By acting as a high-speed "pre-processor," it can catch "easy" bugs in seconds, allowing slower exact solvers to focus on more complex cases. When integrated into existing pipelines, it reduced total verification time by 76.5% to 88.3%. Furthermore, for cases where safety is not violated, UR4NNV provides a probabilistic "confidence level" based on the explored space.

Limitations and Future Work

While highly effective for ReLU networks, UR4NNV is currently limited to this specific activation function. Future work aims to extend the under-approximation logic to Sigmoid and Tanh functions. Additionally, while it excels at falsification, it cannot provide the 100% mathematical certainty of safety that exact solvers offer, instead providing a high-confidence probabilistic measure.

Summary updated

BibTeX
@misc{liang2024ur,
  author = {Zhen Liang and Taoran Wu and Ran Zhao and Bai Xue and Ji Wang and Wenjing Yang and Shaojun Deng and Wanwei Liu},
  title = {{UR4NNV: Neural Network Verification, Under-approximation Reachability Works!}},
  year = {2024},
  eprint = {2401.12550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.12550},
}
Figure