The Bernstein Mechanism: Function Release under Differential Privacy

Francesco Aldà, Benjamin I. P. Rubinstein

Abstract

This paper introduces the Bernstein Mechanism, a versatile tool for releasing data-dependent functions under $\epsilon$-differential privacy. Unlike traditional methods that focus on scalar or vector outputs, the Bernstein Mechanism enables the release of complex functions—such as machine learning models and density estimators—using only black-box access. By approximating target functions with iterated Bernstein polynomials and adding calibrated Laplace noise to grid evaluations, the mechanism achieves high utility while maintaining strong privacy guarantees.

Introduction

Differential privacy (DP) has become the gold standard for protecting individual privacy in data analysis. While mechanisms for releasing discrete statistics are well-established, releasing a continuous function $F_D$ trained on sensitive data $D$ remains a significant challenge. Existing functional DP methods often require specific functional forms (e.g., separability) or access to internal gradients. The Bernstein Mechanism, presented at AAAI-17, offers a more general approach that treats the target function as a black box, requiring only an evaluation oracle and a bound on the function's sensitivity.

Methodology

The core of the proposed approach is the use of Bernstein Polynomials to approximate functions over a closed interval. These polynomials are advantageous because they are pointwise convex combinations of function evaluations, ensuring stability and well-behaved approximations.

To improve convergence rates for smooth functions, the authors employ Iterated Bernstein Operators. By increasing the iteration order $h$, the approximation can more accurately capture the nuances of highly smooth functions. The privatization process involves three key steps:

  1. Grid Sampling: A lattice is defined over the input space.
  2. Perturbation: The target function is evaluated at each grid point, and Laplace noise—scaled by the function's sensitivity and the privacy budget $\epsilon$—is added to these values.
  3. Polynomial Release: The noisy evaluations serve as coefficients for a Bernstein polynomial, which is then released. This polynomial can be queried indefinitely without further privacy loss.

Experimental Evaluation

The authors evaluated the Bernstein Mechanism across several tasks, including Kernel Density Estimation (KDE) and Support Vector Machines (SVM).

Kernel Density Estimation (KDE)

Using a synthetic dataset of 5,000 points, the mechanism was used to release a private density estimate. The results indicate that the utility (measured by total variation distance to the non-private estimate) improves significantly as the privacy budget $\epsilon$ increases. Furthermore, higher-order iterations ($h$) provide better utility for smooth density functions, as shown in the convergence rates of the different orders.

Utility vs. Privacy for KDE across different iteration orders.

Support Vector Machines (SVM)

The mechanism was also applied to a 2D SVM classification task. By privatizing the decision function, the authors demonstrated that the resulting boundary closely follows the non-private baseline. This visual evidence confirms that the mechanism preserves the underlying structure and "shape" of the model even under privacy constraints.

Private vs. Non-private SVM decision boundaries.

Discussion and Limitations

A key insight of this work is that the smoothness of the target function directly impacts the mechanism's performance; smoother functions allow for faster convergence and higher utility. The authors also established a theoretical lower bound, showing that the Bernstein Mechanism's accuracy is near-optimal for $\epsilon$-DP function release.

However, the mechanism faces the "curse of dimensionality." Because it relies on a grid-based sampling approach, the number of required evaluations grows exponentially with the number of input dimensions. This currently limits its application to low-dimensional problems. Future research may explore more efficient spatial partitioning or alternative basis functions to extend the mechanism's reach to high-dimensional data.

Summary updated

BibTeX
@inproceedings{alda2017bernstein,
  author = {Francesco Aldà and Benjamin I. P. Rubinstein},
  title = {{The Bernstein Mechanism: Function Release under Differential Privacy}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10884},
}
Figure