DNNV: A Framework for Deep Neural Network Verification

David Shriver, Sebastian G. Elbaum, Matthew B. Dwyer

Introduction: The Fragmentation of DNN Verification

The field of Deep Neural Network (DNN) verification is currently characterized by a lack of standardization. While numerous algorithms exist to prove safety properties—such as ensuring an autonomous vehicle never misinterprets a wall—each tool typically mandates its own unique input format for both network architectures and safety properties.

This fragmentation creates significant barriers: developers must constantly update tools for new operations, users face vendor lock-in, and researchers struggle with "apples-to-apples" comparisons because benchmarks are rarely portable across different verifiers.

Table 1: A comparison of various DNN verifiers, highlighting the diversity in network and property formats.

The DNNV Framework Architecture

To address these challenges, the authors propose DNNV, a "universal adapter" framework that standardizes the verification workflow. DNNV acts as an intermediary layer, decoupling the definition of networks and properties from the specific requirements of individual verification tools.

Figure 1: The DNNV pipeline, showing the transformation of standardized inputs into verifier-specific formats.

The DNNV pipeline consists of four primary stages:

  1. Standardized Input: DNNV utilizes ONNX (Open Neural Network Exchange) for models and introduces DNNP, a Python-embedded Domain Specific Language (DSL) for properties. DNNP allows users to define constraints using familiar libraries like torchvision.
  2. Network Simplification: The framework performs semantics-preserving transformations. For instance, it can merge Batch Normalization layers into preceding Convolutional layers, enabling compatibility with verifiers that do not natively support Batch Norm.
  3. Property Reduction: Complex safety properties are reduced to simpler, equivalent forms (e.g., standard robustness properties) that target verifiers can process.
  4. Translation & Execution: Finally, DNNV translates the processed inputs into the native format of the chosen verifier, executes the tool, and standardizes the output as SAT, UNSAT, or Unknown.

Evaluation and Key Results

The framework was evaluated using 19 existing benchmarks, including ACAS Xu, MNIST, CIFAR-10, and specialized malware detection datasets. By automating the "massaging" of inputs, DNNV significantly expanded the reach of existing tools.

Key Insights: * Increased Compatibility: DNNV increased the average benchmark support across 13 verifiers from 30% to 74%. * Broad Operation Support: DNNV supports 31 ONNX operations—40% more than the next most versatile tool, ERAN. * Efficiency in Integration: Adding support for a new verifier typically requires only a few hundred lines of Python code. In total, DNNV enabled 166 successful verifier-benchmark combinations, a 2.4x increase over the 68 combinations possible natively.

Limitations and Future Directions

Despite its success, DNNV is constrained by the underlying mathematical limits of the verifiers it supports. For example, if a verifier is algorithmically restricted to ReLU activation functions, DNNV cannot enable support for networks using Sigmoid or Tanh activations. Additionally, while the transformation steps add some overhead, the primary challenge for future work lies in keeping pace with the rapid evolution of new neural network layer types through advanced graph-rewriting techniques.

Summary updated

BibTeX
@inproceedings{shriver2021dnnv,
  author = {David Shriver and Sebastian G. Elbaum and Matthew B. Dwyer},
  title = {{DNNV: A Framework for Deep Neural Network Verification}},
  booktitle = {CAV},
  year = {2021},
  doi = {10.1007/978-3-030-81685-8\_6},
}
Figure