Optimizing Histogram Queries under Differential Privacy

Chao Li, Michael Hay, Vibhor Rastogi, Gerome Miklau, Andrew McGregorarXiv 2009

TL;DR

When answering multiple correlated queries under differential privacy, the standard Laplace mechanism adds unnecessary noise, severely degrading data utility. This paper introduces the matrix mechanism, a novel framework that optimizes accuracy by answering a strategically selected alternative set of queries (a "strategy") and reconstructing the desired query answers using linear regression.

What Problem Does This Paper Address?

Differential privacy (DP) is the gold standard for protecting individual privacy in datasets, typically achieved by adding random noise to query answers. The magnitude of this noise is proportional to the query's sensitivity—the maximum impact a single individual's data can have on the result.

While the classic Laplace mechanism is optimal for a single query, it performs poorly when handling a workload of multiple correlated queries (queries whose answers are affected by the same underlying data points, such as overlapping range queries on a histogram). If you ask many correlated queries, the sensitivity of the entire batch skyrockets, forcing the mechanism to add massive amounts of noise to every single answer. This paper tackles the challenge of finding an optimal strategy to answer a batch of linear counting queries while minimizing total error.

Methods

The authors propose the Matrix Mechanism, which decouples the queries the analyst wants (the workload, $W$) from the queries actually submitted to the differentially private server (the strategy, $A$).

The process operates in two stages:

  1. Strategy Querying: The mechanism submits the strategy matrix $A$ to a standard Laplace (or Gaussian) mechanism, obtaining noisy answers.
  2. Workload Reconstruction: It computes a consistent, unbiased estimate of the underlying data vector using the pseudo-inverse of the strategy matrix ($A^+$), effectively applying a least-squares linear regression. The final workload answers are derived from this clean estimate ($W\hat{x}_A$).

To find the best strategy $A$ for a given workload $W$, the authors formally analyze the mean squared error using matrix properties. They prove that finding the error-minimizing strategy can be formulated as a rank-constrained semidefinite program (SDP). Because exact SDPs with rank constraints are non-convex and computationally expensive to solve, the paper introduces two efficient approximation techniques: an $L_2$ norm approximation (which naturally maps to $(\epsilon, \delta)$-differential privacy using Gaussian noise) and a singular value bound approximation.

Datasets

This paper is purely theoretical and mathematical; it does not use empirical or real-world datasets for training or evaluation. Instead, the authors evaluate their approach analytically using abstract, structured query workloads:

  • $W_R$ (Range Queries): Queries that request counts over intervals of a domain (e.g., age ranges).
  • $W_{01}$ (All Predicate Queries): The set of all possible 0-1 linear queries over the domain.

Key Insights and Ideas

  • The Sensitivity vs. Error Profile Trade-off: The total error of a strategy is dictated by two competing forces: its sensitivity (which uniformly scales the noise up) and its error profile (how the reconstruction process distributes or cancels out noise across queries). An optimal strategy must balance both.
  • Unification of Existing Methods: Prior literature proposed seemingly distinct specialized algorithms for range queries, such as hierarchical partitioning trees and Haar Wavelets. The authors reveal that both are actually just specific, hand-crafted instances of the matrix mechanism.
  • Correlated Noise is a Feature, Not a Bug: While the Laplace mechanism adds independent noise to each query, the matrix mechanism injects complex, linearly correlated noise. When the workload queries are reconstructed, this correlation helps cancel out errors, yielding much higher accuracy.

Key Results

  • Asymptotic Equivalence: The authors prove that the hierarchical strategy ($H_n$) and the wavelet strategy ($Y_n$) are asymptotically equivalent in error. Specifically, for any linear counting query, the error under one is at most twice the error under the other.
  • Tightened Bounds for Range Queries: For a domain of size $n$, the matrix mechanism using hierarchical or wavelet strategies reduces the maximum error for range queries ($W_R$) to $\Theta(\log^3 n / \epsilon^2)$, a massive improvement over the standard identity strategy ($I_n$), which suffers an error of $\Theta(n / \epsilon^2)$.
  • Algorithmic Formulation: The paper successfully frames the search for optimal privacy strategies as an optimization problem, moving the field away from manually designing ad-hoc heuristics toward automated, workload-specific strategy generation.

Limitations and Future Work

  • Computational Complexity: Solving the exact rank-constrained SDP is computationally demanding ($O(m^3n^3)$), and there are no proven bounds on the number of iterations required for the solver to converge.
  • Lack of Closed-Form Solutions: While the authors provide excellent approximations, they have not yet derived closed-form, fully optimal strategies for arbitrary, unstructured workloads.
  • Extension to Interactive Settings: The current matrix mechanism assumes the entire workload is known upfront (batch setting). Adapting this optimization framework to an interactive setting—where queries arrive one by one dynamically—remains an open challenge.

Summary updated

BibTeX
@misc{li2009optimizing,
  author = {Chao Li and Michael Hay and Vibhor Rastogi and Gerome Miklau and Andrew McGregor},
  title = {{Optimizing Histogram Queries under Differential Privacy}},
  year = {2009},
  eprint = {0912.4742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0912.4742},
}
Figure