Abstract
Weighted Model Integration (WMI) is a powerful framework for reasoning about hybrid domains containing both discrete and continuous variables. However, existing WMI solvers often struggle with complex probability density functions and fail to exploit logical structure efficiently. This paper introduces a novel approach that casts WMI as a form of Algebraic Model Counting (AMC). By leveraging Knowledge Compilation (KC), the authors present two new solvers: Symbo, for exact symbolic integration, and Sampo, for efficient approximate inference via GPU-accelerated sampling. Experimental evaluations show that these solvers outperform current state-of-the-art methods in both speed and accuracy.
Introduction
In artificial intelligence, many real-world scenarios require reasoning over "hybrid" models—those combining Boolean logic with real-valued continuous variables. For instance, determining the probability of a machine failure given a specific temperature range involves both discrete states and continuous measurements. Weighted Model Integration (WMI) addresses this by calculating integrals over logical constraints.
Despite its potential, WMI has faced significant hurdles. Most existing solvers are restricted to simple piecewise polynomial weights and do not fully utilize Knowledge Compilation (KC), a technique that transforms logical formulas into structured circuits for rapid repeated evaluation. This paper bridges these gaps by treating WMI as an AMC problem, enabling the use of advanced KC techniques.
Methodology: WMI as Algebraic Model Counting
The core theoretical contribution of this work is the definition of a Probability Density Semiring. This allows the integration process to be embedded directly into a compiled logic circuit as a standard algebraic operation.
Symbo: Exact Inference
Symbo compiles logical constraints into Sentential Decision Diagrams (SDDs), which are then transformed into arithmetic circuits. In these circuits, logical "AND" operations become multiplications, and "OR" operations become additions. Finally, a symbolic inference engine (the PSI-Solver) performs the exact integration.
Sampo: Approximate Inference
For mathematically intensive problems where exact integration is infeasible, Sampo provides an approximate alternative. It maps the compiled arithmetic circuit onto a TensorFlow computation graph. By utilizing the Edward library, Sampo performs Monte Carlo sampling that is "embarrassingly parallel," allowing it to leverage GPU acceleration. Unlike traditional samplers, Sampo incorporates the logic directly into the graph, making it highly robust to rare discrete events.
Experimental Evaluation
The solvers were tested against three benchmark categories:
- Discrete/Hybrid Probabilistic Programs: 10 benchmarks (e.g., BurglarAlarm, ClinicalTrial).
- Complex Hybrid Queries: An "urn model" scenario involving various ball properties, compared against sampling solvers like DC and BLOG.
- Synthetic WMI Problems: Bivariate polynomial weights compared against specialized solvers like WMI-PA and WMI-XADD.
Key Results and Insights
The "compile once, query many" approach proved highly effective. Once the logic is compiled into an arithmetic circuit, evaluating different weights or samples becomes computationally inexpensive.
- Efficiency: Symbo outperformed the pure symbolic PSI-Solver on 90% of benchmarks, often by an order of magnitude, proving that logical preprocessing via KC significantly speeds up symbolic integration.
- Accuracy and Variance: As shown in the figure above, Sampo maintained a standard deviation near zero for many queries, significantly outperforming DC and BLOG in both speed and precision.
- GPU Acceleration: Sampo is the first hybrid solver to successfully harness GPUs for parallelized approximate inference.
Limitations and Future Work
While highly effective, the authors noted that Symbo can generate complex symbolic expressions that are difficult for general-purpose integrators to handle. Additionally, while Sampo excels at discrete rare events, it still faces challenges with extremely tight continuous constraints. Future work aims to integrate these solvers into probabilistic programming languages like ProbLog to broaden their accessibility.
Summary updated