Skip to main content
QUICK REVIEW

[Paper Review] Nesting Probabilistic Inference

Theofrastos Mantadelis, Gerda Janssens|arXiv (Cornell University)|Dec 16, 2011
Semantic Web and OntologiesComputer Science6 references13 citations
TL;DR

This paper proposes a parametrized ProbLog engine architecture to enable nested probabilistic inference by suspending and resuming inference instances via a stack-based mechanism. The approach supports meta-calls, negation, and answer enumeration in probabilistic logic programming, achieving only a 1% performance overhead in experiments while enabling complex probabilistic reasoning workloads.

ABSTRACT

When doing inference in ProbLog, a probabilistic extension of Prolog, we extend SLD resolution with some additional bookkeeping. This additional information is used to compute the probabilistic results for a probabilistic query. In Prolog's SLD, goals are nested very naturally. In ProbLog's SLD, nesting probabilistic queries interferes with the probabilistic bookkeeping. In order to support nested probabilistic inference we propose the notion of a parametrised ProbLog engine. Nesting becomes possible by suspending and resuming instances of ProbLog engines. With our approach we realise several extensions of ProbLog such as meta-calls, negation, and answers of probabilistic goals.

Motivation & Objective

  • To address the lack of support for nested probabilistic queries in existing probabilistic logic programming systems like PHA, PRISM, and PITA.
  • To enable high-level probabilistic meta-programming, including meta-calls, negation, and answer enumeration, within ProbLog.
  • To design a mechanism that preserves probabilistic bookkeeping across nested queries without interference.
  • To implement a stack-based suspension and resumption mechanism for ProbLog inference engines.
  • To evaluate the performance overhead of nested inference in realistic workloads.

Proposed method

  • Introduce a parametrized ProbLog engine that encapsulates inference state and parameters for a specific inference method.
  • Use a stack to suspend and resume ProbLog engine instances during nested query execution.
  • Represent queries with nested meta-calls using a recursive structure like exact((G2, exact((G2, ...)), G1)), enabling deep nesting.
  • Extend the core query predicate to problog_inference(Inference, Query, ResultType, Result) to support multiple result types: probability, answers, and DNF representations.
  • Implement new primitives such as problog_not/1 and problog_answers/3 using meta-calls to enable advanced probabilistic reasoning.
  • Leverage existing ProbLog tabling and SLD resolution extensions to maintain correctness and efficiency.

Experimental results

Research questions

  • RQ1Can nested probabilistic inference be supported in ProbLog without disrupting probabilistic bookkeeping?
  • RQ2What performance overhead does nested inference introduce compared to flat queries?
  • RQ3How can probabilistic meta-calls be implemented to enable higher-order probabilistic programming?
  • RQ4Can existing ProbLog primitives like negation and answer enumeration be implemented using the new engine suspension mechanism?
  • RQ5Is the proposed approach extensible to other inference methods beyond exact inference?

Key findings

  • The proposed approach successfully enables nested probabilistic inference by suspending and resuming ProbLog engines using a stack-based mechanism.
  • The average execution time across 10 runs for nested queries remained stable, with low standard deviations (e.g., 114–340 ms), indicating consistent performance.
  • The performance overhead introduced by nesting is minimal—approximately 1%—as measured across multiple nesting depths and query types.
  • The method supports advanced features such as meta-calls, negation (via problog_not/1), and answer enumeration (via problog_answers/3).
  • The experiments confirm that nesting depth does not significantly affect performance, and the system maintains high precision and low variance in execution times.
  • The approach is extensible and could be adapted to other inference methods, including those based on support graphs or tabled execution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.