dpmm: Differentially Private Marginal Models, a Library for Synthetic Tabular Data Generation

Sofiane Mahiou, Amir Dizche, Reza Nazari, Xinmin Wu, Ralph Abbey, Jorge Silva, Georgi GanevarXiv 2025 · DOI

Introduction

Differential Privacy (DP) has emerged as the gold standard for sharing sensitive datasets while protecting individual privacy. However, the transition from theoretical DP algorithms to robust, production-ready software is challenging. Many existing libraries suffer from incomplete pipelines, implementation vulnerabilities, or poor usability. To address these gaps, we introduce dpmm, an open-source Python library designed for generating high-utility, differentially private synthetic tabular data.

Addressing the Implementation Gap

The authors identify three critical failures in current open-source DP tools:

  1. Incomplete Pipelines: Many tools perform non-private preprocessing (e.g., determining column ranges), which can leak sensitive information before the private algorithm even executes.
  2. Implementation Vulnerabilities: Subtle bugs, such as predictable floating-point errors or fixed random seeds, can allow adversaries to bypass theoretical privacy guarantees.
  3. Usability and Performance: Many libraries are difficult to install, lack support for mixed data types, or offer poor utility-to-privacy tradeoffs.

The dpmm Framework

dpmm focuses on marginal models, which are highly effective for datasets with fewer than 32 features. These models utilize a "select-measure-generate" paradigm: identifying key correlations (marginals), measuring them with calibrated noise, and using a graphical model—specifically Private-PGM—to generate synthetic data.

Core Models

dpmm implements three state-of-the-art mechanisms:

  • PrivBayes: Uses a Bayesian network to capture data dependencies.
  • MST (Maximum Spanning Tree): Selects two-way marginals that form a tree structure.
  • AIM (Adaptive Iterative Mechanism): Iteratively selects the most informative marginals based on the remaining privacy budget.

Privacy Safeguards by Design

Beyond model implementation, dpmm integrates end-to-end privacy best practices:

  • DP Preprocessing: Uses a portion of the privacy budget for private domain extraction and discretization via PrivTree.
  • Floating-Point Protection: Employs specialized Gaussian sampling to prevent side-channel attacks exploiting decimal handling.
  • Structural Integrity: Supports "structural zeros" to ensure impossible data combinations (e.g., "pregnant males") are excluded from generated sets.

Empirical Evaluation

Utility and Runtime

Evaluated on the standard Wine benchmark dataset, dpmm demonstrates significant improvements in data utility. On average, it achieved 1.5% higher utility than private-pgm and outperformed OpenDP and synthcity by approximately 147%. Furthermore, the library's implementation of MST is optimized through parallelization, ensuring competitive runtimes for engineering tasks.

Comparison of mean utility and runtime across different DP libraries. dpmm (blue) consistently matches or exceeds the utility of existing state-of-the-art methods while maintaining efficiency.

Privacy Auditing

To verify the robustness of the implementation, the authors utilized auditing tools like AuditSynth and Delta-Siege. The results confirm that dpmm and private-pgm are the only libraries that strictly adhere to theoretical privacy limits. Other libraries, such as synthcity and OpenDP, were found to exceed these limits in certain configurations due to non-private preprocessing or floating-point vulnerabilities.

Empirical privacy auditing results. The red dashed line represents the theoretical privacy limit. dpmm stays safely below this limit, whereas several competitors exhibit privacy leaks.

Conclusion

dpmm provides a secure, high-performance, and user-friendly solution for synthetic data generation. By combining advanced marginal models with rigorous end-to-end privacy safeguards, it bridges the gap between DP theory and practical application. The library is open-source under the Apache-2.0 license and is available for community use and development.

Summary updated

BibTeX
@misc{mahiou2025dpmm,
  author = {Sofiane Mahiou and Amir Dizche and Reza Nazari and Xinmin Wu and Ralph Abbey and Jorge Silva and Georgi Ganev},
  title = {{dpmm: Differentially Private Marginal Models, a Library for Synthetic Tabular Data Generation}},
  year = {2025},
  eprint = {2506.00322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00322},
}
Figure