Sound and Efficient Inference with Probabilistic and Deterministic Dependencies

Hoifung Poon, Pedro M. Domingos

Introduction

In real-world applications, reasoning often requires a delicate balance between "soft" probabilistic evidence and "hard" logical constraints. For instance, in entity resolution tasks—determining if two citations refer to the same publication—we might have soft evidence (similar titles) alongside hard constraints like transitivity (if A=B and B=C, then A=C).

Standard probabilistic inference tools, particularly Markov Chain Monte Carlo (MCMC) methods like Gibbs sampling, struggle in these environments. Deterministic constraints create "islands" of non-zero probability. Because a standard Gibbs sampler changes only one variable at a time, it often cannot "jump" between these islands without violating a hard constraint, leading to poor convergence. Conversely, while SAT solvers are adept at finding valid states, they lack the mechanism to handle probabilistic weights. This paper introduces MC-SAT, an algorithm that bridges this gap by combining MCMC with logical constraint solving.

Methodology: The MC-SAT Algorithm

MC-SAT is built upon the framework of Markov Logic Networks (MLNs), which represent domains as sets of weighted first-order logic clauses. The algorithm's core innovation lies in the integration of Slice Sampling with a SAT solver called SampleSAT.

  1. Slice Sampling: Rather than sampling variables directly, MC-SAT introduces auxiliary variables for every clause. In each iteration, it selects a random subset of currently satisfied clauses to serve as "hard" constraints for the next step. Clauses with higher weights are statistically more likely to be selected.
  2. SampleSAT: Once the subset of constraints is defined, the algorithm employs SampleSAT—a tool combining local search (WalkSAT) with simulated annealing—to sample a new state nearly uniformly from the set of all possible satisfying assignments.

By "slicing" the distribution, MC-SAT effectively allows the sampler to make large jumps across the state space, "teleporting" between valid islands while maintaining the correct underlying probability distribution.

Experimental Evaluation

The authors evaluated MC-SAT against Gibbs sampling and simulated tempering across two primary domains: Entity Resolution (using the BibServ.org dataset) and a synthetic Collective Classification domain. Performance was measured using Negative Log-Likelihood (NLL) as a proxy for accuracy.

Speed of Convergence

In the BibServ domain, MC-SAT demonstrated a significant advantage in convergence speed. While traditional methods remained trapped in initial modes, MC-SAT reached a stable, low NLL almost immediately.

Figure 2: Negative Log-Likelihood vs. Time (mins) for the BibServ domain. MC-SAT converges significantly faster than Gibbs sampling and Simulated Tempering.

Robustness to Determinism

A key insight of the paper is the "Hard Constraint Paradox": in traditional MCMC, higher weights (more certainty) make convergence harder. MC-SAT flips this logic, using the strength of constraints to narrow the search space. As weights increase, making rules more deterministic, MC-SAT's performance remains stable, whereas baseline errors spike.

Figure 4: Negative Log-Likelihood vs. Weight. MC-SAT maintains consistent performance as weights increase, while baseline methods degrade as dependencies become more deterministic.

Key Insights and Future Work

MC-SAT is mathematically guaranteed to satisfy "detailed balance," ensuring convergence to the correct distribution even under absolute determinism. The paper highlights that SAT solvers, typically used for finding single solutions, can be effectively repurposed as subroutines for probabilistic inference to manage combinatorial explosions in logical dependencies.

While highly effective, the authors note that SampleSAT provides "near-uniform" sampling, which could theoretically introduce minor biases in specific edge cases. Future research directions include optimizing memory requirements for massive relational networks and utilizing MC-SAT as a core component for learning model weights.

Summary updated

BibTeX
@inproceedings{poon2006sound,
  author = {Hoifung Poon and Pedro M. Domingos},
  title = {{Sound and Efficient Inference with Probabilistic and Deterministic Dependencies}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2006},
}
Figure