Privacy-Enhanced Database Synthesis for Benchmark Publishing

Yongrui Zhong, Yunqing Ge, Jianbin Qin, Shuyuan Zheng, Bo Tang, Yu-Xuan Qiu, Rui Mao, Ye Yuan, Makoto Onizuka, Chuan Xiao

Introduction

Database Management Systems (DBMS) require benchmarking on realistic data to ensure performance in production environments. However, sharing real-world datasets is often prohibited by privacy regulations like GDPR. While Differential Privacy (DP) techniques exist for synthetic data generation, most focus on statistical utility for machine learning or simple aggregates, often neglecting query runtime fidelity.

If a synthetic database maintains statistical averages but lacks the original's internal structure, SQL queries may exhibit vastly different performance characteristics (e.g., 10ms on real data vs. 10s on synthetic). This discrepancy renders synthetic data ineffective for performance tuning. PrivBench addresses this by ensuring synthetic databases mimic both the statistical distribution and the complex relational structures of the original data while providing rigorous, database-level privacy guarantees.

Methods: The PrivBench Framework

PrivBench utilizes a specialized data structure known as a Sum-Product Network (SPN) to model and synthesize relational data.

SPN-Based Modeling and Construction

An SPN is a rooted acyclic graph where internal nodes are either "sums" (representing mixtures of clusters or weighted row partitions) or "products" (representing independent attributes or column partitions). The leaves consist of simple histograms. SPNs are particularly effective for cardinality estimation, a critical component used by database query optimizers to determine execution plans.

The framework constructs these SPNs recursively:

  1. Private Construction (PrivSPN): Rows are split using a DP-version of K-Means (DPLloyd), and columns are split based on Normalized Mutual Information (NMI). Noise is injected at decision points and into leaf histograms to ensure $\epsilon$-Differential Privacy.
  2. Handling Relationships (PrivFanout): To manage multi-table databases without costly joins, PrivBench models "fanouts"—the distribution of child table rows referring to a parent table row—and embeds this information directly into the SPN.
  3. Database-Level DP: The method satisfies "database-level" DP, ensuring privacy even with complex dependencies created by primary and foreign keys.

Evaluation and Datasets

PrivBench was evaluated against state-of-the-art (SOTA) baselines using three diverse datasets:

  • Adult: A single-table census dataset (45k rows).
  • California: A two-table relational dataset (up to 1.6M rows) of household information.
  • JOB-light: A complex six-table subset of the Internet Movie Database (IMDB), featuring over 35M rows and intricate join relationships.

Key Results and Insights

The core innovation of PrivBench is the link between SPNs and query runtime performance. Since query runtime is primarily driven by cardinality, SPNs serve as an ideal backbone for benchmarking-oriented synthesis.

PrivBench significantly outperformed the current SOTA for relational synthesis, PrivLava, across several metrics:

  • Distribution Accuracy: Reduced KL Divergence by up to 62.4%.
  • Runtime Fidelity: Reduced Q-error (the ratio between estimated and actual query results) by up to 97.8%.
  • Efficiency: On the JOB-light dataset, PrivBench completed learning and inference in approximately 70 seconds, compared to over 7 hours for PrivLava.
  • Robustness: PrivBench remains stable even under strict privacy constraints (low $\epsilon$), where other methods often degrade rapidly.

Limitations and Future Work

While PrivBench represents a significant advancement, several areas for future research remain:

  • Budget Allocation: Heuristic distribution of the privacy budget across SPN nodes could be optimized to further maximize utility.
  • Workload-Awareness: Future iterations could co-generate synthetic query workloads alongside the data for a comprehensive "benchmark-in-a-box" solution.
  • Cyclic Dependencies: The current model assumes directed acyclic relationships; extensions are needed to handle cyclic schemas.

Summary updated

BibTeX
@article{zhong2024privacy,
  author = {Yongrui Zhong and Yunqing Ge and Jianbin Qin and Shuyuan Zheng and Bo Tang and Yu-Xuan Qiu and Rui Mao and Ye Yuan and Makoto Onizuka and Chuan Xiao},
  title = {{Privacy-Enhanced Database Synthesis for Benchmark Publishing}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3705829.3705855},
}
Figure