Secure Query Processing with Linear Complexity
Qiyao Luo, Yilei Wang, Wei Dong, Ke Yi
TL;DR
This paper targets efficient secure query processing when data resides with multiple mutually distrustful parties. It introduces LINQ, the first protocol achieving linear time and communication in the 3-party model for a broad class of queries called free-connex, closely matching plaintext performance for weighted joins and aggregations. The method hinges on a hash-based consistent sort, ranks, and a novel hash-sort-merge-join that enables linear two-way and multi-way joins while preserving privacy. A complete system implementation demonstrates substantial practical gains over prior MPC baselines in both relatio nal and graph workloads, signaling a path toward practical MPC-enabled analytics. The work also discusses extending to a three-server model and outlines open questions for 2PC linear-time possibilities.
Abstract
We present LINQ, the first join protocol with linear complexity (in both running time and communication) under the secure multi-party computation model (MPC). It can also be extended to support all free-connex queries, a large class of select-join-aggregate queries, still with linear complexity. This matches the plaintext result for the query processing problem, as free-connex queries are the largest class of queries known to be solvable in linear time in plaintext. We have then built a query processing system based on LINQ, and the experimental results show that LINQ significantly outperforms the state of the art. For example, it can finish a query on three relations with an output size of 1 million tuples in around 100s in the LAN setting, while existing protocols that support the query cannot finish in an hour. Thus LINQ brings MPC query processing closer to practicality.
