Abstract
This paper introduces a unified theoretical framework that bridges the gap between combinatorial database join algorithms and fast matrix multiplication (FMM). By generalizing the concept of "submodular width" to a new measure called $\omega$-submodular width, we provide a systematic way to derive the best-known (and sometimes brand-new) algorithms for answering complex database queries. Our framework successfully recovers state-of-the-art complexities for $k$-cliques and cycles while discovering new, faster algorithms for $k$-pyramid queries.
Introduction
In database theory, determining the "speed limit" for answering join queries is a fundamental challenge. For years, the gold standard for combinatorial algorithms—those utilizing loops and clever data partitioning—has been captured by the submodular width metric. However, researchers discovered that for specific queries, such as finding triangles in a graph, one could surpass the combinatorial limit by employing Fast Matrix Multiplication (FMM).
Despite these successes, FMM-based techniques remained isolated tricks. There was no general theory to identify which queries benefit from FMM, determine the absolute best complexity possible when FMM is available, or automatically design algorithms that optimally mix combinatorial joins with FMM. This paper addresses these gaps by framing the problem through the lens of Information Theory.
Methodology: The $\omega$-Submodular Width
The core of this framework is the introduction of $\omega$-submodular width, a new metric that incorporates $\omega$ (the exponent of matrix multiplication, currently $\approx 2.37$). This metric measures query difficulty by considering query plans that can mix traditional loops with FMM steps.
To achieve this, the authors utilize several key theoretical tools:
- Generalized Variable Elimination: Unlike traditional query planning that eliminates one variable at a time, this framework allows for the simultaneous elimination of sets of variables using FMM.
- Polymatroids as Proxies: Mathematical objects called polymatroids are used to model the "degree configurations" of data. This transforms the database optimization problem into a series of Linear Programs (LPs).
- Information-Theoretic Mapping: The complexity of matrix multiplication is expressed as a specific type of information-theoretic inequality. This allows FMM to be integrated into the same mathematical machinery used for traditional joins.
Benchmarking and Theoretical Evaluation
As a theoretical contribution, the framework is evaluated against a benchmark of well-known hard queries from database literature, including Triangle Queries ($Q_\Delta$), $k$-Cliques, $k$-Cycles, and $k$-Pyramids. The framework provides a "meta-algorithm" that takes a query, solves the associated LPs to find an optimal proof sequence based on Shannon inequalities, and translates that proof into concrete database operations.
Key Results
The framework successfully recovers all previously known "best" complexities for famous queries and discovers new, faster algorithms for others. A significant theoretical insight is the $\omega=3$ Convergence: the authors demonstrate that if matrix multiplication were as slow as traditional multiplication ($\omega=3$), the new $\omega$-submodular width perfectly collapses back into the standard submodular width, proving the theory is a true generalization.
As shown in the table above, the framework matches the best-known custom algorithms for large cliques ($k \ge 6$) and cycles. Most notably, it provides a new upper bound for the complexity of $k$-pyramid queries that is strictly better than previous benchmarks. For any arbitrary Boolean conjunctive query $Q$, the algorithm runs in time $\tilde{O}(N^{\omega\text{-subw}(Q)})$, where $N$ is the database size.
Conclusion and Future Work
While this framework provides a powerful unified theory for Boolean queries (detection and existence), extending it to "Full" queries (listing every joined row) remains a challenge. FMM is highly efficient for counting or detection but less suited for reconstructing actual joined rows without significant performance penalties. Additionally, the current algorithm assumes $\omega$ is a rational number and operates over standard addition/multiplication semirings; extending this to "tropical" semirings (min/plus) used in other optimization problems remains a subject for future research.
Summary updated