Exploiting Determinism to Scale Relational Inference

Mohamed Hamza Ibrahim, Christopher J. Pal, Gilles Pesant

Abstract

Statistical Relational Learning (SRL) models, such as Markov Logic Networks (MLNs), provide a powerful framework for combining first-order logic with probabilistic graphical models. However, these models often suffer from a "grounding bottleneck," where abstract rules are translated into massive propositional networks that exceed memory and time limits. This paper presents Preference Relaxation (PR), a two-stage inference framework that exploits deterministic hard constraints to simplify the grounded network before performing full probabilistic inference. Experimental results across multiple benchmarks demonstrate that PR can achieve speedups of up to four orders of magnitude while maintaining high accuracy.

The Grounding Bottleneck

In real-world relational domains like protein interaction networks or citation matching, the number of potential relationships grows combinatorially with the number of objects. Standard inference algorithms, such as MC-SAT or loopy Belief Propagation, typically ground the entire model—creating nodes for every possible variable and edges for every rule instance—before beginning computation. This approach is often wasteful because many variables are effectively "forced" into specific states by the model's hard logical constraints. Allocating memory and computational cycles to these deterministic components alongside soft probabilistic preferences leads to significant overhead.

Preference Relaxation: A Two-Stage Strategy

The core idea of Preference Relaxation (PR) is to treat determinism not as a hurdle, but as an opportunity for dimensionality reduction. The algorithm operates in two distinct stages:

  1. Hard Constraint Filtering: The algorithm initially ignores all soft constraints (probabilistic preferences) and performs a preliminary round of inference using only the hard logical constraints.
  2. Variable Pruning and Evidence Expansion: Based on the first stage, variables that are determined to be true or false with high certainty (governed by a threshold $\gamma$) are fixed as evidence.
  3. Reduced Inference: The soft constraints are reintroduced, and final inference is conducted on a significantly smaller grounded network where the "decided" variables are treated as fixed inputs.
The PR inference process: (a) the original graph; (b) i. hard-factor inference, ii. pruning determined variables, and iii. final inference on the reduced graph.

This framework is versatile and can be integrated with various inference techniques. The authors demonstrate its application in PR-BP (for Belief Propagation) and PR-MC-SAT, as well as a hybrid approach with Lazy Inference that further minimizes memory usage by grounding atoms only as needed.

Experimental Results

The authors evaluated PR on three standard SRL benchmarks: Yeast (protein function), UW-CSE (academic relationships), and Cora (entity resolution). The results consistently showed that PR-based methods scale much better than their standard counterparts as the number of objects increases.

Inference time vs. number of objects, showing the dramatic speedup of PR-enhanced MCSAT variants over the standard algorithm.

Key findings include:

  • Massive Speedups: PR-MC-SAT was found to be up to four orders of magnitude faster than standard propositional MC-SAT on the Yeast and UW-CSE datasets.
  • Memory Efficiency: By avoiding the grounding of soft constraints for pruned variables, PR prevents out-of-memory errors on large domains where standard lazy inference techniques fail.
  • High Fidelity: With a conservative pruning threshold ($\gamma = 0.001$), the loss in accuracy (measured by Conditional Log-Likelihood) was negligible, confirming that the deterministic filtering step accurately identifies variables that do not need full probabilistic treatment.

Conclusion and Future Work

Preference Relaxation offers a robust solution to the grounding bottleneck by embracing the logical structure inherent in many relational models. While the approach relies on the presence of hard constraints, it provides a powerful mechanism for scaling inference in complex, real-world domains. Future work includes extending PR to lifted inference frameworks and developing dynamic, online versions of the pruning process to further optimize performance in highly fluid environments.

Summary updated

BibTeX
@inproceedings{ibrahim2015exploiting,
  author = {Mohamed Hamza Ibrahim and Christopher J. Pal and Gilles Pesant},
  title = {{Exploiting Determinism to Scale Relational Inference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9478},
}
Figure