Skip to main content
QUICK REVIEW

[Paper Review] Boolean Tensor Decomposition for Conjunctive Queries with Negation

Mahmoud Abo Khamis, Hung Q. Ngo|arXiv (Cornell University)|Dec 20, 2017
Tensor decomposition and applicationsMathematics41 references6 citations
TL;DR

This paper introduces a novel approach to evaluating conjunctive queries with negation on bounded-degree relations by rewriting them into equivalent queries with not-all-equal (NAE) predicates, then leveraging a Boolean tensor decomposition of these NAE predicates via a generalized color-coding technique. The method achieves data complexity matching that of the best-known positive query algorithms (InsideOut and PANDA), with query complexity that is polynomial for structured negated relations and exponential only in general cases, offering a significant improvement over prior methods for such queries.

ABSTRACT

We propose an algorithm for answering conjunctive queries with negation, where the negated relations have bounded degree. Its data complexity matches that of the best known algorithms for the positive subquery of the input query and is expressed in terms of the fractional hypertree width and the submodular width. The query complexity depends on the structure of the negated subquery; in general it is exponential in the number of join variables occurring in negated relations yet it becomes polynomial for several classes of queries. This algorithm relies on several contributions. We show how to rewrite queries with negation on bounded-degree relations into equivalent conjunctive queries with not-all-equal (NAE) predicates, which are a multi-dimensional analog of disequality (not-equal). We then generalize the known color-coding technique to conjunctions of NAE predicates and explain it via a Boolean tensor decomposition of conjunctions of NAE predicates. This decomposition can be achieved via a probabilistic construction that can be derandomized efficiently.

Motivation & Objective

  • To address the high combined complexity of existing algorithms for conjunctive queries with negation, especially when negated relations have bounded degree.
  • To develop a method that matches the data complexity of state-of-the-art positive query evaluation algorithms like InsideOut and PANDA.
  • To reduce the query complexity of negated conjunctive queries by exploiting structural properties of the negated relations, particularly through NAE predicates and tensor decomposition.
  • To provide a general framework that extends color-coding to arbitrary conjunctions of NAE predicates, enabling efficient and derandomized evaluation.

Proposed method

  • Rewrite any conjunctive query with negation on bounded-degree relations into an equivalent disjunction of conjunctive queries with not-all-equal (NAE) predicates.
  • Generalize the color-coding technique from cliques of disequalities to arbitrary conjunctions of NAE predicates using a probabilistic construction.
  • Represent the conjunction of NAE predicates as a Boolean tensor decomposition, enabling efficient query evaluation via dynamic programming.
  • Derandomize the probabilistic construction using a code-concatenation technique based on linear error-correcting codes on the Gilbert-Varshamov boundary, enabling linear-time construction.
  • Integrate the decomposition with existing query evaluation algorithms (InsideOut and PANDA), inheriting their low data complexity bounds.
  • Use the resulting framework to achieve query complexity that depends polynomially on the structure of the negated relations, especially when the hypergraph of negated relations has favorable properties.

Experimental results

Research questions

  • RQ1Can conjunctive queries with negation on bounded-degree relations be evaluated with data complexity matching that of positive query evaluation algorithms like InsideOut and PANDA?
  • RQ2How can the color-coding technique be generalized beyond cliques of disequalities to handle arbitrary conjunctions of NAE predicates?
  • RQ3What is the role of Boolean tensor decomposition in enabling efficient evaluation of negated conjunctive queries, and how can it be constructed and derandomized efficiently?
  • RQ4Can the query complexity be reduced to polynomial time for structured classes of negated relations, and what parameters govern this behavior?
  • RQ5Is it possible to achieve a more refined complexity analysis than prior work by making the number of colors sensitive to the query structure?

Key findings

  • The proposed method achieves data complexity matching that of InsideOut and PANDA, with runtime bounds of O(f(Q) · log N · (N^{fhtw_F(body)} + |output|)) using InsideOut and O(f(Q) · (poly(log N) · N^{subw_F(body)} + log N · |output|)) using PANDA.
  • The query complexity is polynomial in the number of variables when the hypergraph of negated relations has favorable structure, and exponential only in the worst case.
  • The method introduces a novel Boolean tensor decomposition of conjunctions of NAE predicates, which enables a generalized color-coding technique.
  • The probabilistic construction of the tensor decomposition can be derandomized efficiently using a code-concatenation method, yielding an (N, k², k)-perfect hash family of size O(k² log N), improving over prior O(k⁴ log N) constructions.
  • The framework extends to unions of conjunctive queries with negated relations and can incorporate degree-aware versions of submodular width for improved performance on positive relations.
  • The approach cannot be generalized to the sum-product semiring over reals due to inherent computational hardness, as the counting version of the induced k-path query is #W[1]-hard.

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.