Kamino: Constraint-Aware Differentially Private Data Synthesis

Chang Ge, Shubhankar Mohapatra, Xi He, Ihab F. Ilyas

Abstract

Generating differentially private (DP) synthetic relational data is essential for safe data sharing, yet existing methods often fail to respect fundamental database integrity constraints. This leads to synthetic datasets that are logically inconsistent and lose utility when post-processed with standard data-cleaning tools. We introduce Kamino, an end-to-end system that embeds denial constraints (DCs) directly into a probabilistic generative model. By integrating constraint-aware sequencing, private deep learning, and dynamic sampling, Kamino produces synthetic data that adheres to structural rules while maintaining high statistical utility and strict privacy guarantees.

Introduction

Organizations increasingly require methods to share sensitive structured data for analytics and machine learning without compromising individual privacy. Differentially private (DP) synthetic data generation has emerged as a solution, aiming to create datasets that mirror the statistical properties of the original data. However, current state-of-the-art methods, such as GANs or Bayesian networks, typically assume independence between rows and attributes, ignoring database integrity constraints or Denial Constraints (DCs).

Ignoring these rules results in synthetic data with logical impossibilities—for instance, a minor holding a professional degree. Attempting to rectify these violations through post-generation data cleaning often degrades the statistical utility of the dataset, rendering it less effective for downstream machine learning tasks. Kamino addresses this by treating constraints as first-class citizens within the synthesis process.

Methodology

Kamino utilizes a probabilistic database framework where constraints are modeled as parameters. Hard constraints, which are never violated in the source data, receive infinite weight, while soft constraints have their weights learned privately. The system follows a structured procedure to ensure both privacy and utility.

The Kamino end-to-end procedure for constraint-aware DP data synthesis.

The core components include:

  • Constraint-Aware Sequencing: Attributes are ordered based on functional dependencies (e.g., generating City before Zip Code). This heuristic uses public schema information, improving model accuracy without consuming the privacy budget.
  • Private Deep Learning: The joint probability of the database is decomposed into conditional probabilities, learned using tuple embeddings and attention mechanisms trained via Differentially Private Stochastic Gradient Descent (DPSGD).
  • Constraint-Aware Sampling: During synthesis, Kamino dynamically adjusts sampling probabilities to prevent constraint violations based on previously generated values in a tuple.

Experimental Evaluation

Kamino was evaluated against four diverse datasets:

  1. Adult: Census data with 15 attributes and 2 hard DCs.
  2. BR2000: Census data with 14 attributes and 3 soft DCs.
  3. Tax: Real-world tax data with 12 attributes, large domain sizes, and 6 hard DCs.
  4. TPC-H: A relational benchmark with 9 attributes and 4 hard DCs (primary/foreign keys).

Results and Discussion

Kamino demonstrated significant improvements over baselines such as PrivBayes, DP-VAE, and PATE-GAN across several metrics.

Constraint Adherence and Utility

On datasets with hard constraints, Kamino achieved zero structural violations. In contrast, baseline methods produced up to 32% violating tuple pairs. Crucially, the "post-processing trap" was empirically validated: applying data cleaning to baseline outputs to fix violations significantly reduced their machine learning utility.

Comparison of Accuracy and Variation Distance between standard and cleaned synthetic data across baseline methods.

As shown in the figure above, cleaning the data (grey bars) often leads to a decrease in classification accuracy and an increase in variation distance (meaning the statistical distribution deviates further from the original). Kamino avoids this trade-off by ensuring consistency during the generation phase. On the Adult dataset, Kamino achieved an average model accuracy of 82%, outperforming PATE-GAN (77%), PrivBayes (68%), and DP-VAE (54%).

Statistical Fidelity

Kamino consistently achieved the lowest total variation distance for 1-way and 2-way marginal queries, indicating that it preserves the underlying data distribution more effectively than existing DP synthesisers.

Conclusion

Kamino represents a significant step forward in DP data synthesis by successfully integrating database constraints into the generative process. While the system is practically efficient, future work will focus on scaling to dynamic databases and establishing tighter theoretical error bounds for constraint violations. By avoiding the pitfalls of post-generation cleaning, Kamino provides a robust framework for high-utility, privacy-preserving data sharing.

Summary updated

BibTeX
@article{ge2021kamino,
  author = {Chang Ge and Shubhankar Mohapatra and Xi He and Ihab F. Ilyas},
  title = {{Kamino: Constraint-Aware Differentially Private Data Synthesis}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  url = {https://openreview.net/forum?id=UOsqbFjXi1q},
}
Figure