An Optimal and Scalable Matrix Mechanism for Noisy Marginals under Convex Loss Functions

Yingtai Xiao, Guanlin He, Danfeng Zhang, Daniel Kifer
4/5/2026

No official code found. Best implementation: dkifer/ResidualPlanner (1 star, GPL-3.0, last commit 2025-05-27).

Abstract

Noisy marginals are a common form of confidentiality-protecting data release and are useful for many downstream tasks such as contingency table analysis, construction of Bayesian networks, and even synthetic data generation. Privacy mechanisms that provide unbiased noisy answers to linear queries (such as marginals) are known as matrix mechanisms. We propose ResidualPlanner, a matrix mechanism for marginals with Gaussian noise that is both optimal and scalable. ResidualPlanner can optimize for many loss functions that can be written as a convex function of marginal variances (prior work was restricted to just one predefined objective function). ResidualPlanner can optimize the accuracy of marginals in large scale settings in seconds, even when the previous state of the art (HDMM) runs out of memory. It even runs on datasets with 100 attributes in a couple of minutes. Furthermore ResidualPlan-ner can efficiently compute variance/covariance values for each marginal (prior methods quickly run out of memory, even for relatively small datasets).

DOISemantic Scholar

Code Implementations(1)

GPL-3.0

Code for ResidualPlanner from the NeurIPS 2023 paper: An Optimal and Scalable Matrix Mechanism for Noisy Marginals under Convex Loss Functions

11PythonOct 25, 20231 years agoGPL-3.0

Cite this paper

@article{xiao2026optimal,
  title  = {An Optimal and Scalable Matrix Mechanism for Noisy Marginals under Convex Loss Functions},
  author = {Yingtai Xiao and Guanlin He and Danfeng Zhang and Daniel Kifer},
  year   = {2026},
  doi    = {10.48550/arXiv.2305.08175},
  url    = {https://doi.org/10.48550/arXiv.2305.08175},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/68aec831af77ba45886440a419ed77edda192e10.svg)](https://codeofpaper.com/paper/68aec831af77ba45886440a419ed77edda192e10)

Discussion