Abstract
Probabilistic Logic Programming (PLP) is a powerful framework for reasoning under uncertainty, yet its scalability is often hampered by the computational cost of processing large-scale logic programs. Traditional inference methods typically require an "eager" conversion of the entire program into a Boolean formula for Weighted Model Counting (WMC), a process that fails when programs exceed memory or time constraints. This paper introduces a "lazy" explanation-based approximation algorithm. By iteratively expanding only the logic rules necessary to explain a query, the method provides an anytime algorithm that yields hard lower and upper probability bounds. Experimental results on large biological networks demonstrate that this lazy approach significantly outperforms state-of-the-art eager and forward-reasoning methods, providing more precise results within fixed time limits.
Introduction
Reasoning in complex domains like bioinformatics or large-scale knowledge bases requires the integration of logical structure and probabilistic uncertainty. Probabilistic Logic Programming (PLP) addresses this need but faces a significant bottleneck: the grounding and compilation of massive logic programs. Standard inference techniques often attempt to load the entire program into memory before beginning search or inference. For large-scale applications, this eager approach frequently leads to timeouts or memory exhaustion before any meaningful probability estimates can be produced.
To address this, we propose a shift from eager to lazy program processing. Instead of treating the entire program as a monolithic entity, we treat it as a collection of potential rules that are only "activated" when they are relevant to the specific query at hand.
Methodology: Lazy Explanation-Based Approximation
The core of our approach is the Lazy Explanation-Based Approximation. This method avoids the initial overhead of processing the full program by starting with a highly simplified version and refining it iteratively.
1. Initial State and Unexpanded Heads
The algorithm begins by considering all probabilistic facts but omits all logic rules. For every rule in the original program, the algorithm introduces an "unexpanded head"—a placeholder fact. Crucially, these placeholders are assigned a probability of 1.0. This "optimistic" assignment ensures that the search for explanations always considers these paths as potentially highly probable.
2. Iterative Search and Expansion
The algorithm searches for the "optimal explanation"—the most likely set of facts that makes the query true—within this simplified program. If the resulting explanation relies on an unexpanded head, the algorithm performs a "lazy expansion." This involves replacing the placeholder with the actual logic rules that define it from the original program.
3. Refinement and Hard Bounds
This process repeats, gradually incorporating more of the program's logic into the search space. Because unexpanded rules are treated as having a probability of 1.0, any explanation involving them provides an upper bound on the true probability. As rules are expanded and replaced with their actual (often lower) probabilities or complex sub-structures, the upper bound is refined. Simultaneously, explanations consisting entirely of base facts provide a lower bound. This results in an anytime algorithm that can be halted at any point to provide a mathematically guaranteed interval for the query's probability.
Experimental Evaluation
We evaluated the performance of the lazy approach against two main competitors:
- Non-Lazy (Eager): An explanation-based method that processes the entire program upfront (Renkens et al., 2014).
- TP (Forward Reasoning): A state-of-the-art approach that uses forward reasoning to compute probabilities (Vlasselaer et al., 2015).
The evaluation used a biological network dataset (Ourfali et al., 2007) consisting of 500 distinct queries. Each query was allocated a 15-minute timeout on standard hardware.
Results and Discussion
The experimental results highlight the dramatic efficiency gains of the lazy approach. The "non-lazy" method failed to return any answer for all 500 queries, as the initial program processing exceeded the 15-minute limit. In contrast, both the TP method and our lazy approach provided answers for every query.
As shown in the table above, the lazy approach not only succeeded where eager methods failed but also provided significantly higher precision than the TP method. Specifically, the lazy approach achieved "Almost Exact" results (with a probability difference of less than 0.01) for 89 queries, nearly triple the 30 queries achieved by the TP method. Furthermore, it provided "Tight Bounds" (difference between 0.01 and 0.25) for 272 queries, compared to 207 for TP.
Conclusion
The lazy explanation-based approximation represents a significant step forward for scalable probabilistic reasoning. By adopting a "just-in-time" approach to logic expansion, we can reason over massive programs that were previously inaccessible to exact or even standard approximate inference. Future work will focus on extending this methodology to non-ground programs and exploring its integration with advanced MAX-SAT solvers to further improve search efficiency in dense, highly interconnected logic networks.
Summary updated