Approximating Queries on Probabilistic Graphs

Antoine Amarilli, Timothy van Bremen, Kuldeep S. Meel, Meel, Kuldeep S.

Abstract

Query evaluation over probabilistic databases is notoriously intractable—not only in combined complexity but often in data complexity as well. This motivates the study of approximation algorithms, particularly combined FPRASes, with runtime polynomial in both the query and instance size. In this paper, we focus on tuple-independent probabilistic databases over binary signatures, i.e., probabilistic graphs, and study when we can devise combined FPRASes for probabilistic query evaluation. We settle the complexity of this problem for a variety of query and instance classes by proving both approximability results and (conditional) inapproximability results, alongside (unconditional) DNNF provenance circuit size lower bounds. This allows us to deduce many corollaries of independent interest. For example, we show how the results of Arenas et al. 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 (DAGs). We also demonstrate that recent results giving a combined FPRAS for self-join-free conjunctive queries of bounded hypertree width cannot be extended: neither the bounded-hypertree-width condition nor the self-join-freeness hypothesis can be relaxed.

Introduction

Probabilistic databases (PDBs) are essential for managing uncertain data, such as sensor readings, noisy web-scraped information, or biological networks. However, calculating the exact probability that a query is true in a PDB is notoriously difficult—usually #P-hard, even for simple queries. While much research has focused on "data complexity" (where the query is fixed), this paper tackles the more challenging combined complexity, where both the query and the database size can grow.

The authors specifically investigate "probabilistic graphs"—tuple-independent databases where edges exist with certain probabilities—and ask: For which classes of queries and graph structures can we find a Fully Polynomial-Time Randomized Approximation Scheme (FPRAS)? An FPRAS provides a multiplicative approximation with high confidence in polynomial time, offering a practical alternative when exact computation is impossible.

Methodology: Knowledge Compilation and Reductions

The research employs a dual approach of algorithmic construction and complexity-theoretic proofs:

  • nOBDDs and Weighted Model Counting: For positive results, the authors represent the "provenance" of a query (the logical conditions under which it is true) as a non-deterministic Ordered Binary Decision Diagram (nOBDD). By leveraging recent breakthroughs in weighted model counting for nOBDDs, they can estimate the total probability efficiently.
  • Complexity Reductions: To establish inapproximability, the authors use reductions from hard counting problems, such as counting satisfying assignments of monotone 2-CNF formulas (#2SAT).
  • Knowledge Compilation Lower Bounds: The paper provides unconditional lower bounds on the size of Decomposable Negation Normal Form (DNNF) circuits. This proves that for many queries, any "intensional" approach (building a circuit to represent the query) will inevitably result in an exponentially large representation, precluding efficient approximation via standard knowledge compilation pipelines.

Key Results and Insights

The DAG "Sweet Spot"

A major contribution of this work is identifying that while exact query evaluation on Directed Acyclic Graphs (DAGs) is #P-hard, path queries on DAGs admit a compact nOBDD representation. This allows for an efficient approximation where exact calculation fails. This finding directly solves a long-standing open problem in network reliability: it provides the first known FPRAS for the two-terminal network reliability problem (ST-CON) on DAGs, answering a question posed by Zenklusen and Laumanns in 2011.

Limits of Tractability

The paper provides a comprehensive classification of (in)approximability across various graph and query classes:

  • Positive Result: A combined FPRAS exists for One-Way Path (1WP) queries on DAGs.
  • Negative Results: No combined FPRAS exists for 1WP queries on arbitrary graphs, or for tree queries on tree-structured instances, unless $RP = NP$.
  • Self-Join Constraints: Recent literature suggested that "self-join-free" queries of bounded width might be the key to tractability. This paper demonstrates these conditions are strict: if self-joins are allowed or the width is increased even slightly, the problem becomes inapproximable.

Circuit Size Lower Bounds

For non-approximable cases, the authors established that the required DNNF circuit size is at least $2^{\Omega((||G||+||H||)^{1-\epsilon})}$. This "strongly" exponential lower bound explains why these queries are fundamentally resistant to current approximation techniques based on knowledge compilation.

Limitations and Future Work

While this work maps the boundary of tractability, several gaps remain. Two specific cases in the "unlabelled" setting (where only one type of edge exists) remain open: 1WP and Downward Tree queries on arbitrary graphs. It is currently unknown if these admit an FPRAS.

Future research directions include extending the DAG results to graphs with "bounded DAG-width," a structural property that generalizes acyclicity. Additionally, while the paper touches on Regular Path Queries (RPQs) in data complexity, a full dichotomy mapping which RPQs are hard versus easy remains an open challenge. Finally, investigating the "unweighted" case—where every edge has the same probability—may reveal if tractability changes when the input probabilities are uniform.

Summary updated

BibTeX
@article{amarilli2023approximating,
  author = {Antoine Amarilli and Timothy van Bremen and Kuldeep S. Meel and Meel, Kuldeep S.},
  title = {{Approximating Queries on Probabilistic Graphs}},
  journal = {Log. Methods Comput. Sci.},
  year = {2023},
}
Figure