DeepCDCL: An CDCL-based Neural Network Verification Framework

Zongxin Liu, Pengfei Yang, Lijun Zhang, Xiaowei HuangarXiv 2024 · DOI

Introduction

As deep neural networks (DNNs) are increasingly deployed in safety-critical applications such as autonomous driving and flight control, the need for formal verification becomes paramount. Formal verification provides a mathematical guarantee that a network will not exhibit catastrophic behavior under specified conditions. Current state-of-the-art tools predominantly rely on Branch-and-Bound (BaB) algorithms. While effective, BaB often treats each unsatisfiable path in the search tree as an isolated failure, failing to "learn" the underlying reasons for the conflict. This leads to redundant explorations of similar, doomed-to-fail branches, limiting the efficiency of the verification process.

DeepCDCL: Architecture and Methodology

DeepCDCL addresses these limitations by bringing Conflict-Driven Clause Learning (CDCL)—a foundational technique in modern SAT solvers—to neural network verification. The framework integrates the Marabou verifier with the Z3 SAT solver through an innovative asynchronous clause learning and management structure.

The DeepCDCL architecture featuring the Solver Module and the Clause Manager.

The architecture consists of two primary components:

  • Solver Module: This module executes multiple parallel threads. Each thread utilizes a SAT solver to manage branching decisions and invokes a neural network verifier to handle the linear constraints associated with neuron activations.
  • Clause Manager: Acting as the system's "brain," the Clause Manager maintains a central Conflict Clause Pool. When a solver encounters an unsatisfiable path, dedicated Conflict Analyzer threads work asynchronously to identify the root cause and generate a conflict clause.

To enhance efficiency, the authors implemented Elastic Filtering using slack variables and a Binary Search method to rapidly identify the specific neuron activations responsible for a conflict. Furthermore, the system employs Asynchronous Synchronization, allowing solvers to periodically pull new "lessons" from the central pool without pausing their search, effectively pruning their search trees mid-flight.

Pruning the Search Space through Learning

The core insight of DeepCDCL is that every failure (an unsatisfiable path) is a valuable lesson. By converting these failures into conflict clauses, the solver can explicitly avoid trying the same problematic combinations of neuron activations in other parts of the search tree.

Performance comparison against Marabou and visualization of search tree pruning.

As illustrated in the search tree visualization above, traditional tools might explore hundreds of states to prove a property. In contrast, DeepCDCL uses learned conflict clauses to prune significant portions of the tree, drastically reducing the number of states that need to be visited. In one case study, the number of explored states dropped from 179 to just 17.

Experimental Results

The framework was rigorously evaluated on standard benchmarks, including ACAS Xu (airborne collision avoidance) and MNIST (handwritten digit recognition).

  • Massive Speedups: DeepCDCL achieved significant performance gains, most notably a 1,478x speedup over Marabou on a specific MNIST instance.
  • Improved Robustness: On the ACAS Xu benchmark, DeepCDCL successfully resolved 47 more "UNSAT" (proven safe) problems than Marabou within the same time limit.
  • Efficiency: The method proved particularly effective for proving unsatisfiability, with 24 problems showing more than a 10-fold acceleration.

Limitations and Future Directions

While DeepCDCL excels at proving unsatisfiability, it occasionally performs slightly worse than Marabou on "SAT" problems where a counterexample exists. This is because the framework's intensive focus on analyzing "dead" branches to learn clauses can sometimes delay the discovery of a valid counterexample in a different part of the tree.

Future work will focus on optimizing branching heuristics to better balance search and learning. Additionally, the authors aim to integrate these CDCL strategies into other state-of-the-art verification tools to further broaden the impact of this approach.

Summary updated

BibTeX
@misc{liu2024deepcdcl,
  author = {Zongxin Liu and Pengfei Yang and Lijun Zhang and Xiaowei Huang},
  title = {{DeepCDCL: An CDCL-based Neural Network Verification Framework}},
  year = {2024},
  eprint = {2403.07956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07956},
}
Figure