Abstract
Weighted Model Integration (WMI) is a popular formalism aimed at unifying approaches for probabilistic inference in hybrid domains, involving logical and algebraic constraints. Despite a considerable amount of recent work, allowing WMI algorithms to scale with the complexity of the hybrid problem is still a challenge. In this paper we highlight some substantial limitations of existing state-of-the-art solutions, and develop an algorithm that combines SMT-based enumeration, an efficient technique in formal verification, with an effective encoding of the problem structure. This allows our algorithm to avoid generating redundant models, resulting in substantial computational savings. An extensive experimental evaluation on both synthetic and real-world datasets confirms the advantage of the proposed solution over existing alternatives.
Introduction: The Challenge of Hybrid Inference
Weighted Model Integration (WMI) provides a powerful framework for probabilistic inference in "hybrid" environments—settings where discrete logic (e.g., "is the light on?") interacts with continuous mathematical variables (e.g., "what is the temperature?"). While expressive, WMI is computationally expensive. Existing solutions typically fall into two categories: Knowledge Compilation (KC), which transforms problems into circuits, and SMT-based Predicate Abstraction (PA), which uses Satisfiability Modulo Theories (SMT) solvers to enumerate valid "worlds" (models) and integrate over them.
A significant limitation of current PA methods is their "structure-blindness." They treat every conditional branch within a weight function as an independent Boolean variable. This forces the SMT solver to enumerate every possible combination of conditions, even when many combinations lead to the same mathematical function. This leads to massive redundancy and prevents the algorithm from scaling to deep, complex problems.
Methodology: Structure-Aware WMI-PA
To address these limitations, the authors introduce SA-WMI-PA (Structure-Aware WMI-PA). The key innovation is the conditional skeleton, an encoding that makes the SMT solver aware of the weight function's internal structure.
Instead of blindly labeling every condition in the weight function with a new variable, the algorithm builds a formula that mimics the weight function's nested if-then-else structure. Using a technique inspired by Tseitin encoding, this structure is represented as an SMT formula involving Linear Real Arithmetic (LRA) and Uninterpreted Functions (EUF).
By feeding this "skeleton" to the SMT solver, the solver can perform partial assignments. If the solver determines that a specific branch of the weight function is active based on just a few variables, it stops looking at the irrelevant conditions. This allows the algorithm to integrate over much larger "chunks" of the problem space at once, drastically reducing the total number of integrals that need to be calculated.
Experimental Evaluation
The authors evaluated SA-WMI-PA using two main benchmarks:
- Synthetic Experiments: Randomly generated LRA formulas and tree-structured weight functions with varying depths (depth 4 to 7). These tests were designed to measure how solvers handle increasing structural complexity.
- Real-World Density Estimation Trees (DETs): The authors used hybrid datasets from the UCI Machine Learning Repository to train DETs, which represent piecewise constant distributions. They then performed marginal inference queries, such as calculating the probability that $X \leq Y$.
Key Results and Insights
- Massive Reduction in Work: In synthetic tests, SA-WMI-PA reduced the number of required integrals by orders of magnitude compared to standard WMI-PA.
- Superior Scalability: As the depth of the weight functions increased, SA-WMI-PA's advantage grew. It solved significantly more problem instances within the time limit than any other tested solver, including XADD and FXSDD.
- Robustness to Coupling: While Knowledge Compilation (KC) methods performed well on simple, factorized problems, they often failed on "densely coupled" problems where variables were highly interdependent. SA-WMI-PA remained performant in these challenging settings by combining combinatorial reasoning with structural exploitation.
Conclusion and Future Work
SA-WMI-PA successfully addresses the "enumeration bottleneck" in SMT-based WMI. However, the authors acknowledge that the integration step itself—calculating the volume of the resulting polytopes—remains a significant computational hurdle.
Future work may involve integrating symbolic integration components to handle more complex, non-polynomial weight functions, further refining the "skeleton" encoding for more expressive theories beyond Linear Real Arithmetic, and exploring how structure-awareness can be applied to approximate WMI methods for even larger-scale problems.
Summary updated