Anytime Inference in Probabilistic Logic Programs with Tp-Compilation

Jonas Vlasselaer, Guy Van den Broeck, Angelika Kimmig, Wannes Meert, Luc De RaedtIJCAI 2015

Abstract

Probabilistic Logic Programming (PLP) provides a robust framework for modeling domains characterized by both complex relational structures and inherent uncertainty. However, traditional inference methods often struggle with computational bottlenecks, particularly when dealing with cyclic dependencies. This paper introduces $T_P$-compilation, a novel inference technique that interleaves the construction of logical formulas with their incremental compilation into tractable Sentential Decision Diagrams (SDDs). By utilizing forward reasoning, the proposed algorithm provides guaranteed anytime lower and upper bounds on probabilities and handles complex, cyclic real-world networks with significantly greater efficiency than traditional sequential approaches.

Introduction: The Bottleneck of Sequential Inference

Standard inference in PLP typically follows a "three-step" sequential pipeline: converting the logic program into a propositional formula, compiling that formula into a tractable format (such as a circuit), and finally performing Weighted Model Counting (WMC) to determine probabilities.

This pipeline faces a major hurdle when encountering cycles. In networks where dependencies form loops (e.g., $A \to B \to C \to A$), the conversion step becomes computationally explosive. Traditional methods must introduce numerous auxiliary variables to "break" these cycles, leading to a massive expansion of the propositional formula. Furthermore, because these steps are sequential, the system provides no intermediate results; if the problem is too large, it may time out or crash before producing any answer.

A simple dependency graph illustrating potential cycles in logic programs.

Methods: Interleaving Reasoning and Compilation

The authors propose a paradigm shift from backward reasoning (starting from a query and searching for proofs) to forward reasoning (starting from known facts and deriving consequences).

The $T_C P$ Operator

The core innovation is the $T_C P$ operator, a generalization of the classic $T_P$ (immediate consequence) operator. Unlike the standard operator that merely tracks the truth of atoms, $T_C P$ tracks pairs of (atom, formula). As the algorithm iterates, it incrementally constructs the logical formula describing all possible derivations for a specific atom.

Incremental Compilation with SDDs

To maintain efficiency, these formulas are represented as Sentential Decision Diagrams (SDDs). SDDs are state-of-the-art tractable representations that support incremental updates. By interleaving the reasoning and compilation steps, $T_P$-compilation achieves several advantages:

  • Natural Cycle Handling: Forward reasoning implicitly manages dependency structures, avoiding the need for complex cycle-breaking logic and auxiliary variables.
  • Anytime Bounds: At any iteration $i$, the WMC of the current formula provides a guaranteed lower bound on the true probability. The authors also implement a heuristic method to estimate upper bounds.
  • Online Inference: The system can update existing compiled formulas when rules are added or removed, rather than restarting the entire process.

Key Results and Evaluation

The approach was evaluated on challenging benchmarks, including the Smokers social network dataset and real-world biological networks like Alzheimer and Genes.

Performance comparison of $T_P$-compilation against standard CNF-based methods across varying domain sizes.

As shown in the performance metrics, $T_P$-compilation (represented by the blue dashed line) consistently outperforms state-of-the-art sequential WMC solvers. Key findings include:

  • Scalability: $T_P$-compilation scaled to much larger domain sizes than traditional methods like c2d on the Alzheimer and Smokers datasets.
  • Efficiency: The compiled SDDs were often orders of magnitude smaller than those produced via standard CNF conversions, as evidenced by the significantly lower edge counts.
  • Anytime Performance: In the complex Genes domain, the algorithm provided tight probability bounds within time limits where standard approximation methods failed to return any result.

Conclusion

$T_P$-compilation represents a significant advancement in making probabilistic logic inference practical for the messy, cyclic networks found in real-world applications. By replacing the rigid sequential pipeline with an interleaved, forward-reasoning approach, the method offers both improved scalability and the critical ability to provide anytime results. Future work may extend this framework to handle stratified negation and further optimize the heuristic selection strategies used during compilation.

Summary updated

BibTeX
@inproceedings{vlasselaer2015anytime,
  author = {Jonas Vlasselaer and Guy Van den Broeck and Angelika Kimmig and Wannes Meert and Luc De Raedt},
  title = {{Anytime Inference in Probabilistic Logic Programs with Tp-Compilation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=gRvIxB2oM0},
}
Figure