Optimizing Noise Distributions for Differential Privacy

Atefeh Gilani, Juan Felipe Gomez, Shahab Asoodeh, Flavio Calmon, Oliver Kosut, Lalitha Sankar

Introduction

Differential Privacy (DP) typically relies on adding noise—such as Laplace or Gaussian—to query results to mask individual data points. While these standard distributions are mathematically convenient, they are rarely optimal for every scenario.

This paper introduces a unified optimization framework to design custom noise distributions, both continuous and discrete, that provide better privacy-utility trade-offs than standard noise. The authors identify a specific gap in the "moderate composition" regime (roughly 10–40 sequential queries). In scenarios like the U.S. Census or specific machine learning training loops, neither single-query optimal distributions (like the Staircase distribution) nor large-scale asymptotic ones (like the Cactus distribution) are ideal. Furthermore, implementing continuous noise on finite-precision computers can lead to floating-point attacks. This research addresses the clear need for a flexible way to generate noise tailored to a specific number of queries and privacy budget.

Methodology

The researchers propose a framework that minimizes Rényi Differential Privacy (RDP), a variant of DP where the privacy "cost" of multiple queries is simply the sum of their individual RDP values.

Key technical steps include:

  1. Finite-Dimensional Approximation: To make the optimization tractable, the noise distributions are represented as symmetric, piecewise-constant functions with geometric tails, turning an infinite-dimensional problem into a finite-dimensional one.
  2. Convex Formulation: The objective function (the RDP value) is proven to be convex over these distribution classes, ensuring a global optimum can be found.
  3. Preconditioned Gradient Descent: A specialized version of gradient descent navigates constraints (e.g., noise must be non-negative and sum to one) without the algorithm failing near boundaries.
  4. Unified Approach: The mathematics for continuous and discrete noise are nearly identical in this framework, allowing both to be solved using the same underlying engine.

Key Insights

  • The "Moderate" Sweet Spot: The most significant gains occur in the middle ground between a single query and thousands of queries. In this moderate composition regime, the exact "shape" of the noise matters immensely.
  • Automatic Recovery of Known Optima: A major advantage of this framework is its universality. When optimized for a single query, it automatically discovers the Staircase distribution. When set to a very high number of queries, it recovers the Cactus distribution.
Noise PDF comparison showing RDP-optimized noise perfectly matching the Staircase distribution for single-query scenarios.
  • Robustness as a Default: The RDP-optimized noise is consistently a top performer. Even when it isn't the absolute winner, it performs within a tight margin of the best-known specialized mechanisms, making it a highly reliable tool for practitioners.

Experimental Results

The authors evaluated their optimized noise on three real-world datasets commonly used in privacy-preserving machine learning: Breast Cancer Wisconsin (Diagnostic), a Diabetes dataset, and the UCI Heart Disease Dataset. They ran 10 continuous queries (calculating feature averages) and compared the Mean Squared Error (MSE) against the standard Gaussian mechanism.

  • Privacy Gains: In a head-to-head comparison for 10 compositions, the optimized noise achieved an $\epsilon$ of 1.62, a 6.89% improvement over the best standard alternatives (Gaussian/Cactus at 1.74) for the same $\delta$.
Comparison of privacy curves. The RDP-optimized noise (solid orange) stays below the other curves, indicating strictly better privacy guarantees for the same budget.
  • Utility Gains: Across the three medical datasets, replacing Gaussian noise with the optimized RDP noise resulted in an 8% to 12% reduction in Mean Squared Error (MSE) for the same privacy guarantee.
  • Discrete vs. Continuous: The framework successfully produced discrete noise distributions that mirror the performance gains of their continuous counterparts, providing a path toward more secure, integer-based DP implementations that avoid floating-point vulnerabilities.

Limitations and Future Work

  • Symmetry Assumptions: The current work assumes both the cost function (MSE) and the noise distributions are symmetric. Some applications might benefit from asymmetric noise.
  • Additive Noise Focus: The framework is designed for additive noise mechanisms. Extending this to non-additive mechanisms (like the exponential mechanism) remains an open challenge.
  • Computational Overhead: Performing a preconditioned gradient descent to find the noise distribution is more computationally intensive than simply sampling from a standard Gaussian or Laplace distribution.

Summary updated

BibTeX
@inproceedings{gilani2025optimizing,
  author = {Atefeh Gilani and Juan Felipe Gomez and Shahab Asoodeh and Flavio Calmon and Oliver Kosut and Lalitha Sankar},
  title = {{Optimizing Noise Distributions for Differential Privacy}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=wCBuHDe7Ud},
}
Figure