A SAT-based approach to rigorous verification of Bayesian networks
Ignacy Stępka, Nicholas Gisolfi, Artur Dubrawski
TL;DR
This paper presents a SAT-based verification framework for Bayesian networks aimed at safety-critical applications. It compiles BNs into Multi-valued Decision Diagrams and encodes them into CNF to enable exact verification via two queries: If-Then Rules ($ITR_{M,R,c}$) and Feature Monotonicity ($FMO_{M, \phi_{X^*}, x_i}$), with a proof-by-contradiction approach that yields counterexamples. The authors demonstrate end-to-end practicality through a runtime benchmark and a loan-approval case study, showing that after an initial compilation cost, numerous verification queries can be answered rapidly and counterexamples can aid debugging. The work also provides an open-source implementation and outlines directions for extending to multi-class BN classifiers and integration with model refinement. Overall, the approach offers a rigorous, scalable path toward trustworthy BN deployment in high-stakes domains.
Abstract
Recent advancements in machine learning have accelerated its widespread adoption across various real-world applications. However, in safety-critical domains, the deployment of machine learning models is riddled with challenges due to their complexity, lack of interpretability, and absence of formal guarantees regarding their behavior. In this paper, we introduce a verification framework tailored for Bayesian networks, designed to address these drawbacks. Our framework comprises two key components: (1) a two-step compilation and encoding scheme that translates Bayesian networks into Boolean logic literals, and (2) formal verification queries that leverage these literals to verify various properties encoded as constraints. Specifically, we introduce two verification queries: if-then rules (ITR) and feature monotonicity (FMO). We benchmark the efficiency of our verification scheme and demonstrate its practical utility in real-world scenarios.
