Abstract
Noisy marginals are essential for confidentiality-protecting data release, supporting tasks from contingency table analysis to synthetic data generation. We introduce ResidualPlanner and ResidualPlanner+, two highly scalable matrix mechanisms. ResidualPlanner is optimal for answering marginal queries with Gaussian noise, while ResidualPlanner+ extends support to complex workloads like range and prefix-sum queries. Unlike prior methods that struggle with high-dimensional data, ResidualPlanner can optimize accuracy for datasets with 100+ attributes in minutes, overcoming the "memory wall" that causes existing state-of-the-art tools to fail.
Introduction
In differential privacy, the "matrix mechanism" is a powerful framework for releasing unbiased noisy answers to linear queries. Among these, "marginals"—counts for combinations of attributes like age, gender, and race—are the most common. However, as the number of attributes grows, the state space of possible combinations expands exponentially, leading to a scalability crisis. Existing solutions, such as the High-Dimensional Matrix Mechanism (HDMM), often run out of memory when dealing with more than 15–20 attributes.
Furthermore, data curators often need flexibility in their optimization goals. While minimizing total variance is standard, some applications require "cell fairness" (ensuring error is distributed equitably) or support for specialized queries like range queries. ResidualPlanner+ addresses these challenges by providing a scalable, flexible, and mathematically optimal framework for high-dimensional data release.
Methods and Implementation
The core innovation of ResidualPlanner is the use of a Residual Basis. Traditional mechanisms often use over-parameterized representations that lead to massive, redundant matrices. By identifying a parsimonious, linearly independent basis that compactly represents marginals, the authors drastically reduce the computational overhead.
Notation and Framework
To understand the underlying mechanics, we define the key components of the dataset and the privacy mechanisms.
Efficient Computation
The scalability of ResidualPlanner stems from its efficient implementation of the base mechanism. Instead of expanding large matrices, it utilizes implicit representations and Kronecker-product/vector multiplications.
As shown in Algorithm 1, the mechanism computes marginals directly from the data vector $\mathbf{x}$ and applies noise using a subtraction matrix ($\mathbf{Sub}$) and identity matrices ($\mathcal{I}_m$). This approach avoids the "memory wall" by never explicitly constructing the full-dimensional matrices.
ResidualPlanner vs. ResidualPlanner+
- ResidualPlanner (RP): Specifically optimized for marginal queries. It leverages the symmetry of marginals to prove that its linear basis is optimal for any regular convex loss function.
- ResidualPlanner+ (RP+): An extension for "generalized marginals." It allows for mixed workloads, such as combining standard marginals with prefix-sum queries (e.g., age ranges within specific demographic groups).
Key Insights
- Parsimony and Symmetry: By switching to a linearly independent residual basis and exploiting the inherent symmetry of marginals, the authors achieved a breakthrough in both speed and mathematical optimality.
- Fairness Audits: ResidualPlanner can compute variance/covariance values in closed form. This allows curators to perform "fairness audits" to ensure that noise isn't disproportionately affecting minority groups—a task that was previously computationally prohibitive for large datasets.
- Numerical Security: To prevent side-channel attacks via floating-point errors, the authors implemented a version using the Discrete Gaussian distribution, ensuring robust privacy guarantees.
Experimental Results
The mechanisms were tested on real-world datasets (Adult, CPS, Loans) and synthetic benchmarks up to 100 attributes.
- Scalability: While HDMM failed at 20 attributes, ResidualPlanner processed 100 attributes in roughly 12.5 minutes total (selection and reconstruction).
- Optimality: ResidualPlanner consistently reached the SVD Bound, the theoretical limit for error in matrix mechanisms, matching the accuracy of much slower, non-scalable methods.
- RP+ Performance: On prefix-sum workloads, RP+ outperformed HDMM by 10–15% in accuracy while maintaining its scalability advantage.
Conclusion
ResidualPlanner and ResidualPlanner+ represent a significant step forward in making differential privacy practical for high-dimensional data. By solving the scalability issues of matrix mechanisms, they enable data curators to release complex, high-quality statistical summaries with rigorous privacy guarantees and unprecedented speed. Future work includes extending these techniques to hierarchical data structures and infinite domains.
Summary updated