Abstract
In this paper, we prove topology dependent bounds on the number of rounds needed to compute Functional Aggregate Queries (FAQs) in a synchronous distributed network. Unlike recent work on Massively Parallel Computation (MPC), we consider a model where nodes communicate via private point-to-point channels over an arbitrary communication topology. We focus on Boolean Conjunctive Queries (BCQ) and computing marginals in Probabilistic Graphical Models (PGMs), obtaining tight bounds for queries with $O(1)$-degeneracy and $O(1)$-arity. These bounds depend on a new structural metric called "internal-node-width" for Generalized Hypertree Decompositions (GHDs). Finally, we prove tight bounds on the round complexity of chain matrix-vector multiplication using a novel min-entropy based argument.
Introduction
Distributed computing often involves solving complex queries, such as joining database tables or calculating marginals in probabilistic graphical models, across a network of machines. While previous research has focused on specific, highly-connected models like Massively Parallel Computation (MPC), real-world networks—such as sensor networks or data centers—often possess arbitrary and sparse topologies.
The core challenge addressed in this work is determining the minimum number of communication rounds required to compute a query when the network structure itself acts as a bottleneck. We bridge the gap between centralized query efficiency and distributed communication costs by accounting for the specific structure of both the query (represented as a hypergraph) and the underlying communication network (represented as a graph).
Methods
We model the problem in a synchronous distributed network where nodes communicate over private point-to-point channels. Our approach integrates classical graph theory with modern communication complexity:
- Upper Bounds: We develop protocols based on Steiner tree packing to maximize parallel communication across the network. For acyclic queries, we employ a bottom-up processing strategy on query decompositions.
- Internal-Node-Width: We define a new width measure, $y(\mathcal{H})$, which counts the number of internal (non-leaf) nodes in a query's Generalized Hypertree Decomposition (GHD). This metric is the primary factor determining round complexity in our model.
- Lower Bounds: To establish tightness, we use reductions from the TRIBES function in two-party communication complexity, extending these results to general network topologies using min-cut arguments.
- Min-Entropy Analysis: For Chain Matrix-Vector Multiplication (MCM), we employ a novel inductive argument based on min-entropy to prove optimality, as standard Shannon entropy was insufficient for these proofs.
Key Insights and Ideas
- Topology as a First-Class Citizen: Unlike MPC models that assume "clique-like" connectivity, this work demonstrates that the network's min-cut and Steiner tree packing capacity are the primary drivers of round complexity.
- Width Redefined: Traditional "treewidth" is insufficient to describe distributed complexity. The "internal-node-width" $y(\mathcal{H})$ provides a much tighter characterization of the communication rounds needed in a distributed setting.
- Tightness for Common Queries: For queries with constant degeneracy (including those with constant treewidth), we provide matching upper and lower bounds.
- Matrix Chains are Hard: Distributed matrix chain multiplication has a fundamental lower bound of $\Omega(kN)$ rounds, proving that the natural sequential algorithm is optimal and cannot be significantly improved by distribution.
Key Results
- Tight Complexity Bounds: We establish tight bounds (up to constant factors) for Boolean Conjunctive Queries (BCQ) on any network topology $G$, provided the query has constant degeneracy and arity.
- Round Complexity Characterization: The number of rounds is shown to be roughly proportional to $y(\mathcal{H}) \cdot \frac{N}{\text{capacity}(G)}$, where $N$ is the input size and capacity relates to the network's ability to pack edge-disjoint Steiner trees.
- MCM Optimality: We prove that for a chain of $k$ matrices of size $N \times N$, the round complexity is exactly $\Theta(kN)$, resolving the complexity for this fundamental task.
Limitations and Future Work
- The Clique Gap: A significant gap remains for queries where the hypergraph is a clique (e.g., $d$-degenerate for large $d$). This represents a fundamental bottleneck in current communication complexity techniques.
- Optimal Assignments: Current bounds assume a worst-case assignment of functions to nodes. Finding the optimal assignment for a given query and topology is a promising future direction.
- Fault Tolerance and Dynamics: Extending these bounds to handle node failures or message loss via data replication, as well as exploring dynamic topologies, are important next steps.
Summary updated