TL;DR
This paper introduces a powerful two-step framework for performing marginal (MARG) and MAP inference in Probabilistic Logic Programs (PLP). By converting complex logic programs into weighted Conjunctive Normal Form (CNF), the authors bridge the gap between logic programming and the world of high-performance Boolean solvers, significantly outperforming previous state-of-the-art methods.
What Problem Does This Paper Address?
Probabilistic Logic Programming (PLP) is a versatile way to model domains that involve both complex relationships and uncertainty (e.g., social networks or biological pathways). However, performing inference—calculating the probability of an event (MARG) or finding the most likely state of the world (MAP)—is computationally grueling.
Historically, the PLP community focused on simple tasks, like finding the probability of a single goal without any observed evidence. Furthermore, many existing tools struggled with "cyclic" logic (recursion) or required programs to be acyclic. This paper aims to provide a general, efficient inference pipeline that handles evidence, multiple queries, and cycles by reducing these problems to well-studied tasks in the SAT (Satisfiability) community.
Methods
The authors propose a two-step "conversion-based" approach:
- Conversion to Weighted CNF:
- Grounding: Instead of expanding the entire program, they generate a "Relevant Ground Program" (RGP) by using SLD-resolution to find only the rules necessary for the specific query and evidence. They also prune "inactive" rules that are contradicted by the evidence.
- Logic to CNF: They convert logic programming rules (which follow the "Closed World Assumption") into First-Order Logic formulas in CNF. They compare two methods for this: a rule-based approach (from Answer Set Programming) and a proof-based approach.
- Weighting: They assign weights to literals based on the probabilities defined in the original program.
- Inference via Solvers:
- For MARG tasks, they reduce the problem to Weighted Model Counting (WMC). They specifically advocate for Knowledge Compilation, where the CNF is compiled into a d-DNNF (deterministic Decomposable Negation Normal Form), which allows for very fast marginalization across multiple queries.
- For MAP tasks, they reduce the problem to Weighted MAX SAT.
- They also show that the resulting weighted CNF can be viewed as a Markov Logic Network (MLN), allowing the use of MCMC tools like MC-SAT.
Datasets
The approach was evaluated on two primary domains:
- Smokers: A classic social network benchmark where smoking habits are influenced by friendships and cause cancer. This domain is highly "loopy" (cyclic).
- WebKB: A real-world dataset consisting of university webpages. The task is to classify the "class" of a page (e.g., student, faculty) based on its text content and the links between pages.
Key Insights and Ideas
- "Inference for Free": The core philosophy is that by converting PLP to weighted CNF, researchers can leverage decades of intense optimization in the SAT and WMC communities rather than building specialized PLP solvers from scratch.
- d-DNNF > BDD: In the PLP world, Binary Decision Diagrams (BDDs) were the standard tool for a long time. This paper demonstrates that d-DNNFs are a more general and efficient target for knowledge compilation in this context.
- The Power of Pruning: The "Relevant Ground Program" technique is crucial. By ignoring parts of the program that don't affect the query, they can reduce the size of the resulting CNF by up to 90%, turning intractable problems into solvable ones.
- Bridging Formalisms: By identifying the link between PLP and Markov Logic, the authors provide a roadmap for using Statistical Relational Learning (SRL) tools on logic programming problems.
Key Results
- Efficiency: The d-DNNF compilation significantly outperformed BDDs. On the WebKB dataset, BDD-based methods became intractable at a domain size of 5, while the d-DNNF approach scaled up to 18.
- Grounding Speed: Computing the Relevant Ground Program is extremely fast (taking milliseconds to a few seconds), yet it provides massive downstream benefits for the solver.
- Conversion Trade-offs: The authors found that the proof-based conversion creates more compact CNFs for small or acyclic domains, but the rule-based conversion is more robust and scales better for large, highly cyclic programs.
Limitations and Future Work
- Scaling Cycles: While the rule-based conversion handles cycles better than previous methods, extremely "loopy" programs still pose a challenge for exact inference.
- MAP Implementation: The authors note that their current implementation of MAP/MPE inference is a "proof-of-concept" and could be further optimized.
- Grounding Bottlenecks: While grounding is currently fast, in much larger datasets (millions of facts), the grounding step itself might become a bottleneck, suggesting a need for "lifted" inference techniques that avoid grounding altogether.
Summary updated