Abstract
dpart is an open-source Python library designed to streamline the generation of privacy-preserving synthetic tabular data. By utilizing autoregressive modeling, the framework decomposes complex joint distributions into sequences of simpler conditional probabilities. This paper introduces the library's architecture, which includes a 20x faster implementation of the PrivBayes algorithm and a novel differentially private version of synthpop, providing a flexible and accessible baseline for the privacy research community.
Introduction
Sharing sensitive tabular data, such as medical records or financial transactions, presents significant legal and ethical challenges. While Differential Privacy (DP) offers a mathematical guarantee of anonymity, existing DP synthetic data generators are often "black boxes" that are computationally expensive and difficult to tune.
Researchers frequently face a steep learning curve when implementing these models, as there is a lack of "middle-ground" tools that combine the ease of use found in libraries like scikit-learn with the flexibility needed for domain-specific customization. The authors introduce dpart to fill this gap, offering a quick and accessible baseline for privacy-preserving engineering.
Methodology
The core of dpart is autoregressive modeling. Rather than learning the entire joint distribution of a dataset simultaneously, the framework breaks it down into a chain of conditional probabilities:
The framework operates in two primary stages:
- Dependency Discovery: The system determines the "visit order" (the sequence in which columns are processed) and a "prediction matrix" (identifying which columns serve as features for others). This can be manually specified or inferred using the Exponential Mechanism to maximize mutual information while preserving privacy.
- Conditional Estimation: For each column,
dpartfits a DP-wrapped machine learning model. Supported models include DP linear regression for numerical data, and DP logistic regression or decision trees for categorical data.
The library includes three specific "engines": Independent (a simple baseline), PrivBayes (an optimized Bayesian network approach), and dp-synthpop (a novel DP-enabled version of the popular R package).
Experimental Evaluation
The framework was evaluated using the Adult dataset (Census Income) from the UCI Machine Learning Repository. The primary task was a binary classification to predict whether an individual's income exceeds $50,000 based on demographic features.
The "Budget Waste" Paradox
A key insight from the evaluation is the "Budget Waste" paradox. At very low privacy budgets ($\epsilon \le 1$), the simplest model (Independent) often outperforms more complex models. This occurs because complex models "waste" their limited privacy budget attempting to learn intricate dependencies that are ultimately smothered by the high noise required for DP.
Performance and Utility
As the privacy budget ($\epsilon$) increases, the similarity of synthetic data to real data improves across all models. In the income prediction task, PrivBayes effectively reached the real-data baseline accuracy once $\epsilon$ reached 1.0.
While dp-synthpop performed slightly worse than PrivBayes in terms of accuracy, the authors attribute this to the underlying DP linear/logistic regression models being less robust than the Bayesian approach for this specific dataset. Notably, the re-engineered dependency-inference step in PrivBayes achieved a 20x speedup over previous implementations.
Conclusion
dpart is intended as a high-performance baseline framework rather than a tool to surpass state-of-the-art GANs. By adopting a familiar fit() and generate() syntax, it significantly lowers the barrier to entry for privacy-preserving data science. Future work will focus on expanding the library with more DP-wrapped machine learning methods and new strategies for building dependency graphs.
Summary updated