Convolution Sum-Product Queries
Abstract
We study query evaluation for an extension of sum-product queries (SPQ) that allows atoms with linear combinations of variables (e.g. ), which we call convolution sum-product queries (CSPQs). These queries arise in both practical settings (e.g. image processing workloads) and theoretical ones (e.g. the -convolution and -SUM conjectures), and capture SPQs with added linear equality constraints. While prior work has considered the impact of linear in- and dis-equality constraints on query evaluation, the techniques developed in that setting are asymptotically sub-optimal for CSPQs. To address this, we describe several evaluation algorithms for CSPQs that leverage linear algebra techniques like rank analysis, quotient spaces, and variable substitution. First, we adapt Worst-Case Optimal Joins to CSPQs, achieving a runtime similar in spirit to that for conjunctive queries. Then, we extend the definition of tree decompositions (TDs) to CSPQs, and describe a factorized execution. In this extension, linear combinations are first-class citizens and play the same role as variables in traditional TDs. We define three width measures that bound the complexity of this execution with respect to the size of the domain values, of the active domain, and of the relation's support. Lastly, we show how these methods can be applied to arbitrary fields beyond the rationals.
Create a lesson
Related papers
Prune First, Optimize Globally: Scalable Semantic Query Processing with UniBays
Shared title terminologycs.DBZhengle Wang, Hanxu Yan, Weizheng Wang et al.
The Selfish Models Property: Bounding the Complexity of Query Containment and Entailment Problems
Shared title terminologycs.DBHubie Chen
DecideSQL: Probabilistic Semantic Query Processing with Decision Models
Shared title terminologycs.DBOktie Hassanzadeh, Long Vu, Dharmashankar Subramanian
Do Semantic Query Engines Need LLMs? An Experimental Study of Decision Models
Shared title terminologycs.DBOktie Hassanzadeh, Long Vu, Dharmashankar Subramanian
Natural-Language-to-GPML: Dual-Oracle Witness Synthesis, Orthogonal Subspace Merging, and Live Schema-Constrained Decoding for ISO/IEC 39075 Graph Queries
Shared title terminologycs.DBMadhulatha Mandarapu, Sandeep Kunkunuru
RedMem-Store: Characterizing and Optimizing Storage Engine for LLM User Memory at Production Scale
Shared title terminologycs.DBBing Tian, Xiao Chen, Haikun Liu et al.