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.
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.
The DNNV pipeline consists of four primary stages:
- 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. - 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.
- Property Reduction: Complex safety properties are reduced to simpler, equivalent forms (e.g., standard robustness properties) that target verifiers can process.
- 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