Skip to main content
QUICK REVIEW

[Paper Review] Combined Tractability of Query Evaluation via Tree Automata and Cycluits

Antoine Amarilli, Pierre Bourhis|arXiv (Cornell University)|Dec 13, 2016
Advanced Graph Theory ResearchComputer Science14 references2 citations
TL;DR

This paper introduces intensional-clique-guarded Datalog (ICG-Datalog), a Datalog fragment with stratified negation that enables fixed-parameter tractable (FPT)-linear evaluation on databases of bounded treewidth, parameterized by rule size. It achieves this by compiling queries to alternating two-way tree automata and using cycluits—cyclic provenance circuits with stratified semantics—for efficient evaluation, while showing that probabilistic query evaluation remains intractable under this parameterization.

ABSTRACT

Several query evaluation tasks can be done via knowledge compilation: the query result is compiled as a lineage circuit from which the answer can be determined. For such tasks, it is important to leverage some width parameters of the circuit, such as bounded treewidth or pathwidth, to convert the circuit to structured classes, e.g., deterministic structured NNFs (d-SDNNFs) or OBDDs. In this work, we show how to connect the width of circuits to the size of their structured representation, through upper and lower bounds. For the upper bound, we show how bounded-treewidth circuits can be converted to a d-SDNNF, in time linear in the circuit size. Our bound, unlike existing results, is constructive and only singly exponential in the treewidth. We show a related lower bound on monotone DNF or CNF formulas, assuming a constant bound on the arity (size of clauses) and degree (number of occurrences of each variable). Specifically, any d-SDNNF (resp., SDNNF) for such a DNF (resp., CNF) must be of exponential size in its treewidth; and the same holds for pathwidth when compiling to OBDDs. Our lower bounds, in contrast with most previous work, apply to any formula of this class, not just a well-chosen family. Hence, for our language of DNF and CNF, pathwidth and treewidth respectively characterize the efficiency of compiling to OBDDs and (d-)SDNNFs, that is, compilation is singly exponential in the width parameter. We conclude by applying our lower bound results to the task of query evaluation.

Motivation & Objective

  • To identify parameterized classes of queries and databases where combined query evaluation is fixed-parameter tractable.
  • To address the gap in tractable combined complexity for query evaluation on treelike (bounded-treewidth) databases.
  • To develop a compilation framework that enables efficient evaluation via automata and provenance tracking.
  • To show that probabilistic query evaluation remains intractable even under the proposed parameterization.
  • To formalize and prove the tractability of query classes such as two-way regular path queries and α-acyclic conjunctive queries under bounded treewidth with clique-guards.

Proposed method

  • Proposes ICG-Datalog, a Datalog fragment with stratified negation, clique-guards, and inflationary fixpoints.
  • Compiles ICG-Datalog programs to alternating two-way tree automata for efficient evaluation on treelike instances.
  • Introduces cycluits—cyclic provenance circuits with stratified semantics—to represent and evaluate automaton provenance in linear time.
  • Uses tree decompositions with clique-guards (simplicial decompositions) as the structural parameter for tractability.
  • Employs a novel operational semantics for automata via cycluits to handle recursion and two-way traversal.
  • Reduces query evaluation to emptiness testing on automata, leveraging the treelike model property of bounded-treewidth instances.

Experimental results

Research questions

  • RQ1Can we achieve fixed-parameter tractable (FPT)-linear combined complexity for query evaluation on bounded-treewidth databases?
  • RQ2Can we define a Datalog fragment that captures tractable query classes like α-acyclic conjunctive queries and two-way regular path queries under bounded treewidth?
  • RQ3Is there a provenance representation that efficiently handles recursion and two-way traversal in automata-based query compilation?
  • RQ4Can cycluits—stratified cyclic circuits—be evaluated in linear time and serve as a viable alternative to Boolean circuits or formulae?
  • RQ5Does the proposed parameterization preserve tractability for probabilistic query evaluation?

Key findings

  • ICG-Datalog enables FPT-linear combined complexity for query evaluation on bounded-treewidth databases, parameterized by rule size.
  • The language captures α-acyclic conjunctive queries, guarded negation fragment queries of bounded CQ-rank, and two-way regular path queries.
  • Cycluits allow linear-time evaluation of provenance for alternating two-way automata, outperforming traditional formulae or circuits in handling recursion and bidirectional traversal.
  • Bounded-treewidth queries alone are not efficiently compilable to automata, as shown by a lower bound: treewidth is insufficient without clique-guards.
  • Probabilistic query evaluation remains intractable in combined complexity even under the proposed parameterization.
  • The paper establishes a 2EXPTIME-hardness result for containment of monadic Datalog in bounded-treewidth conjunctive queries, matching the general upper bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.