TL;DR
QuerySmasher is a new, highly scalable matrix mechanism for differential privacy that uses a divide-and-conquer strategy to break complex linear queries into orthogonal, low-dimensional subqueries. By optimizing these smaller subqueries independently and stitching them back together, it bypasses the exponential scalability wall of traditional matrix mechanisms while provably delivering lower error than prior state-of-the-art methods.
What Problem Does This Paper Address?
When releasing statistical summaries of confidential datasets, data publishers often use matrix mechanisms to satisfy differential privacy (DP). These mechanisms work by answering a carefully chosen set of "strategy queries" with added noise, and then reconstructing answers to the user's original workload queries through linear post-processing.
While powerful, matrix mechanisms hit a massive scalability wall on high-dimensional datasets. Finding the mathematically optimal strategy matrix requires solving a semi-definite programming (SDP) problem that scales quadratically with the total data domain size ($O((\prod d_i)^2)$). For a dataset with dozens of attributes, this optimization becomes completely intractable.
Prior scalable approaches like ResidualPlanner (RP) and Weighted Fourier Factorizations (WFF) bypassed this bottleneck by restricting themselves to fixed, compact query bases (like the residual or Fourier basis). However, because these bases are workload-independent, they often yield suboptimal accuracy for complex, non-standard query workloads.
Methods
QuerySmasher introduces a novel divide-and-conquer approach that achieves both scalability and workload-optimized accuracy through five key steps:
- Query Decomposition: It takes each query from the workload and projects it onto different residual spaces—subspaces that capture information unique to specific combinations of attributes (marginals).
- Subworkload Grouping: Subqueries projecting onto the same residual space are grouped into low-dimensional subworkloads. Crucially, the authors prove that these subworkloads are mutually orthogonal, meaning they can be optimized completely independently without leaking privacy budget across groups.
- Independent Optimization: Because each subworkload is low-dimensional, QuerySmasher can deploy exact, non-scalable SDP solvers to find the absolute optimal matrix mechanism for each individual subworkload.
- Global Noise Rescaling: It analytically calculates the optimal allocation of the overall privacy budget ($\beta$) across the independent mechanisms to minimize the total global weighted sum squared error.
- Reconstruction: To answer an original query, QuerySmasher simply sums up the noisy answers obtained from the optimized subworkload mechanisms.
The visual intuition behind how a single query is broken down into these orthogonal components is illustrated below:
Datasets
The authors evaluated QuerySmasher using both real-world and synthetic datasets:
- Real-World Datasets:
- Adult: 9 categorical and 5 numeric attributes from the UCI repository.
- CPS: Current Population Survey data (3 categorical, 2 numeric attributes).
- Loans: Financial dataset containing 8 categorical and 4 numeric attributes.
- Synthetic Datasets: Generated with schemas of the form $[n]^d$, where the number of attributes ($d$) ranged up to 40 and the domain size of each attribute ($n$) ranged up to 50, allowing the authors to test extreme high-dimensional scaling.
Key Insights and Ideas
- Orthogonality is the Secret Sauce: The core "aha moment" is that projecting queries onto residual spaces yields subqueries that are completely orthogonal across different attribute sets. This independence means that optimizing one subworkload has zero negative impact on another, allowing for perfect parallelization.
- Subsuming Prior Work: The authors mathematically prove that QuerySmasher generalizes prior state-of-the-art methods. If you replace QuerySmasher's optimal low-dimensional solvers with fixed Fourier or residual bases, it becomes mathematically equivalent to WFF or RP/RP+. Consequently, QuerySmasher is guaranteed to match or beat these methods on any workload.
- Workload-Aware Compact Bases: Instead of forcing the data into a rigid, predefined basis, QuerySmasher dynamically discovers the best compact linear basis tailored specifically to the requested workload.
Key Results
- Superior Accuracy: QuerySmasher consistently achieved the lowest Root Mean Squared Error (RMSE) across all tested workloads. For complex, non-axis-aligned queries (like Affine and Abs queries), QuerySmasher reduced error by 15% to 21% compared to the next best method.
- Massive Scalability: Traditional matrix mechanisms fail when the domain size explodes. In contrast, QuerySmasher successfully optimized a synthetic dataset workload with 40 attributes, each with a domain size of 40—representing an effective full tuple domain of $40^{40} \approx 1.2 \times 10^{64}$—in about 50 minutes (3,032 seconds) using 227 GB of RAM. Its resource consumption scales with the number of requested data views rather than the exponential size of the full data domain.
Limitations and Future Work
While QuerySmasher scales remarkably well, a potential bottleneck arises if a single requested marginal query itself contains too many variables, making even the "low-dimensional" subworkload SDP too large to solve exactly.
To mitigate this, the authors note that approximate solvers can easily be plugged into QuerySmasher's modular framework. For future work, they propose integrating QuerySmasher with iterative, data-dependent DP algorithms (like MWEM) to combine structural workload planning with data-driven query exploration.
Summary updated