TL;DR
Existing differentially private (DP) synthetic data generators treat tuples as independent and identically distributed, severely violating underlying relational structures like functional dependencies and denial constraints. Kamino is the first constraint-aware DP data synthesis system; it marries probabilistic database semantics with DP deep discriminative models to generate synthetic relational data that strictly respect data constraints while achieving state-of-the-art utility in downstream classification and marginal queries.
What Problem Does This Paper Address?
Differential privacy allows organizations to share sensitive data with provable privacy guarantees, often via synthetic datasets. However, real-world tabular data is governed by integrity and schema constraints—such as functional dependencies (e.g., education dictates education_num, or zip implies city) and denial constraints (e.g., capital_gain vs. capital_loss).
Current DP synthesizers (like PrivBayes, PATE-GAN, and DP-VAE) assume rows are independently distributed, leading to synthetic data where up to 32% of tuple pairs violate fundamental domain rules. Crucially, fixing these errors after the fact using off-the-shelf data-cleaning tools distorts statistical distributions and destroys analytical utility.
Methods
Kamino casts constraint-aware synthesis into a probabilistic database formulation, where the probability of generating an instance penalizes constraint violations: $$\Pr(D) \propto \prod_{t \in D} \Pr(t) \cdot \exp\left(-\sum_{\phi \in \Phi} w_\phi |V(\phi, D)|\right)$$
To make learning and generation computationally tractable and differentially private, Kamino introduces:
- Probabilistic Decomposition: Decomposes whole-table generation into sequential conditional distributions over an ordered list of attributes (a schema sequence).
- Constraint-Aware Attribute Sequencing: Employs an instance-independent heuristic that uses known functional dependencies to place determinant attributes before dependent attributes (e.g., placing LHS before RHS in $X \to Y$) sorted by domain size. Because this uses only schema metadata, it consumes zero privacy budget.
- Differentially Private Learning:
- The first attribute is privatized using the standard Gaussian Mechanism.
- The remaining $(k - 1)$ conditional probabilities are learned as discriminative sub-models using tuple embeddings, attention mechanisms, and Differentially Private Stochastic Gradient Descent (DP-SGD).
- If constraint weights $w_\phi$ are unknown (soft constraints), a private sub-sampled violation matrix is perturbed with Gaussian noise to learn the weights.
- Constraint-Aware Sampling: Instead of sampling rows independently, Kamino samples attribute values sequentially conditioned both on a tuple's previous attributes and on previously generated tuples, heavily penalizing candidates that introduce denial constraint violations.
Datasets
The authors evaluate Kamino across four diverse relational benchmarks:
- Adult (32,561 rows, 15 attributes, 2 hard denial constraints).
- BR2000 (38,000 rows, 14 attributes, 3 soft denial constraints with unknown weights).
- Tax (30,000 rows, 12 attributes, 6 hard denial constraints, containing very high-cardinality columns like
zip). - TPC-H (20,000 rows, 9 attributes, 4 hard denial constraints derived from joined primary/foreign keys).
Key Insights and Ideas
- Post-hoc cleaning is a trap: Repairing integrity violations on synthetic data after generation actively degrades downstream classification and marginal distributions. Constraints must guide the generative process directly.
- Relational schema provides free prior information: Data dependencies reveal the optimal causal ordering for autoregressive conditional models. By deriving attribute sequences from constraints and domains rather than private data, Kamino saves all of its privacy budget for model training.
- Unified hard and soft constraint handling: Infinite weights enforce zero-tolerance schema rules (e.g., foreign keys), while learned weights naturally capture noisy real-world data patterns without overfitting.
Key Results
Under a privacy budget of $(\epsilon = 1.0, \delta = 10^{-6})$:
- Constraint Preservation: Kamino produced 0.0% violations on Adult, Tax, and TPC-H, exactly matching ground truth. In contrast, baselines had massive violations (DP-VAE reached 99.0% on Tax; NIST had 64.0% on TPC-H; PrivBayes had 11.3% on Adult). On BR2000, Kamino matched the ground truth's soft violation rates (0.6%, 0.6%, 0.3% vs. 0.4%, 0.9%, 0.5% true).
- Downstream Machine Learning: Across 9 classification models trained on synthetic data and evaluated on true data, Kamino delivered the highest accuracy and F1 scores (e.g., Adult accuracy of 0.82 vs. Truth's 0.88, beating PATE-GAN at 0.77, PrivBayes at 0.68, and NIST at 0.66).
- Privacy Efficiency: On Adult, Kamino at $\epsilon = 0.2$ achieved an accuracy of 0.80—surpassing all baselines even when those baselines were given a $5\times$ larger budget ($\epsilon = 1.0$).
- Marginal Queries: Total variation distance on 1-way and 2-way marginals remained on par with or better than methods specifically tailored for marginal estimation.
Limitations and Future Work
- Execution Time: Checking cross-tuple violations during sampling causes quadratic comparisons ($O(n^2)$ for binary constraints). Kamino takes 5–16 hours to run end-to-end, compared to faster i.i.d. baseline samplers.
- Static Schema Assumptions: The system assumes static database instances and fixed constraint definitions; data or constraint updates currently require re-running model training.
- Future Directions: Incorporating DP mechanisms tailored for dynamically evolving databases and applying further optimizations for ultra-large schemas.
Summary updated