Most Probable Explanations for Probabilistic Database Queries

Ismail Ilkan Ceylan, Stefan Borgwardt, Thomas Lukasiewicz

Introduction: The Need for Explanations in PDBs

Probabilistic Databases (PDBs) are essential for managing uncertain data, treating a database as a probability distribution over multiple possible worlds rather than a single static state. Traditionally, research in this field has focused on probabilistic query evaluation—determining the likelihood that a specific query is true. However, as large-scale knowledge bases like Google’s Knowledge Vault become more prevalent, simply knowing a query's probability is often insufficient. Users and developers need to understand why a query is likely true. This paper addresses this gap by formalizing the search for "most probable explanations" within a database context.

Defining the Inference Tasks: MPD vs. MPH

The authors introduce two distinct inference tasks by bridging the gap between Probabilistic Graphical Models (PGMs) and PDBs:

  1. Most Probable Database (MPD): This task involves finding the single most likely complete "world" (a classical database state) in which the query holds. It is the database equivalent of the MPE (Most Probable Explanation) problem in PGMs.
  2. Most Probable Hypothesis (MPH): This task seeks a partial set of facts—a hypothesis—that makes the query true and possesses the highest total probability mass. This corresponds to the MAP (Maximum A Posteriori) problem in PGMs.

While MPD forces a choice for every possible fact, MPH allows for "unresolved" tuples, making it a more flexible and precise tool for identifying the underlying causes of a query's success.

Illustrative Framework

To demonstrate these concepts, the authors utilize a running example involving social and dietary relations. These relations assign probabilities to individual facts, such as the likelihood of a person being a vegetarian or the strength of a friendship between two individuals.

Example of a probabilistic database showing Vegetarian and FriendOf relations with associated probabilities.

In this framework, adding an ontology (rules) can create complex correlations. For instance, a rule stating that "if X is a vegetarian, X does not eat meat" introduces deductive constraints that significantly impact the probability of different database states.

Complexity Analysis and Results

The core contribution of this paper is a comprehensive complexity landscape for MPD and MPH across various query languages and ontologies. The authors analyze standard languages like Conjunctive Queries (CQ) and First-Order Queries (FOQ), as well as Ontology-Mediated Queries (OMQs) using different flavors of Datalog.

Table 1: The complexity landscape for MPD and MPH across various query languages and ontologies, highlighting data and combined complexity.

Key findings from the complexity analysis include:

  • Query Language Impact: For Unions of Conjunctive Queries (UCQ), both MPD and MPH are solvable in polynomial time (P) for data complexity. However, universal queries ($\forall Q$) jump to NP-complete for MPD and $\Sigma^P_2$-complete for MPH.
  • MPH Difficulty: In nearly all scenarios, finding the most probable partial hypothesis (MPH) is computationally more expensive than finding the most probable complete world (MPD).
  • Ontology Blow-up: Adding even simple negative constraints to a query can elevate the complexity of finding the most probable database from polynomial time to NP-hard.

Key Insights and Future Work

The research highlights a significant "open-world" advantage for MPH, as it doesn't require a complete state for every possible fact. However, the theoretical results also show that universal quantification and complex ontologies quickly lead to high computational costs (ranging from NP to 2EXP).

Future work will focus on improving "grounding" efficiency—the process of converting logic into propositional formulas—and expanding the rules to include equality-generating dependencies. The ultimate goal is to reach a full classification of the structural properties that make specific queries easy or hard to solve in a probabilistic context.

Summary updated

BibTeX
@inproceedings{ceylan2017most,
  author = {Ismail Ilkan Ceylan and Stefan Borgwardt and Thomas Lukasiewicz},
  title = {{Most Probable Explanations for Probabilistic Database Queries}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/132},
}
Figure