Lifted Variable Elimination for Probabilistic Logic Programming

Elena Bellodi, Evelina Lamma, Fabrizio Riguzzi, Vitor Santos Costa, Riccardo ZesearXiv 2014 · DOI

TL;DR

The paper introduces $LP^2$ (Lifted Probabilistic Logic Programming), the first system to successfully apply lifted variable elimination to probabilistic logic programs under the distribution semantics. By introducing two novel lifted operators to handle the "convergent variables" caused by overlapping rules, $LP^2$ reduces exponential inference times down to linear scaling, allowing it to handle domains that are orders of magnitude larger than traditional solvers can manage.

What Problem Does This Paper Address?

Probabilistic Logic Programming (PLP) combines the structured power of first-order logic with probabilistic uncertainty. However, computing the probability of a query in PLP is notoriously slow. Traditional methods rely on "grounding" the program—replacing abstract variables (like Person) with every concrete individual in the domain (like Alice, Bob, Charlie). This causes a combinatorial explosion, making inference scale exponentially with the number of individuals.

"Lifted inference" aims to solve this by reasoning about groups of identical individuals as a single unit, avoiding grounding whenever possible. While lifted inference has been applied to other relational languages, adapting it to PLP has been blocked by a major hurdle: causal independence. In PLP, multiple independent rules can contribute to the same conclusion (similar to a noisy-OR gate). This creates "convergent variables" where independent paths of influence meet. Existing lifted inference algorithms, such as Generalized Counting First Order Variable Elimination (GC-FOVE), simply could not handle the heterogeneous factors that these convergent variables produce.

Methods

The authors bridge this gap by creating $LP^2$, an extension of the GC-FOVE algorithm tailored for PLP. Their approach consists of two main contributions:

  1. Language Extension: They extend the Prolog Factor Language (PFL) by introducing two new types of parametric factors: het (heterogeneous) and deputy. These allow the language to explicitly flag and track convergent variables and their independent causes at the first-order level.
  2. New Lifted Operators: They modify the GC-FOVE algorithm to incorporate causal independence techniques originally designed for ground networks (specifically Zhang and Poole's VE1 algorithm). To do this at a lifted level, they introduce two novel operators:
  3. HET-MULTIPLY (Heterogeneous Lifted Multiplication): Aligns and multiplies two heterogeneous parfactors sharing convergent variables, properly weighting them based on domain sizes.
  4. HET-SUM-OUT (Heterogeneous Lifted Summation): Combines and eliminates a random variable from a heterogeneous factor simultaneously, preventing the need to generate ground factors during elimination.

Datasets

The system was evaluated on three established benchmarks for lifted inference, adapted into ProbLog and PFL formats:

  • Workshops Attributes: Models whether a workshop becomes a successful series based on the attributes of the workshop and the people attending.
  • Plates: An artificial, highly symmetric problem containing two distinct sets of individuals ($X$ and $Y$) governed by 7 probabilistic facts and 9 rules.
  • Competing Workshops: A scalability benchmark that models a set of competing workshops, each focusing on different popular research areas.

Key Insights and Ideas

  • Lifting the Noisy-OR: The core "aha!" moment is realizing that the complex, overlapping dependencies created by PLP rules don't require immediate grounding. By treating convergent variables as "deputies" that represent identity functions, the algorithm can delay grounding indefinitely.
  • Simultaneous Combine-and-Eliminate: Heterogeneous factors cannot be multiplied using standard regular multiplication. The introduction of HET-SUM-OUT allows the algorithm to perform combination and variable elimination in a single step, bypassing the generation of massive ground-level tables.

Key Results

The authors compared $LP^2$ against two state-of-the-art PLP systems: PITA and ProbLog2.

  • Linear vs. Exponential Scaling: On the Workshops Attributes and Plates benchmarks, as the number of individuals (attributes or people) increased, the runtime of PITA and ProbLog2 exploded exponentially, quickly becoming intractable. In contrast, $LP^2$ scaled linearly.
  • Massive Domain Sizes: For the Workshops Attributes problem with the number of people fixed to 50, ProbLog2 could handle at most 2 attributes. $LP^2$ effortlessly scaled up to $10^5$ attributes.
  • On the Plates problem, $LP^2$ successfully processed up to $12 \times 10^4$ individuals in seconds, a feat entirely impossible for traditional grounding-based PLP solvers.

Limitations and Future Work

While $LP^2$ demonstrates massive performance gains, the authors note a few limitations and areas for expansion:

  • Scope of Causal Independence: For simplicity, the current implementation concentrates primarily on exploiting causal independence for the convergent variables represented by rule heads, which is the most challenging part.
  • Future Comparisons: The authors plan to compare $LP^2$ against other specialized frameworks for dealing with noisy-OR/max factors, as well as competing lifted paradigms like Weighted First-Order Model Counting (WFOMC).

Summary updated

BibTeX
@misc{bellodi2014lifted,
  author = {Elena Bellodi and Evelina Lamma and Fabrizio Riguzzi and Vitor Santos Costa and Riccardo Zese},
  title = {{Lifted Variable Elimination for Probabilistic Logic Programming}},
  year = {2014},
  eprint = {1405.3218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1405.3218},
}
Figure