Optimality of Matrix Mechanism on $\ell_p^p$-metric

Zongrui Zou, Jingcheng Liu, Jalaj Upadhyay

TL;DR: This paper establishes that the well-known Matrix Mechanism is near-optimal for answering linear queries under $(\epsilon, \delta)$-differential privacy when measuring error using higher-order moments ($\ell_p^p$-norms). It provides tight upper and lower bounds for fundamental problems like prefix sums and parity queries, generalizing previous results that were limited to mean squared error.

The Challenge: Beyond Mean Squared Error

In data privacy, researchers frequently need to answer "linear queries"—such as calculating the sum of the first 100 entries in a database or counting users with a specific attribute. To protect individual privacy, noise must be added to these answers.

Traditionally, the efficacy of a private algorithm is measured by its Mean Squared Error (MSE). However, MSE only reflects the average squared deviation. It fails to capture the "tails" of the error distribution, meaning it doesn't indicate how often the error is extremely large. To understand the full distribution of error, researchers must examine higher moments, represented by the $\ell_p^p$-error metric (where $p \geq 2$).

Prior to this research, tight bounds were only established for the $p=2$ case (MSE), leaving a gap in our understanding of higher $p$ values within the standard "add/remove" model of differential privacy. This paper fills that gap, providing a comprehensive mathematical framework to understand the fundamental limits of private query answering for any constant $p \geq 2$.

Methodology: The Matrix Mechanism and Lower Bounds

The authors focus their analysis on the Matrix Mechanism (also known as the factorization mechanism). This approach operates in three steps:

  1. Factorizing the query matrix $A$ into two matrices, $L$ and $R$, such that $A = LR$.
  2. Answering the "base" queries $Rx$ by adding Gaussian noise.
  3. Reconstructing the final answers by multiplying the noisy result by $L$.

The core contribution of the paper is a sophisticated lower-bound analysis. The authors utilize the Hammersley-Chapman-Robins (HCR) bound—a classical statistical tool—and relate it to the $\chi^2$-divergence between the output distributions of the mechanism on neighboring datasets.

Crucially, the authors do not assume the mechanism is "unbiased." They handle potential bias by demonstrating that if a mechanism attempts to reduce variance by introducing a large bias, its total $\ell_p^p$ error will inherently remain high. To formalize this, they introduce a generalized "factorization norm," denoted as $\gamma_{(p)}(A)$, which captures the inherent difficulty of answering a specific set of queries $A$ under the $\ell_p^p$ metric.

Key Insights and Theoretical Results

Because this is a theoretical paper, it evaluates the proposed bounds on mathematically defined "workload" matrices rather than empirical datasets. The authors focus on Prefix Sums (the standard model for continual counting in data streams) and Parity Queries (often used to prove hardness results in machine learning).

The analysis yields several major insights and results:

  • Robustness of the Matrix Mechanism: The most significant takeaway is that the Matrix Mechanism—originally designed with MSE in mind—remains near-optimal even when evaluating much higher moments of error.
  • Interpolation of Error: The $\ell_p^p$ metric acts as a bridge. At $p=2$, it represents standard squared error. As $p \to \infty$, it approaches the maximum absolute error ($\ell_\infty$). The Matrix Mechanism handles this entire spectrum gracefully.
  • Add/Remove vs. Substitution: The authors highlight that the "add/remove" model (where a user is either in or out of the dataset) is more complex to analyze than the "substitution" model. Their results provide the first tight bounds for the more common add/remove model in this context.
  • General Lower Bound: For any $(\epsilon, \delta)$-DP mechanism, the $\ell_p^p$ error is proven to be at least $\Omega(\gamma_{(p)}(A)/\epsilon)$.
  • Prefix Sum Optimality: For prefix sums, the error is $\Theta(n^{1/p} \log n)$ for any constant $p$, generalizing the famous $O(\sqrt{n} \log n)$ bound for $p=2$.
  • Parity Query Hardness: The authors establish a tight lower bound of $\Omega(m^{1/2 + 1/p})$ for parity queries, where $m$ is the number of queries.

Ultimately, the Matrix Mechanism achieves these lower bounds within a factor that is only logarithmic in the number of queries and the privacy parameter $\delta$.

Limitations and Future Directions

While the paper provides a robust theoretical foundation, the authors acknowledge a few limitations:

  • Worst-Case vs. Instance-Optimal: The paper provides a "worst-case" lower bound (the error on the hardest possible dataset). While the Matrix Mechanism is optimal in this sense, achieving "instance-optimality" (being optimal for a specific dataset) is significantly harder and may be impossible for general mechanisms without further assumptions.
  • Large $p$ Gap: For very large $p$ (specifically when $p$ is not a constant but grows with $n$), there remains a small gap of $\sqrt{\log n}$ between the upper and lower bounds for prefix sums.
  • Computational Complexity: The paper proves the existence of an optimal factorization. However, finding that factorization for a massive, arbitrary matrix $A$ can be computationally expensive, presenting an ongoing practical challenge for deploying the Matrix Mechanism.

Summary updated

BibTeX
@inproceedings{zou2025optimality,
  author = {Zongrui Zou and Jingcheng Liu and Jalaj Upadhyay},
  title = {{Optimality of Matrix Mechanism on $\textbackslash\{\}ell\_p^p$-metric}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=fbqOEOqurU},
}
Figure