TL;DR
PrivBench is a novel framework that uses differentially private Sum-Product Networks (SPNs) to synthesize high-fidelity benchmark databases. It is the first solution to simultaneously prioritize data distribution accuracy, query runtime performance, and rigorous privacy guarantees, outperforming existing state-of-the-art methods in both speed and quality.
What Problem Does This Paper Address?
Database Management Systems (DBMS) rely on benchmarking to evaluate performance. However, standard benchmarks like the TPC series often fail to reflect the unique, messy nature of real-world user workloads. While using actual production data would be ideal, privacy regulations (like GDPR) and security concerns make direct data sharing impossible.
Existing differentially private (DP) data synthesizers attempt to bridge this gap, but they typically focus on minimizing errors for aggregate "count" queries or machine learning tasks. They often ignore query runtime performance, which is the bread and butter of DBMS benchmarking. For a synthetic benchmark to be useful, a query should take roughly the same amount of time to run on the synthetic data as it does on the original. This requires the synthetic data to maintain complex multi-relation dependencies and cardinalities that query optimizers rely on.
Methods
The authors introduce PrivBench, which leverages Sum-Product Networks (SPNs)—a type of deep probabilistic model—to represent data distributions.
- Private SPN Construction: PrivBench recursively partitions a table. "Sum" nodes represent row clustering (grouping similar records), and "Product" nodes represent column splitting (separating independent attributes). Leaf nodes store histograms of individual attributes. To ensure privacy, the framework injects Laplace noise into the partitioning decisions and the histograms.
- Private Fanout Construction: To handle multi-relation databases (e.g., a "Customers" table linked to an "Orders" table), PrivBench uses a novel "fanout" mechanism. It augments the SPN with leaf nodes that model the frequency of foreign key references, allowing it to recreate complex join relationships without the massive overhead of joining tables during the synthesis process.
- Database-Level DP: Unlike simple table-level privacy, PrivBench ensures database-level differential privacy. This accounts for the fact that one record in a primary table might be linked to many records in a secondary table, preventing privacy leaks through relational dependencies.
Datasets
The authors evaluated PrivBench against several mainstream baselines using three diverse datasets:
- Adult: A single-table census dataset used to test single-relation synthesis.
- California: A two-table household dataset used to test multi-relation synthesis.
- JOB-light: A complex dataset derived from the IMDB movie database, featuring six tables (two private, four public) with intricate join relationships.
Key Insights and Ideas
- SPNs are a "Natural Fit" for DBMS: The authors realized that SPNs excel at cardinality estimation—the exact metric database query optimizers use to choose execution plans. By preserving the SPN structure, PrivBench naturally preserves the factors that dictate query runtime.
- Efficiency over Complexity: While many modern synthesizers use computationally expensive Generative Adversarial Networks (GANs) or complex graphical models, PrivBench's SPN-based approach runs in polynomial time. It relies on CPU computation and is orders of magnitude faster than GPU-dependent alternatives.
- Handling the "Fanout": Instead of trying to synthesize a massive joined table (which is memory-intensive), PrivBench captures the distribution of how records relate. This "fanout" approach allows it to scale to enterprise-level databases with millions of rows.
Key Results
PrivBench significantly outperformed the current state-of-the-art (SOTA) multi-relation synthesizer, PrivLava:
- Better Fidelity: It reduced KL divergence (a measure of data distribution error) by up to 62.4% and Q-error (a measure of cardinality/runtime error) by up to 97.8% relative to PrivLava.
- Superior Speed: Synthesis time was drastically reduced. For the JOB-light dataset, PrivBench completed the learning and inference process in about 70 seconds, whereas PrivLava took over 7 hours (even with GPU acceleration).
- Robustness: PrivBench remained stable even as the privacy budget ($\epsilon$) decreased, whereas other methods saw their performance degrade rapidly under strict privacy constraints.
Limitations and Future Work
While PrivBench is highly effective, the authors note a few areas for improvement:
- Parameter Tuning: Several internal parameters (like the threshold for column splitting) are currently determined empirically. Finding an automated way to optimize these for different datasets is a goal for future research.
- Privacy Budget Allocation: The current method uses a uniform allocation of the privacy budget across the SPN tree. The authors suggest that identifying a more "workload-aware" budget allocation could further improve results.
- Co-generation: Future work may explore generating synthetic data and query workloads simultaneously to ensure even tighter alignment between the two.
Summary updated