Incremental Satisfiability Modulo Theory for Verification of Deep Neural Networks

Pengfei Yang, Zhiming Chi, Zongxin Liu, Mengyu Zhao, Cheng-Chao Huang, Shaowei Cai, Lijun ZhangarXiv 2023 · DOI

Formal verification of Deep Neural Networks (DNNs) provides mathematical guarantees of safety, yet its high computational cost often hinders its application in iterative development cycles. This paper introduces DeepInc, an incremental Satisfiability Modulo Theory (SMT) solver designed to verify modified DNNs efficiently. By reusing "proofs" from previous verification runs, DeepInc can verify updated networks orders of magnitude faster than traditional methods.

The Challenge of Formal Verification

Deep Neural Networks are notoriously sensitive; minor input perturbations can lead to significant output changes. Formal verification, specifically SMT solving, is used to prove that a network remains safe within defined input regions.

Figure 1: A simple neural network architecture with ReLU activations.

However, for ReLU-based networks, this is an NP-complete problem. In practice, DNNs are rarely static. Engineers frequently modify weights to repair bugs, fine-tune performance, or enhance robustness. Traditionally, any such modification required re-running the entire verification process from scratch. DeepInc addresses this incremental DNN verification problem, enabling efficient safety checks after minor network updates.

Methodology: Leveraging Proof Inheritance

DeepInc is built upon the Reluplex framework, extending it with an incremental algorithm that utilizes the search tree from a previous verification as a roadmap for the new version. The solver transforms the network into a system of linear constraints and ReLU relaxations to facilitate formal analysis.

Figure 2: Encoding the network as a system of linear constraints and ReLU relaxations for verification.

The core techniques include:

  • Proof Inheritance: The solver identifies "leaves" in the original search tree where the network was proven safe (UNSAT) or where counterexamples were found (SAT).
  • Targeted Bound Tightening: Instead of a full recalculation, DeepInc uses DeepPoly (an abstract interpretation method) and Linear Programming (LP) to tighten numerical bounds specifically for constraints that previously led to an "UNSAT" result.
  • Heuristic Search: When a counterexample was previously identified, the solver prioritizes branches with similar activation patterns to find new violations quickly.
  • Multi-Objective Repair: This incremental approach is also applied to DNN repair, allowing the system to fix specific violations while ensuring that other safety properties are preserved by limiting weight change rates.

Experimental Evaluation

The researchers evaluated DeepInc using the ACAS Xu (Airborne Collision Avoidance System for Unmanned Aircraft) benchmark, a standard suite of 45 networks. They tested modified versions with global and partial weight changes ranging from 0.1% to 5% across various safety and local robustness properties.

Key Results

  • Performance: DeepInc outperformed the state-of-the-art Marabou solver in 81% of test cases.
  • Speedup: For networks that remained safe after modification, the solver achieved accelerations up to 100x faster than non-incremental methods.
  • Robustness in Repair: In multi-objective repair tasks, DeepInc preserved up to 80% of local robustness properties, significantly outperforming methods like PRDNN, which often failed to maintain secondary safety properties while fixing a primary violation.

Insights and Future Directions

A central finding of this work is the stability of proofs: small quantitative weight changes often do not alter the qualitative structure of the verification search tree. By focusing on the variables involved in original contradictions, the solver avoids redundant exploration of the state space.

However, some limitations remain:

  • Structural Constraints: DeepInc currently requires a static network architecture (fixed layers and neurons). Future work aims to handle structural changes like pruning.
  • CDCL Integration: Integrating incremental logic with Conflict-Driven Clause Learning (CDCL) remains a promising but challenging next step.
  • Scalability of Modifications: The efficiency of the incremental approach naturally decreases as the magnitude of network modifications increases, eventually reverting to standard solving speeds.

In conclusion, DeepInc demonstrates that incremental SMT solving is a powerful tool for the continuous verification and repair of deep learning models, making formal guarantees more practical for real-world engineering workflows.

Summary updated

BibTeX
@misc{yang2023incremental,
  author = {Pengfei Yang and Zhiming Chi and Zongxin Liu and Mengyu Zhao and Cheng-Chao Huang and Shaowei Cai and Lijun Zhang},
  title = {{Incremental Satisfiability Modulo Theory for Verification of Deep Neural Networks}},
  year = {2023},
  eprint = {2302.06455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.06455},
}
Figure