Conjunctive Queries on Probabilistic Graphs: The Limits of Approximability

Antoine Amarilli, Timothy van Bremen, Kuldeep S. Meel

Abstract

Query evaluation over probabilistic databases is a notoriously intractable problem - not only in combined complexity, but for many natural queries in data complexity as well. This motivates the study of probabilistic query evaluation through the lens of approximation algorithms, and particularly of combined FPRASes, whose runtime is polynomial in both the query and instance size. In this paper, we focus on tuple-independent probabilistic databases over binary signatures, which can be equivalently viewed as probabilistic graphs. We study in which cases we can devise combined FPRASes for probabilistic query evaluation in this setting. We settle the complexity of this problem for a variety of query and instance classes, by proving both approximability and (conditional) inapproximability results. This allows us to deduce many corollaries of possible independent interest. For example, we show how the results of [Marcelo Arenas et al., 2021] on counting fixed-length strings accepted by an NFA imply the existence of an FPRAS for the two-terminal network reliability problem on directed acyclic graphs: this was an open problem until now. We also show that one cannot extend a recent result [Timothy van Bremen and Kuldeep S. Meel, 2023] that gives a combined FPRAS for self-join-free conjunctive queries of bounded hypertree width on probabilistic databases: neither the bounded-hypertree-width condition nor the self-join-freeness hypothesis can be relaxed. Finally, we complement all our inapproximability results with unconditional lower bounds, showing that DNNF provenance circuits must have at least moderately exponential size in combined complexity.

Introduction: The Challenge of Probabilistic Query Evaluation

In the field of Probabilistic Databases (PDBs), query evaluation (PQE) involves calculating the probability that a query is satisfied given that each tuple in the database exists independently with a certain probability. While data complexity (where the query is fixed) has been extensively studied, this paper focuses on combined complexity, where both the query and the database size grow.

PQE is notoriously hard; for many natural queries, exact evaluation is #P-hard. To address this, researchers seek FPRASes (Fully Polynomial-time Randomized Approximation Schemes)—algorithms that provide an ε-approximation with high probability in time polynomial in the input size and 1/ε. This research maps the frontier of what is computationally feasible when querying probabilistic graphs (binary relations).

Mapping the Frontier of Approximability

The authors categorize various query and instance classes to determine where efficient approximation is possible. They employ a mix of knowledge compilation and complexity theory, specifically looking at Boolean provenance—the logical formula representing the conditions under which a query is satisfied.

Summary of approximability results for various query and instance classes. Light grey cells indicate the existence of an FPRAS, while dark grey cells indicate inapproximability (unless RP=NP).

As shown in the complexity tables above, the researchers identified a "sweet spot" for Directed Acyclic Graphs (DAGs). While most combinations are intractable, one-way path queries (1WP) on DAGs admit a combined FPRAS. This is achieved by compiling the query provenance into polynomial-sized non-deterministic Ordered Binary Decision Diagrams (nOBDDs), a tractable circuit format for weighted model counting.

Key Breakthroughs and Insights

Solving a Long-Standing Reliability Mystery

One of the most significant outcomes of this work is the resolution of a decade-old problem in network reliability. By connecting graph queries to Non-deterministic Finite Automata (NFA) theory, the authors proved the existence of an FPRAS for the two-terminal network reliability problem on DAGs. This problem asks for the probability that a path exists between two nodes in a probabilistic graph; the paper shows this is efficiently approximable specifically when the underlying graph is a DAG.

The Necessity of Constraints

Recent work by van Bremen and Meel (2023) provided an FPRAS for self-join-free conjunctive queries of bounded hypertree width. This paper demonstrates that these constraints are essentially mandatory. By relaxing either the self-join-freeness or the bounded-width condition, the problem immediately becomes inapproximable (unless RP = NP). This settles the limits of how far current approximation techniques can be pushed.

Unconditional Lower Bounds

Beyond conditional hardness (based on P vs NP), the authors provide unconditional lower bounds for "intensional" approaches. They prove that any Decomposable Negation Normal Form (DNNF) circuit representing the provenance of non-approximable queries must have at least moderately exponential size ($2^{\Omega(n^{1-\epsilon})}$). This implies a fundamental physical limit on using circuit-based compilation for these query types.

Conclusion and Future Directions

While this work settles the complexity for many classes, gaps remain. Specifically, the approximability of one-way paths and downward trees on arbitrary (non-DAG) graphs in the unlabelled setting remains an open question. Future research may also explore extending these results to graph classes with "bounded DAG-width" or moving beyond binary relations to general relational signatures with higher-arity relations.

Summary updated

BibTeX
@inproceedings{amarilli2024conjunctive,
  author = {Antoine Amarilli and Timothy van Bremen and Kuldeep S. Meel},
  title = {{Conjunctive Queries on Probabilistic Graphs: The Limits of Approximability}},
  booktitle = {ICDT},
  year = {2024},
  url = {https://openreview.net/forum?id=2UjbBOVm0n},
}
Figure