Approximating Queries on Probabilistic Graphs

Antoine Amarilli, Timothy van Bremen, Octave Gaspard, Kuldeep S. Meel · DOI

TL;DR

This paper maps out the tractability landscape for approximating queries on probabilistic graphs, establishing precisely when efficient randomized approximation schemes (FPRASes) exist and when they are conditionally impossible. Along the way, the authors resolve a long-standing open problem in network theory by proving the existence of an FPRAS for the two-terminal network reliability problem on directed acyclic graphs (DAGs).

What Problem Does This Paper Address?

Query evaluation over probabilistic databases—calculating the probability that a query is true given a database of uncertain facts—is notoriously difficult. It is typically #P-hard, meaning exact computation is intractable even for very simple queries. To bypass this, researchers look for approximation algorithms, specifically a Combined FPRAS (Fully Polynomial-time Randomized Approximation Scheme), which guarantees a close multiplicative approximation in a runtime polynomial in both the query size and the database size.

While previous work found an FPRAS for a specific class of "self-join-free" queries, this paper focuses on probabilistic graphs (where relations are binary and self-joins are allowed). The authors tackle a fundamental question: For which structural classes of queries (e.g., paths, trees) and graph instances (e.g., DAGs, arbitrary graphs) can we successfully design a combined FPRAS?

Methods

The authors employ a mix of knowledge compilation, weighted model counting, and complexity-theoretic reductions:

  1. Boolean Provenance & nOBDDs: To evaluate a query, the authors track its provenance—the Boolean formula representing which combinations of edges make the query true. For certain tractable cases, they compile this provenance into non-deterministic ordered binary decision diagrams (nOBDDs).
  2. Weighted Model Counting (WMC): They adapt recent algorithmic breakthroughs in approximate counting for nOBDDs to the weighted setting, allowing them to compute probabilities efficiently when a compact nOBDD can be constructed.
  3. Hardness Reductions: To prove that certain query-instance combinations are inapproximable, they design reductions from hard counting problems (like counting independent sets or satisfying assignments of monotone 2-CNF formulas), showing that an FPRAS cannot exist unless $RP = NP$.
  4. Unconditional Lower Bounds: They use structural graph properties (like treewidth) to prove that for hard classes, the provenance cannot be compactly compiled into Decomposable Negation Normal Form (DNNF) circuits, providing an unconditional explanation for why these problems resist approximation.

Datasets

Not discussed in the paper. This work is purely theoretical and does not evaluate algorithms on empirical datasets or benchmarks.

Key Insights and Ideas

  • The Magic of Topological Ordering: The core positive result of the paper relies on directed acyclic graphs (DAGs). Because DAG edges can be topologically ordered, the authors show that the provenance of a one-way path query can be processed sequentially into a compact nOBDD. This structure completely unlocks the ability to approximate the query efficiently.
  • Solving a Long-Standing Network Reliability Mystery: The authors realized that the two-terminal network reliability problem (ST-CON)—finding the probability that a source and sink remain connected in a probabilistic graph—on a DAG can be framed as a collection of path queries. By applying their nOBDD compilation technique, they delivered an FPRAS for ST-CON on DAGs, answering a question open since at least 2011.
  • The Danger of Self-Joins: Previous literature suggested that queries with bounded tree-width were easy to approximate if they were "self-join-free" (meaning no relation symbol is repeated). This paper proves that as soon as you allow self-joins, even the simplest treewidth-1 queries (like a two-way path) become completely inapproximable on simple tree-like instances.

Key Results

The paper completely classifies the combined complexity of approximate graph homomorphism for several graph classes (summarized in the paper's Table 1):

  • Tractability: Proved that evaluating one-way path queries (1WP) on DAG instances admits a combined FPRAS.
  • Inapproximability: Proved that slightly more complex queries, such as two-way paths (2WP) on polytrees, or downward trees (DWT) on downward tree instances, do not admit an FPRAS unless $RP = NP$.
  • Unconditional Circuit Size Explosions: Showed that any DNNF circuit representing the provenance of a 1WP query on an arbitrary graph must have a size of at least $2^{\Omega(||G||+||H||)^{1-\epsilon}}$, proving that intensional (provenance-based) methods are fundamentally limited here.
Labelled Setting Complexity Landscape:
+------------+-------------+-------------+
| Query \ Ins|     DAG     |     All     |
+------------+-------------+-------------+
|    1WP     |    FPRAS    |   Hard      |
|    2WP     |    Hard     |   Hard      |
|    DWT     |    Hard     |   Hard      |
+------------+-------------+-------------+

Limitations and Future Work

  • Remaining Gaps: In the unlabelled graph setting (where all edges share a single relation type), two specific cases remain open: the approximability of one-way paths (1WP) and downward trees (DWT) on arbitrary graphs.
  • Broader Graph Classes: A promising direction is extending the DAG tractability results to more general graph classes, such as graphs with bounded DAG-width.
  • Relational Databases: The current results are strictly bounded to binary signatures (graphs). Lifting these bounds to arbitrary relational databases remains an open challenge.

Summary updated

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