Introduction
In the field of uncertain data management, Tuple-Independent Probabilistic Databases (TIDs) serve as a foundational model. In a TID, every fact (or tuple) is associated with a probability of existence, and these probabilities are assumed to be independent. The central computational challenge is Probabilistic Query Evaluation (PQE): determining the exact probability that a query is satisfied across all possible instances of the database.
For simple queries, specifically Unions of Conjunctive Queries (UCQs), a landmark result by Dalvi and Suciu (2012) established a "complexity dichotomy." They proved that every UCQ is either "safe" (computable in polynomial time) or "unsafe" (#P-hard). However, modern data applications often require more expressive, recursive query languages like Datalog, Regular Path Queries (RPQs), and ontology-mediated queries. This paper addresses the long-standing question of whether a similar dichotomy exists for these broader, homomorphism-closed queries ($UCQ^\infty$) when applied to probabilistic graphs.
The Complexity of Recursion
The researchers focus on databases with an arity-two signature, effectively treating them as probabilistic graphs. This restriction allows for the leverage of specific structural properties of "minimal models" that are not easily generalized to higher-arity relations.
The core of the paper's contribution is the establishment of a complete classification for $UCQ^\infty$ queries. The authors demonstrate that the boundary between tractability and intractability is defined by the "boundedness" of the query. A query is bounded if it can be simplified into a finite union of conjunctive queries; otherwise, it is unbounded and recursive.
Methodological Innovations
To prove this dichotomy, the authors employ a deep model-theoretic approach, categorizing queries based on how they behave under specific graph transformations. Two key technical operations are introduced:
- Iteration: Replacing a single edge with a long "back-and-forth" path. If a query's truth value can be changed by iterating an edge, the authors show the problem can be reduced from #PP2DNF (counting valuations of positive partitioned 2-DNF formulae), a known #P-hard problem.
- Dissociation: Splitting an edge into two separate components. If a query survives iteration but is sensitive to dissociation (a "minimal tight pattern"), the authors reduce the problem from #U-ST-CON (counting $s-t$ paths in an undirected graph), which is also #P-hard.
By analyzing these cases, the authors prove that any query that is truly unbounded is fundamentally intractable on probabilistic graphs.
Key Results
The paper culminates in two major theorems that define the landscape of PQE for recursive queries:
- Theorem 4.3: For any unbounded $UCQ^\infty$ query over an arity-two signature, the PQE problem is #P-hard.
- Theorem 4.2 (The Dichotomy): Every $UCQ^\infty$ query $Q$ on probabilistic graphs is either equivalent to a safe UCQ (and thus solvable in polynomial time) or it is #P-hard.
This result is significant because it shows there are no "safe" recursive queries in this setting. If a query requires recursion to express, it is automatically hard to evaluate on probabilistic data. This classification successfully covers a wide range of logic fragments, including negation-free disjunctive Datalog and various description logics used in knowledge representation.
Implications and Future Work
While the paper provides a definitive theoretical boundary, it also highlights practical challenges. For general Datalog, determining whether a query is bounded (and thus whether it is P-time or #P-hard) is undecidable. However, for specific fragments like monadic Datalog or RPQs, this property is decidable, making the dichotomy effective for those languages.
The authors conjecture that this #P-hardness result for unbounded queries likely extends to databases with higher-arity relations, though the proof techniques would require significant adaptation. Additionally, the study of queries involving negation or disequalities ($x \neq y$) remains an open frontier in the quest to map the complexity of probabilistic reasoning.
Summary updated