OccRob: Efficient SMT-Based Occlusion Robustness Verification of Deep Neural Networks

Xingwu Guo, Ziwei Zhou, Yueling Zhang, Guy Katz, Min Zhang

Abstract

Occlusion is a prevalent and easily realizable semantic perturbation to deep neural networks (DNNs). It can fool a DNN into misclassifying an input image by occluding some segments, possibly resulting in severe errors. Therefore, DNNs planted in safety-critical systems should be verified to be robust against occlusions prior to deployment. However, most existing robustness verification approaches for DNNs are focused on non-semantic perturbations and are not suited to the occlusion case. In this paper, we propose the first efficient, SMT-based approach for formally verifying the occlusion robustness of DNNs. We formulate the occlusion robustness verification problem and prove it is NP-complete. Then, we devise a novel approach for encoding occlusions as a part of neural networks and introduce two acceleration techniques so that the extended neural networks can be efficiently verified using off-the-shelf, SMT-based neural network verification tools. We implement our approach in a prototype called OccRob and extensively evaluate its performance on benchmark datasets with various occlusion variants. The experimental results demonstrate our approach's effectiveness and efficiency in verifying DNNs' robustness against various occlusions, and its ability to generate counterexamples when these DNNs are not robust.

Introduction

Deep Neural Networks (DNNs) are increasingly the "eyes" of safety-critical systems, from autonomous vehicles to facial recognition. However, these systems are vulnerable to occlusion—a common, real-world "semantic" perturbation where parts of an input image are blocked. A piece of tape on a "Turn Left" sign might trick a car into misclassification, leading to catastrophic results. While robustness against tiny, invisible pixel noise (non-semantic perturbations) has been extensively studied, formally verifying robustness against physical blocks of color remains an open challenge.

The Challenge of Semantic Occlusion

Most formal verification for DNNs relies on $L_p$ norms, which assume an attacker changes every pixel by a tiny, almost invisible amount. Occlusion is a semantic perturbation: it changes a specific group of neighboring pixels drastically (e.g., from white to black).

Example of a semantic occlusion on a traffic sign where a portion of the '0' is blocked.

Existing verification tools struggle with this because the "jump" in pixel values is too large for standard approximation techniques. Furthermore, the search space for where an occlusion might occur is massive. Before OccRob, there was no efficient way to mathematically guarantee that a network wouldn't fail if a small portion of a traffic sign was covered.

Methodology: The OccRob Framework

OccRob addresses this using a "divide and conquer" approach centered on Satisfiability Modulo Theories (SMT).

The Occlusion Neural Network (ONN)

The core innovation is the Occlusion Neural Network (ONN). Instead of writing complex logical formulas to describe an occlusion, the authors model the perturbation itself as a small auxiliary neural network. This ONN takes parameters such as x/y position and color and outputs an occluded image.

Architecture of the neural network used to simulate and verify occlusion robustness.

By "gluing" this ONN to the front of the target network, the entire system becomes a single large neural network. Verifying occlusion robustness is then transformed into a standard reachability problem: "Is there any input to the ONN that causes the final output to change?"

Acceleration Techniques

To handle the complexity, the authors introduced two key techniques:

  1. Occlusion Space Splitting: The image is broken into a grid, allowing small sections to be verified in parallel.
  2. Label Sorting (Eager Falsification): The tool checks the most likely "wrong" labels first. If a failure (counterexample) is found early, the process terminates, saving significant computation time.

Experimental Evaluation

The authors evaluated OccRob using the MNIST (handwritten digits) and GTSRB (German Traffic Sign Recognition Benchmark) datasets across various fully-connected networks (FNNs) with up to 1,300 ReLU units.

Key Results

  • Efficiency: OccRob is up to 30x faster than naive SMT encoding methods.
  • Scalability: OccRob successfully verified over 92% of queries, whereas naive methods often timed out on larger networks.
  • Counterexample Generation: When a network is found to be non-robust, OccRob generates a specific occluded image that causes the failure, providing valuable data for model retraining.

Conclusion and Future Work

OccRob represents the first efficient formal verification tool for image occlusions. By encoding perturbations as neural layers, it leverages optimized SMT-based solvers like Marabou. While currently focused on FNNs and ReLU activations, future work aims to extend this framework to Convolutional Neural Networks (CNNs) and other activation functions. OccRob provides a critical formal bridge between mathematical verification and the physical reality of safety-critical AI deployment.

Summary updated

BibTeX
@inproceedings{guo2023occrob,
  author = {Xingwu Guo and Ziwei Zhou and Yueling Zhang and Guy Katz and Min Zhang},
  title = {{OccRob: Efficient SMT-Based Occlusion Robustness Verification of Deep Neural Networks}},
  booktitle = {TACAS},
  year = {2023},
  doi = {10.1007/978-3-031-30823-9\_11},
}
Figure