HDMM: Optimizing error of high-dimensional statistical queries under differential privacy

Ryan McKenna, Gerome Miklau, Michael Hay, Ashwin MachanavajjhalaarXiv 2021

TL;DR

HDMM (High-Dimensional Matrix Mechanism) scales the powerful "Matrix Mechanism" for differential privacy to high-dimensional datasets by using compact, implicit matrix representations. It achieves state-of-the-art accuracy for complex query workloads—often nearing theoretical lower bounds—while remaining computationally efficient for domains far too large for traditional methods.

What Problem Does This Paper Address?

When organizations like the U.S. Census Bureau release summary statistics, they must protect individual privacy. Differential Privacy (DP) provides a formal framework for this, typically by adding random noise to query results. However, the simplest approach—adding noise to every requested query—often results in poor accuracy, especially when queries are numerous or highly correlated.

The Matrix Mechanism was previously proposed to solve this by finding an optimal "strategy" of queries to measure, from which the desired workload can be reconstructed with minimal error. The catch? It requires representing workloads as explicit matrices. For a dataset with many attributes, these matrices grow exponentially (the "curse of dimensionality"), making the optimization problem computationally impossible for anything beyond simple, low-dimensional data.

Methods

The authors introduce several innovations to make the Matrix Mechanism practical for high-dimensional data:

  • Implicit Matrix Representation: Instead of materializing massive matrices, HDMM represents query workloads using Kronecker products of much smaller matrices (one per attribute). This allows for a lossless, compact representation of conjunctive queries (e.g., "Age < 30 AND Income > 50k").
  • Specialized Optimization Routines: The paper provides four distinct optimization operators tailored to different workload structures:
  • OPT0: For small, explicit workloads.
  • OPT⊗ and OPT+: For workloads that can be decomposed into single or multiple Kronecker products.
  • OPTM: A highly efficient routine specifically for marginal queries, which are the bread and butter of statistical data release.
  • Dual Noise Support: HDMM provides tailored techniques for both $\epsilon$-DP (using Laplace noise) and $(\epsilon, \delta)$-DP (using Gaussian noise).
  • Scalable Reconstruction: To handle cases where even the data vector is too large to fit in memory, HDMM can integrate with Private-PGM, a graphical-model-based approach that estimates the data distribution without explicit materialization.

For a quick reference on the symbols used in these methods, see the table below:

Table of notation used throughout the paper.

Datasets

The authors evaluate HDMM on a mix of real-world and synthetic benchmarks:

  • U.S. Census Data: Specifically the 2010 Summary File 1 (SF1) and SF1+, involving millions of domain elements.
  • Current Population Survey (CPS): A 5-dimensional dataset used to test marginal query workloads.
  • Adult and Loans Datasets: High-dimensional datasets (14D and 12D respectively) from the UCI repository and Kaggle, where the full domain size is so large that explicit representation is impossible.
  • 1D Benchmarks: Standard workloads like "All Range" and "Prefix" queries to compare against legacy DP algorithms.

Key Insights and Ideas

  • Divide and Conquer Optimization: The authors prove that for product-structured workloads, the optimization problem itself decomposes. You can optimize the strategy for each attribute independently and combine them, which is the key to beating the curse of dimensionality.
  • The Power of Marginals: The OPTM routine demonstrates that if your workload consists of marginals, you can find near-optimal strategies in time that depends only on the number of attributes, not the size of their domains.
  • Gaussian Noise Efficiency: The paper highlights that in high dimensions, the $L_2$ sensitivity benefits of Gaussian noise often far outweigh the $(\epsilon, \delta)$ privacy "cost," making it significantly more accurate than Laplace noise for complex workloads.
  • Adaptivity is Key: Unlike fixed hierarchical methods (like the Wavelet or H2 mechanisms), HDMM's "select-measure-reconstruct" loop is fully automated and adapts to the specific structure of the input workload.

Key Results

  • Superior Accuracy: HDMM consistently outperformed all competitors (including H2, HB, and GreedyH) across all tested workloads. In multi-dimensional settings, it reduced error by as much as 38x for Laplace noise and 29x for Gaussian noise compared to standard baselines.
  • Near-Optimality: In 1D settings with Gaussian noise, HDMM's error was within 1.01x of the theoretical SVD lower bound, suggesting it finds nearly the best possible strategy allowed by math.
  • Extreme Scalability: The implicit representation allowed HDMM to handle domains as large as $10^9$ elements. The optimization routines themselves are fast, often running in seconds or minutes for complex high-dimensional schemas.

Limitations and Future Work

  • Reconstruction Bottleneck: While the optimization (SELECT) step is now highly efficient, the reconstruction step still requires significant memory if the data vector is large. While Private-PGM helps, it introduces bias in exchange for lower variance.
  • Clustering in OPT+: When dealing with a union of many products, the authors suggest grouping similar sub-workloads together, but they note that an automated, optimal way to perform this clustering is still an open research problem.
  • Data-Independent Focus: HDMM is a data-independent mechanism. In "low-signal" regimes (where the number of records is very small relative to the domain size), data-dependent mechanisms like MWEM might still offer better utility, though they are generally much slower.

Summary updated

BibTeX
@misc{mckenna2021hdmm,
  author = {Ryan McKenna and Gerome Miklau and Michael Hay and Ashwin Machanavajjhala},
  title = {{HDMM: Optimizing error of high-dimensional statistical queries under differential privacy}},
  year = {2021},
  eprint = {2106.12118},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.12118},
}

Loading related content...

Figure