Introduction
Probabilistic logical languages, such as Markov Logic Networks (MLNs), offer a powerful synthesis of first-order logic and graphical models. However, performing inference in these models typically relies on "grounding"—expanding the logic into a massive propositional graph. This approach suffers from exponential complexity as the domain size (the number of objects) increases. "Lifted inference" seeks to mitigate this by treating groups of indistinguishable objects as single units, thereby avoiding redundant computations. While previous lifted methods (e.g., lifted variable elimination) have made strides, they often fail to exploit local logical structures like context-specific independencies.
This paper introduces a novel approach to lifted inference by "upgrading" propositional knowledge compilation to the first-order level. By compiling probabilistic theories into First-Order Deterministic Decomposable Negation Normal Form (FO d-DNNF) circuits, the authors enable efficient, symmetry-aware inference that scales far better than traditional grounding-based methods.
Weighted First-Order Model Counting (WFOMC)
The proposed framework centers on Weighted First-Order Model Counting (WFOMC). The process involves three primary stages:
- Reification: The probabilistic theory is first converted into a weighted clausal theory in first-order logic.
- Knowledge Compilation: This is the core contribution. The algorithm recursively applies compilation rules to transform the theory into a First-Order d-DNNF circuit. These circuits use first-order versions of standard nodes, such as inclusion-exclusion, decomposable set-conjunction, and deterministic set-disjunction.
- Inference: Once the circuit is constructed, computing the weighted model count (and thus the probability) is a simple traversal of the circuit. This step is polynomial in the size of the circuit and often independent of the domain size.
Core Compilation Rules
The efficiency of the compilation process relies on several key rules that "lift" propositional operations to the first-order level:
- Unit Propagation: Simplifies the theory by identifying and propagating unit clauses.
- Independent Partial Grounding: Exploits symmetries across objects by grounding only a subset of variables when they are independent of others.
- Atom Counting: Handles cases where the probability depends only on the number of true atoms rather than their specific identities, a hallmark of lifted inference.
Key Insights and Results
The "aha moment" of this research is the realization that the success of d-DNNF circuits in propositional logic can be extended to first-order logic. This allows the algorithm to inherit the benefits of decades of research in knowledge compilation while effectively exploiting "local" logical structure (like context-specific independence) that previous "global" lifted methods might miss.
Scalability and Lifting Power
The approach was evaluated on standard benchmarks including "Friends and Smokers" and "Competing Workshops." Key findings include:
- Performance: WFOMC significantly outperformed propositional variable elimination and was competitive with or faster than Counting First-Order Variable Elimination (C-FOVE).
- Greater Lifting Power: On complex tasks like "Friends Smoker Drinker," WFOMC successfully performed lifted inference where C-FOVE failed and reverted to grounding.
- Domain Independence: For most operators, inference time is independent of the number of objects. For operators like set-disjunction, complexity is only linear relative to the domain size.
Limitations and Future Directions
While powerful, the current implementation uses a naive caching scheme; more advanced first-order caching could further accelerate compilation. Additionally, handling arbitrary evidence remains a challenge for all lifted methods, often requiring "shattering" which can reduce the degree of lifting. Future work will explore extending these techniques to approximate lifted inference for even larger and more complex models.
Summary updated