Skip to main content
QUICK REVIEW

[Paper Review] A Dichotomy for the Generalized Model Counting Problem for Unions of Conjunctive Queries

Batya Kenig, Dan Suciu|arXiv (Cornell University)|Aug 3, 2020
Bayesian Modeling and Causal InferenceComputer Science10 references5 citations
TL;DR

This paper establishes a dichotomy for the generalized model counting problem over unions of conjunctive queries (UCQs), proving that the problem is either solvable in polynomial time (for safe UCQs) or #P-hard (for unsafe UCQs), even when tuple probabilities are restricted to {0, 1/2, 1}. The key contribution is a novel hardness proof technique that avoids reliance on multiple distinct probabilities in (0,1), showing that #P-hardness persists under this strict probability constraint, thus strengthening prior results on query evaluation in probabilistic databases.

ABSTRACT

We study the $generalized~model~counting~problem$, defined as follows: given a database, and a set of deterministic tuples, count the number of subsets of the database that include all deterministic tuples and satisfy the query. This problem is computationally equivalent to the evaluation of the query over a tuple-independent probabilistic database where all tuples have probabilities in $\{0,\frac{1}{2},1\}$. Previous work has established a dichotomy for Unions of Conjunctive Queries (UCQ) when the probabilities are arbitrary rational numbers, showing that, for each query, its complexity is either in polynomial time or #P-hard. The query is called $safe$ in the first case, and $unsafe$ in the second case. Here, we strengthen the hardness proof, by proving that an unsafe UCQ query remains #P-hard even if the probabilities are restricted to $\{0,\frac{1}{2},1\}$. This requires a complete redesign of the hardness proof, using new techniques. A related problem is the $model~counting~problem$, which asks for the probability of the query when the input probabilities are restricted to $\{0,\frac{1}{2}\}$. While our result does not extend to model counting for all unsafe UCQs, we prove that model counting is #P-hard for a class of unsafe queries called Type-I forbidden queries.

Motivation & Objective

  • To establish a dichotomy for the generalized model counting problem over unions of conjunctive queries (UCQs) under restricted probabilities.
  • To prove that unsafe UCQs remain #P-hard even when probabilities are limited to {0, 1/2, 1}, despite prior proofs relying on arbitrary rational probabilities.
  • To develop new proof techniques that do not depend on multiple distinct probabilities in (0,1), enabling hardness results under stricter probability constraints.
  • To investigate whether model counting remains hard for unsafe UCQs when probabilities are restricted to {0, 1/2}, focusing on a subclass of Type-I forbidden queries.

Proposed method

  • Redesign the hardness proof for unsafe UCQs by introducing a new technique that avoids dependence on multiple distinct probabilities in (0,1), instead relying on properties of multivariate polynomials with bounded degree.
  • Use Lemma 1.1 to show that for any non-zero multivariate polynomial of degree ≤2, there exists an assignment of variables to {c₁, c₂, c₃} (distinct constants) such that the polynomial evaluates to non-zero, enabling construction of hard instances with only three probability values.
  • Apply a novel inductive argument using sequences of exponentiated vectors to construct assignments where the product of probabilities remains non-zero over repeated applications, ensuring the existence of non-zero model counts.
  • Leverage Lemma C.48 to ensure that for certain sequences of exponents, the product of probabilities remains non-zero in the limit, by ensuring ratios of probabilities decay exponentially.
  • Define constraints Γ such that the ratios of probabilities r_ij = u_i^q z_j^t are distinct, enabling asymptotic dominance of the largest term in the sum, which preserves non-zero evaluation.
  • Use induction on the number of conjunctive queries in the UCQ, combining results from subqueries via multiplicative probability structures and applying the new proof framework to preserve non-zero evaluations.

Experimental results

Research questions

  • RQ1Does the #P-hardness of query evaluation for unsafe UCQs persist when probabilities are restricted to {0, 1/2, 1}?
  • RQ2Can a new proof technique be developed that avoids reliance on multiple distinct probabilities in (0,1), which was central to prior hardness proofs?
  • RQ3Is model counting #P-hard for unsafe UCQs when probabilities are restricted to {0, 1/2}, particularly for Type-I forbidden queries?
  • RQ4Can the existence of a non-zero model count be guaranteed under repeated exponentiation of probability vectors, even under strict probability constraints?
  • RQ5What structural properties of multivariate polynomials allow for non-zero evaluation over finite sets of values like {0, 1/2, 1}?

Key findings

  • The generalized model counting problem for UCQs is either in PTIME (if the query is safe) or #P-hard (if the query is unsafe), even when all tuple probabilities are restricted to {0, 1/2, 1}.
  • The hardness result holds for all unsafe UCQs, not just a subclass, by constructing a new proof that does not depend on multiple distinct probabilities in (0,1).
  • The proof relies on a new lemma showing that any non-zero multivariate polynomial of degree ≤2 evaluates to non-zero over some assignment in {c₁, c₂, c₃}, where c₁, c₂, c₃ are distinct constants.
  • For unsafe UCQs, the model count remains #P-hard even when probabilities are restricted to {0, c, 1} for any fixed c ∈ (0,1), as long as c is not a root of the relevant polynomials.
  • The paper proves that model counting is #P-hard for a class of unsafe queries called Type-I forbidden queries when probabilities are restricted to {0, 1/2}.
  • The asymptotic dominance of the largest term in a sum of exponentially scaled probabilities ensures that non-zero evaluations persist under repeated exponentiation, enabling the construction of hard instances.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.