[Paper Review] The Dichotomy of Evaluating Homomorphism-Closed Queries on Probabilistic Graphs
This paper establishes a data complexity dichotomy for evaluating homomorphism-closed queries—equivalently, infinite unions of conjunctive queries (UCQ∞)—on probabilistic graphs with arity-two signatures. It proves that all unbounded UCQ∞ queries are #P-hard to evaluate, while bounded ones reduce to unions of conjunctive queries and are thus classified by Dalvi and Suciu’s prior dichotomy. The result fully characterizes the complexity of probabilistic query evaluation for this broad class of queries, including disjunctive Datalog, regular path queries, and ontology-mediated queries.
We study the problem of query evaluation on probabilistic graphs, namely, tuple-independent probabilistic databases over signatures of arity two. We focus on the class of queries closed under homomorphisms, or, equivalently, the infinite unions of conjunctive queries. Our main result states that the probabilistic query evaluation problem is #P-hard for all unbounded queries from this class. As bounded queries from this class are equivalent to a union of conjunctive queries, they are already classified by the dichotomy of Dalvi and Suciu (2012). Hence, our result and theirs imply a complete data complexity dichotomy, between polynomial time and #P-hardness, on evaluating homomorphism-closed queries over probabilistic graphs. This dichotomy covers in particular all fragments of infinite unions of conjunctive queries over arity-two signatures, such as negation-free (disjunctive) Datalog, regular path queries, and a large class of ontology-mediated queries. The dichotomy also applies to a restricted case of probabilistic query evaluation called generalized model counting, where fact probabilities must be 0, 0.5, or 1. We show the main result by reducing from the problem of counting the valuations of positive partitioned 2-DNF formulae, or from the source-to-target reliability problem in an undirected graph, depending on properties of minimal models for the query.
Motivation & Objective
- To establish a complete data complexity dichotomy for evaluating homomorphism-closed queries on probabilistic graphs.
- To classify the complexity of probabilistic query evaluation (PQE) for infinite unions of conjunctive queries (UCQ∞), a broad class of monotone, recursive query languages.
- To extend known dichotomies from unions of conjunctive queries (UCQs) to UCQ∞, particularly for queries closed under homomorphisms.
- To investigate whether the dichotomy holds under restricted probability models, such as generalized model counting (GFOMC), where fact probabilities are restricted to {0, 0.5, 1}.
Proposed method
- Reduction from #PP2DNF (counting valuations of positive partitioned 2-DNF formulae) to prove #P-hardness for UCQ∞ queries with a non-iterable edge in their minimal models.
- Reduction from #U-ST-CON (source-to-target connectivity in undirected graphs) for queries without non-iterable edges, relying on a detailed analysis of minimal tight edges in models.
- Use of model-theoretic techniques, including dissociation and fine dissociation, to analyze query structure and minimal models.
- Construction of a probability-preserving bijection between possible worlds of transformed TIDs to reduce from GFOMC to PQE, preserving query satisfaction.
- Formal proof that unbounded UCQ∞ queries over arity-two signatures remain #P-hard even when fact probabilities are restricted to {0, 0.5, 1}.
- Extension of results to signatures with unary and binary predicates by transforming unary atoms into self-loops (R(x) → R′(x,x)), preserving unboundedness and hardness.
Experimental results
Research questions
- RQ1Is there a complete data complexity dichotomy for evaluating homomorphism-closed queries on probabilistic graphs?
- RQ2Are all unbounded UCQ∞ queries on arity-two signatures #P-hard to evaluate?
- RQ3Does the dichotomy for PQE extend to the generalized model counting (GFOMC) problem with probabilities in {0, 0.5, 1}?
- RQ4Can the hardness result be extended to signatures that include unary predicates?
- RQ5Does the #P-hardness of PQE for unbounded UCQ∞ queries also hold under the unweighted model counting setting (all facts have probability 0.5)?
Key findings
- All unbounded UCQ∞ queries over arity-two signatures are #P-hard to evaluate under probabilistic query evaluation (PQE), establishing a complete dichotomy with Dalvi and Suciu’s polynomial-time class for bounded queries.
- The #P-hardness result holds even when fact probabilities are restricted to {0, 0.5, 1}, as shown via reductions that only use these values, thus extending the dichotomy to the generalized model counting (GFOMC) problem.
- For any unbounded UCQ∞ query over a signature with unary and binary predicates, GFOMC(Q) is #P-hard, as proven by transforming unary atoms into self-loops and preserving unboundedness and hardness.
- The dichotomy for GFOMC holds: either Q is equivalent to a safe UCQ and GFOMC(Q) is in FP, or it is not and GFOMC(Q) is #P-hard.
- The proof relies on two reductions: one from #PP2DNF for queries with non-iterable edges, and another from #U-ST-CON for queries with minimal tight edges, both requiring careful model-theoretic analysis.
- The results generalize to arbitrary-arity signatures under a conjecture involving a suitable dissociation notion, though the extension remains open due to technical challenges in handling intersecting facts in higher-arity relations.
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.