Polynomial magic! Hermite polynomials for private data generation

Mijung Park, Margarita Vinaroz, Mohammad-Amin Charusaie, Frederik Harder

TL;DR

This paper introduces Hermite Polynomial Features (HPF) as a more efficient alternative to random Fourier features for differentially private data generation. By leveraging the ordered nature of Hermite polynomials, HPF can achieve better privacy-accuracy trade-offs with significantly fewer features, leading to improved synthetic data quality.

What Problem Does This Paper Address?

Generating synthetic data while preserving differential privacy (DP) is a critical challenge. A common approach involves using Maximum Mean Discrepancy (MMD) to compare distributions. However, MMD relies on infinite-dimensional kernel mean embeddings, which are computationally expensive and difficult to privatize. Prior work (DP-MERF) approximated these embeddings using random Fourier features (RFFs), but this required an impractically large number of features, leading to a poor privacy-accuracy trade-off. This paper aims to improve this trade-off by proposing a more efficient feature representation.

Methods

The core contribution is the replacement of random Fourier features with Hermite Polynomial Features (HPF) for approximating kernel mean embeddings. The authors leverage the Mehler's formula to express Gaussian kernels as a weighted sum of Hermite polynomials. This allows for a finite-dimensional feature map where the order of the polynomial directly corresponds to the feature dimension. Crucially, HPF are ordered, meaning lower-order features capture more information about the distribution. This ordering allows for a more accurate approximation of the kernel mean embedding with a significantly lower number of features compared to RFFs.

To handle high-dimensional data, the authors propose a combined kernel approach, utilizing both an outer product kernel (for capturing high-order correlations on subsampled dimensions) and a sum kernel (for capturing marginal distributions across all dimensions). This combination aims to balance computational tractability with comprehensive data representation.

For differential privacy, they employ the Gaussian mechanism to privatize the mean embeddings. The privacy budget is split between the sum and product kernel components, and the analytic moments accountant is used for privacy accounting.

Datasets

The authors evaluate their method on a variety of datasets:

  • 2D Gaussian Mixtures: Used for initial qualitative evaluation and visualization of generated samples.
  • Tabular Datasets: Adult, Census, Cervical, Credit, Epileptic, Intrusion, Isolet, and Covtype. These were used to evaluate the quality of generated marginal distributions and downstream task performance.
  • Image Datasets: MNIST and FashionMNIST. These were used to evaluate the quality of generated images and downstream task performance.

Key Insights and Ideas

  • Ordered Features Matter: The ordered nature of Hermite polynomials is key. Lower-order polynomials capture more significant distributional information, allowing for a more efficient approximation than the unordered RFFs.
  • HPF vs. RFFs for DP: HPF offer a superior privacy-accuracy trade-off. They achieve comparable or better accuracy with orders of magnitude fewer features than RFFs, directly addressing the core limitation of prior DP-MERF methods.
  • Combined Kernel Strategy: The combination of outer product and sum kernels effectively handles high-dimensional data by balancing detailed correlation analysis on subsampled dimensions with marginal distribution comparison across all dimensions.
  • Subsampling for Tractability: For high-dimensional data, subsampling input dimensions for the outer product kernel is crucial for computational feasibility, though it sacrifices some information about correlations.

Key Results

  • Improved Accuracy: DP-HP consistently outperforms DP-MERF and other DP generative models (DP-CGAN, DP-GAN) across various metrics, including negative log-likelihood (NLL) for Gaussian mixtures, $\alpha$-way marginal accuracy for tabular data, and downstream task accuracy for both tabular and image datasets.
  • Feature Efficiency: DP-HP uses significantly fewer features than DP-MERF. For example, in the 2D Gaussian mixture experiment, DP-HP uses a 650-dimensional feature map (25th order Hermite polynomials) compared to DP-MERF's 30,000 random features.
  • Better Sample Quality: Figure 2 shows DP-HP capturing all modes of a Gaussian mixture accurately at $\epsilon=1$, while DP-CGAN drops modes. Figure 4 shows qualitatively better generated images from DP-HP.
  • Downstream Task Performance: Figure 3 and Table 2 demonstrate that models trained on DP-HP generated data achieve higher test accuracies on real data compared to other DP methods, even with a small number of synthetic samples.

Limitations and Future Work

  • Subsampling Dimension Limit: For the outer product kernel, subsampling input dimensions is necessary for computational tractability. However, the authors note that the subsampled dimension needs to be kept relatively small (less than 5) to avoid exploding the kernel's mean embedding size. They question if there are better ways to approximate the outer product kernel than random sampling across all input dimensions, leaving this as a future research direction.
  • Hyperparameter Sensitivity: While the paper explores the impact of the $\gamma$ hyperparameter (weighting the sum vs. product kernel), further investigation into hyperparameter tuning for optimal performance across different datasets and privacy levels could be beneficial.

Summary updated

BibTeX
@inproceedings{park2022polynomial,
  author = {Mijung Park and Margarita Vinaroz and Mohammad-Amin Charusaie and Frederik Harder},
  title = {{Polynomial magic! Hermite polynomials for private data generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=-GnsNxaoDey},
}
Figure