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

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

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains, most notably in autonomous driving. While these models achieve high accuracy, they are notoriously vulnerable to small input perturbations. Most formal verification research has focused on non-semantic perturbations, typically defined by $L_p$ norms. These tools verify if a network is robust against tiny, often imperceptible, pixel-wise noise. However, real-world failures often stem from semantic perturbations—changes that have human-interpretable meaning.

Occlusion is a primary example of a semantic perturbation. A "turn left" sign might be misclassified if partially covered by a piece of tape, a sticker, or a stray branch. Standard $L_p$ verification is ill-suited for this problem because an occlusion is not "small" noise in pixel space; it represents a drastic change to a specific cluster of pixels. OccRob addresses this gap by providing the first efficient, SMT-based framework designed to formally verify that DNNs remain robust when parts of an input image are occluded.

The Complexity of Occlusion Verification

The authors identify a significant theoretical hurdle: verifying occlusion robustness is NP-complete for ReLU-based networks. This explains why naive approaches to formal verification fail to scale. In pixel space, a $5 \times 5$ black square changes 25 pixels completely. This would be considered a massive $L_\infty$ perturbation, yet it is a very simple semantic change. The challenge lies in efficiently searching the space of all possible occlusion locations and colors to prove no such perturbation can flip the network's classification.

Methodology: The "Network-as-Encoder" Approach

The core innovation of OccRob is a "divide and conquer" strategy that transforms the perturbation itself into part of the neural architecture.

Occlusion Neural Network (ONN)

Instead of writing complex logical constraints to describe an occlusion, the authors construct a small, 3-hidden-layer "Occlusion Neural Network." This ONN takes coordinates and color values as input and outputs an occluded version of the original image. By concatenating this ONN to the front of the target Feed-forward Neural Network (FNN), the authors create a single, larger composite network.

This "Network-as-Encoder" trick is elegant because it allows the verification task to be treated as a standard reachability problem. It leverages the highly optimized internal logic of existing SMT solvers, such as Marabou, which are already designed to handle ReLU activations through techniques like Simplex-based pruning.

Acceleration Techniques

To make the verification tractable, OccRob introduces two key acceleration methods:

  1. Occlusion Space Splitting: The image is divided into smaller sub-regions. Verifying these smaller "queries" in parallel is significantly faster than searching the entire image space at once.
Occlusion Space Splitting partitions the search space into smaller sub-regions to accelerate verification.
  1. Eager Falsification by Label Sorting: The tool prioritizes checking the most likely "wrong" labels first. If it finds a counterexample (a specific occlusion that breaks the network) early, it can stop immediately. Label sorting alone provided up to a 5x speedup in non-robust cases.

Experimental Evaluation and Results

The authors evaluated OccRob on two widely recognized benchmarks: MNIST (handwritten digits) and GTSRB (German Traffic Sign Recognition Benchmark). They tested six different FNN architectures ranging from 70 to 1,300 ReLU units.

Efficiency and Performance

OccRob outperformed naive SMT encoding by a landslide. In many cases, the naive method timed out, while OccRob finished in seconds or minutes. On the GTSRB dataset, OccRob achieved up to a 30x speedup. This efficiency is crucial for making formal verification a viable part of the safety-critical software development lifecycle.

Counterexample Generation

When a network is found to be non-robust, OccRob successfully generates "occlusive adversarial examples." These are specific images with small occlusions that cause misclassification.

A generated counterexample where a 70 km/h sign is misclassified as 30 km/h due to a small occlusion.

As illustrated above, a small uniform occlusion (the cyan square) can cause a network to misidentify a 70 km/h speed limit sign as a 30 km/h sign. Such examples provide clear, interpretable evidence of a model's weaknesses.

Conclusion

OccRob demonstrates that formal verification of semantic robustness is not only possible but can be made highly efficient. By encoding perturbations as neural layers and employing clever search-space splitting, the framework provides a path toward more reliable DNNs in autonomous systems. Future research directions include extending the framework to Convolutional Neural Networks (CNNs) and using the generated counterexamples for adversarial training to "repair" and harden models against real-world occlusions.

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