Weighted Model Counting With Function Symbols

Vaishak BelleUAI 2017

Abstract

Weighted Model Counting (WMC) is a cornerstone of probabilistic inference, yet its application has traditionally been restricted to finite domains and function-free logics. This paper addresses this limitation by extending WMC to include function symbols and infinite domains. By introducing a framework for "Acceptable Knowledge Bases" and a novel reduction technique known as the XOR construction, the research demonstrates that reasoning over infinite possibilities can be reduced to a finite, representative set of constants. This allows for exact probabilistic reasoning in complex scenarios involving identity uncertainty and open-universe modeling, bridging a significant gap between first-order logic and probabilistic graphical models.

Introduction

In the effort to unify logic and probability, researchers often encounter a "computational cliff." Most probabilistic relational languages, such as Markov Logic Networks, maintain tractability by restricting themselves to finite domains—a fixed list of known individuals—and avoiding function symbols like mother(x) or successor(n). While these restrictions simplify the underlying mathematics, they severely limit the ability to model real-world uncertainty. Without function symbols, it is difficult to represent identity uncertainty (whether two descriptions refer to the same object) or scenarios where the number of objects is unknown or infinite.

Standard WMC tools typically operate by "propositionalizing" logic, converting it into a massive but finite Boolean satisfiability problem. However, when the domain is infinite, this process fails as the resulting puzzle becomes infinitely large. This paper provides a theoretical and algorithmic bridge to overcome this hurdle.

The Challenge of Infinite Domains

In complex tracking or reasoning tasks, we often encounter functions that map to an infinite range. For instance, in satellite tracking, a function position(time) could map to an infinite number of spatial coordinates. Traditional WMC breaks down here because it cannot ground the theory into a finite set of propositions. The core problem is how to maintain the expressive power of first-order logic with functions while keeping the inference process computationally feasible.

Methodology: Acceptable Knowledge Bases and the XOR Construction

The author, Vaishak Belle, introduces a framework to handle a specific fragment of first-order logic termed "Acceptable Knowledge Bases." These bases allow for nested function symbols, existential quantifiers, and infinite domains, provided they satisfy certain "compactness" properties.

The primary innovation of this work is the XOR construction, a reduction technique that collapses infinite problems into finite ones through several key steps:

  1. Symmetry Exploitation: The paper observes that all constants not explicitly mentioned in a Knowledge Base (KB) behave identically. If a KB discusses "Alice" and "Bob," any other individual "X" is logically interchangeable with "Y."
  2. The Representative Constant: Instead of reasoning about every possible individual in an infinite domain, the author proves that one only needs to consider the constants named in the KB plus a single "new" constant that represents the entire infinite set of unnamed individuals.
  3. Grounding and XORing: Every functional term (e.g., father(john)) is forced to map to either a known constant or the single representative unnamed constant. This is achieved using exclusive-or (XOR) constraints, effectively turning an infinite search space into a finite, propositional one.
  4. Algorithmic Implementation: The paper details an algorithm that transforms a first-order theory with functions into a finite propositional theory, which can then be processed by standard, off-the-shelf WMC solvers.

Key Insights and Logical Expressiveness

Several theoretical insights underpin this approach:

  • The Power of "Flat" Formulas: Even formulas where functions do not have nested arguments can represent infinite models. Mastering these is the key to unlocking more complex logical structures.
  • Compactness as a Requirement: The results rely on the KB being "compact," ensuring that if a theory is satisfiable in an infinite sense, it remains satisfiable when grounded to a sufficiently large finite set. This property is common in most practical AI applications.
  • Functions vs. Relations: While functions can technically be simulated by relations (e.g., f(x)=y as P(x,y)), functions are more natural for modeling because they implicitly enforce that every input has exactly one output. This paper demonstrates how to handle this implicit requirement more efficiently than relational substitutes.

Results and Computational Feasibility

Because this is a theoretical contribution, the paper validates the framework using synthetic logical examples, including target tracking (modeling identity properties), natural numbers (using successor functions), and knowledge base completion (reasoning about missing data in academic or social networks).

The research establishes three major results:

  1. Computability: Logical reasoning for acceptable KBs with function symbols is proven to be computable via finite grounding.
  2. Probabilistic Consistency: The proposed WMC definition for infinite domains adheres to the fundamental axioms of probability, including addition laws and invariance under logical equivalence.
  3. Reduction to SAT: By reducing first-order probabilistic queries to #P-complete propositional problems, the framework allows researchers to leverage decades of advancements in SAT solver technology to solve previously intractable infinite-domain problems.

Conclusion and Future Work

This work represents a significant step forward in probabilistic logic. By proving that infinite-domain WMC can be reduced to finite propositional WMC, it opens the door for more robust AI systems that can handle uncertainty about the existence and identity of objects.

However, limitations remain. The reliance on the "compactness" assumption may exclude certain complex mathematical structures. Furthermore, while the reduction to WMC is a breakthrough, WMC itself remains #P-complete, meaning computational bottlenecks may still occur as the number of functions and constants grows. Future research may explore "lifted inference"—exploiting symmetries over instances—to further enhance performance and integrate this framework with other infinite-domain languages like BLOG (Bayesian Logic).

Summary updated

BibTeX
@inproceedings{belle2017weighted,
  author = {Vaishak Belle},
  title = {{Weighted Model Counting With Function Symbols}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2017},
}
Figure