[Paper Review] Probabilistic Query Evaluation with Bag Semantics
This paper studies probabilistic query evaluation in bag semantics for self-join free conjunctive queries over tuple-independent probabilistic databases with unbounded multiplicities. It establishes a dichotomy: computing answer count probabilities (i.e., Pr(multiplicity ≤ k)) is either in polynomial time or ♯P-hard, while expectations are efficiently computable for unions of conjunctive queries under mild representation assumptions.
We study the complexity of evaluating queries on probabilistic databases under bag semantics. We focus on self-join free conjunctive queries, and probabilistic databases where occurrences of different facts are independent, which is the natural generalization of tuple-independent probabilistic databases to the bag semantics setting. For set semantics, the data complexity of this problem is well understood, even for the more general class of unions of conjunctive queries: it is either in polynomial time, or #P-hard, depending on the query (Dalvi & Suciu, JACM 2012). A reasonably general model of bag probabilistic databases may have unbounded multiplicities. In this case, the probabilistic database is no longer finite, and a careful treatment of representation mechanisms is required. Moreover, the answer to a Boolean query is a probability distribution over (possibly all) non-negative integers, rather than a probability distribution over { true, false }. Therefore, we discuss two flavors of probabilistic query evaluation: computing expectations of answer tuple multiplicities, and computing the probability that a tuple is contained in the answer at most k times for some parameter k. Subject to mild technical assumptions on the representation systems, it turns out that expectations are easy to compute, even for unions of conjunctive queries. For query answer probabilities, we obtain a dichotomy between solvability in polynomial time and #P-hardness for self-join free conjunctive queries.
Motivation & Objective
- To formalize probabilistic query evaluation under bag semantics for tuple-independent probabilistic databases with unbounded multiplicities.
- To address the challenge of infinite probability spaces arising from unbounded tuple multiplicities in bag semantics.
- To distinguish between two key computational problems: computing expected multiplicities and computing the probability that a tuple appears at most k times.
- To establish a complexity dichotomy for answer count probabilities under mild representation assumptions.
- To extend known results from set semantics to bag semantics, particularly for self-join free conjunctive queries.
Proposed method
- Introduces a formal model of tuple-independent probabilistic databases under bag semantics, where fact multiplicities are ℕ-valued random variables.
- Defines two core computational problems: EXPECTATIONRep(Q) for expected multiplicities and PQERep(Q, k) for Pr(multiplicity ≤ k).
- Uses polynomial-time Turing reductions to show that PQERep(Q, 0) reduces to PQERep(Q, k) for k > 0.
- Applies finite differences and generating functions to compute the probability that a query answer has multiplicity zero.
- Leverages the structure of connected components and canonical databases to isolate subqueries and analyze their contribution to the overall multiplicity distribution.
- Employs Chebyshev’s inequality and moment computation to estimate answer count probabilities via polynomial-time computable expectations and variances.
Experimental results
Research questions
- RQ1What is the data complexity of computing the probability that a tuple appears at most k times in the query answer under bag semantics?
- RQ2How does the complexity of probabilistic query evaluation differ between expectation computation and probability computation under bag semantics?
- RQ3Is there a dichotomy between polynomial-time solvability and ♯P-hardness for answer count probabilities in self-join free conjunctive queries under bag semantics?
- RQ4Can the complexity of PQERep(Q, k) be reduced to a base case (e.g., k=0) via polynomial-time Turing reductions?
- RQ5How do representation systems affect the tractability of probabilistic query evaluation under bag semantics?
Key findings
- Expectations of answer tuple multiplicities in unions of conjunctive queries can be computed in polynomial time under mild representation assumptions.
- The variance of the answer multiplicity distribution is also computable in polynomial time, enabling probabilistic estimation via Chebyshev’s inequality.
- A dichotomy holds for PQERep(Q, k): computing the probability that the answer multiplicity is at most k is either in polynomial time or ♯P-hard, depending on the query structure.
- For hierarchical Boolean conjunctive queries without self-joins, PQERep(Q, k) is solvable in polynomial time.
- For non-hierarchical queries, PQERep(Q, k) is ♯P-hard if the representation system allows probabilities in (0,1), extending prior hardness results from set semantics.
- The reduction from PQERep(Q, 0) to PQERep(Q, k) for k > 0 runs in polynomial time, enabling the use of oracle access to higher k values to solve the base case.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.