Abstract
Weighted Model Integration (WMI) provides a unified framework for probabilistic inference in hybrid domains containing both discrete and continuous variables. Despite its potential, early WMI formulations faced theoretical inconsistencies and severe computational bottlenecks caused by the need for exhaustive model enumeration. This paper introduces WMI-PA, a high-performance algorithm that utilizes SMT-based predicate abstraction to minimize expensive integration operations. By grouping regions of the search space with shared weight function properties, WMI-PA achieves significant speedups and maintains mathematical consistency. Evaluations on synthetic benchmarks and a real-world strategic road network demonstrate that WMI-PA outperforms existing state-of-the-art methods by orders of magnitude.
Introduction: The Challenge of Hybrid Inference
Probabilistic inference is fundamental to AI reasoning. However, many real-world scenarios involve "hybrid" domains where discrete logic (e.g., binary states) interacts with continuous variables (e.g., physical measurements). While Weighted Model Counting (WMC) effectively handles discrete logic, it cannot accommodate continuous distributions. Weighted Model Integration (WMI) was developed to bridge this gap by integrating weight functions over regions defined by logical constraints.
The original WMI formulation suffered from two primary issues:
- Theoretical Inconsistency: Logically equivalent formulas could produce different results, and operations like marginalization were not always consistent.
- Computational Bottlenecks: Previous algorithms required the explicit enumeration of every valid combination of constraints (models), leading to a combinatorial explosion that limited scalability.
Methodology: Predicate Abstraction and SMT
The authors address these challenges through a refined mathematical foundation and the WMI-PA algorithm.
Refined Formalization
The paper redefines WMI to ensure that logically equivalent formulas always yield identical integrals. This framework supports "conditional" weight functions using if-then-else structures, providing greater flexibility for modeling complex distributions.
WMI-PA (Predicate Abstraction)
The core innovation is the use of Predicate Abstraction. Instead of enumerating every atomic logical state, WMI-PA groups regions of the search space that share the same weight function properties. By "abstracting" these predicates, the solver ignores irrelevant logical distinctions and focuses solely on boundaries that impact the integral's value.
SMT Integration
WMI-PA leverages a Satisfiability Modulo Theories (SMT) solver (MATHSAT5) to navigate the logical space efficiently. The actual calculus—integrating polynomials over polyhedra—is handled by LattE Integrale. This decoupling allows the integration procedure to be treated as a "black box," focusing the algorithm's effort on logical simplification.
Experimental Evaluation
The approach was evaluated using two distinct benchmarks:
- Synthetic Data: Random Linear Real Arithmetic (LRA) formulas of increasing complexity were used to test scaling limits.
- Strategic Road Network: A real-world dataset of journey times from the English Highways Agency. The task involved modeling the probability of completing multi-step journeys within specific time windows, a classic hybrid problem where travel time distributions depend on discrete temporal factors.
Key Results
WMI-PA demonstrates superior performance across all metrics. On synthetic benchmarks, it consistently solved problems in seconds that took previous methods, such as WMI-BC and WMI-ALLSMT, hours to complete.
As shown in the performance plots above:
- Execution Time: WMI-PA scales much more gracefully as formula complexity increases compared to its predecessors (left plot).
- Integration Count: The "predicate abstraction" strategy drastically reduces the number of required integration steps. While other methods face exponential growth in integrations, WMI-PA's count remains relatively flat (center plot).
- Comparison with PRAiSE: In the road network study, WMI-PA successfully computed probabilities for paths significantly longer than those achievable by the competing PRAiSE system before reaching the 10,000-second timeout threshold (right plot).
Conclusion and Future Work
WMI-PA represents a significant advancement in hybrid probabilistic inference. While it drastically improves logical handling, the underlying integration of polynomials over high-dimensional polyhedra remains a challenge as the number of continuous variables grows. Future research directions include expanding the framework to non-linear constraints, incorporating mixed integer-real theories, and developing automated decomposition strategies to further enhance scalability.
Summary updated