Abstract
We present SGDPLL(T), an algorithm that solves probabilistic inference problems over models defined via a logic theory. While many solutions to probabilistic inference over logic representations have been proposed, SGDPLL(T) is simultaneously lifted, exact, and modulo theories. By "lifted," we mean algorithms with constant complexity in the domain size. We detail a solver for summations with difference arithmetic and show experimental results where SGDPLL(T) significantly outperforms state-of-the-art probabilistic solvers.
Introduction
Traditional probabilistic graphical models, such as Bayesian Networks, typically rely on "grounded" representations like tables or weight matrices. While effective for small-scale problems, these representations struggle with high-level concepts involving relations, functions, and arithmetic. For instance, modeling a population of millions requires a table of equal magnitude—a process known as propositionalization—which often leads to memory and time exhaustion.
Existing "lifted" inference techniques aim to reason at an abstract level to avoid this explosion, but they have historically been limited to simple logics. Conversely, Probabilistic Programming Languages (PPLs) offer high expressivity but often rely on approximate sampling. SGDPLL(T) bridges this gap by providing a framework that is lifted (complexity is independent of domain size), exact (calculates precise probabilities), and modulo theories (parameterized by background logic like integer arithmetic).
The SGDPLL(T) Algorithm
The core innovation is Symbolic Generalized Davis-Putnam-Logemann-Loveland modulo Theories (SGDPLL(T)). This algorithm generalizes the classic DPLL search used in SAT solvers to handle a broader class of problems.
Search and Branching
Standard SAT solvers determine if a solution exists ($\exists$). SGDPLL(T) extends this to handle summations ($\sum$), products ($\prod$), and other associative operations required for marginal probability computation. The algorithm operates by picking a "literal" (a logical statement) and branching the search.
When the algorithm encounters a literal involving a variable being summed over, it performs quantifier-splitting. If the literal involves a free variable, it performs if-splitting, resulting in a symbolic conditional branch in the final output.
Symbolic and Theory-Based Reasoning
Unlike traditional solvers that return a single value, SGDPLL(T) can return a symbolic expression, such as an if-then-else tree. This allows the solver to provide a "compiled" answer that remains valid even if certain parameters change.
The "Modulo Theories" aspect allows the algorithm to be parameterized with different background theories. The authors implemented a specific solver for difference arithmetic on bounded integers (e.g., $x \le y + c$). By utilizing Faulhaber’s formula to compute polynomial sums in constant time, the algorithm's performance becomes independent of the domain size—the "secret sauce" of its lifting capability.
Experimental Evaluation
The authors evaluated SGDPLL(T) using a generative "election example" involving bounded integers with ranges up to $10^8$. The model predicts politician popularity based on various socio-economic factors such as terror attacks and job growth.
The results demonstrated the power of lifted inference. The SGDPLL(T)-based solver, SGVE(T), solved queries in approximately 2 seconds, regardless of whether the population size was 500 or 100,000,000. In contrast, the state-of-the-art traditional solver VEC (Variable Elimination and Conditioning) took 51 seconds for a population of 500 and failed entirely at larger scales due to memory constraints.
Conclusion and Future Work
SGDPLL(T) establishes a foundation for exact, lifted inference across diverse logical theories. By separating the core search algorithm from the theory-specific solvers, it allows for future extensions into theories for strings, lists, or relational data. While the current implementation is exponential in the number of logical constraints, it provides a necessary exact baseline for developing more sophisticated approximate solvers in the future.
Summary updated