Synthesizing Linked Data Under Cardinality and Integrity Constraints
Amir Gilad, Shweta Patwa, Ashwin Machanavajjhala
Abstract
The generation of synthetic data is useful in multiple aspects, from testing applications to benchmarking to privacy preservation. Generating thelinks between relations, subject tocardinality constraints (CCs) andintegrity constraints (ICs) is an important aspect of this problem. Given instances of two relations, where one has a foreign key dependence on the other and is missing its foreign key () values, and two types of constraints: (1) CCs that apply to the join view and (2) ICs that apply to the table with missing values, our goal is to impute the missing values such that the constraints are satisfied. We provide a novel framework for the problem based on declarative CCs and ICs. We further show that the problem is NP-hard and propose a novel two-phase solution that guarantees the satisfaction of the ICs. Phase I yields an intermediate solution accounting for the CCs alone, and relies on a hybrid approach based on CC types. For one type, the problem is modeled as an Integer Linear Program. For the others, we describe an efficient and accurate solution. We then combine the two solutions. Phase II augments this solution by incorporating the ICs and uses a coloring of the conflict hypergraph to infer the values of the column. Our extensive experimental study shows that our solution scales well when the data and number of constraints increases. We further show that our solution maintains low error rates for the CCs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- PrivLava: Synthesizing Relational Data with Foreign Keys under Differential PrivacyKuntai Cai, Xiaokui Xiao, Graham CormodeSIGMOD 2023 · 25 citations
- Projection-Compliant Database GenerationAnupam Sanghi, Shadab Ahmed, Jayant R. HaritsaVLDB 2022 · 6 citations
- Efficient Dynamic Attributed Graph GenerationFan Li, Xiaoyang Wang, Dawei Cheng, Cong Chen et al.ICDE 2025 · 5 citations
- PrivPetal: Relational Data Synthesis via Permutation RelationsKuntai Cai, Xiaokui Xiao, Yin YangSIGMOD 2025 · 1 citation
Builds on3
- Discovery of Approximate (and Exact) Denial ConstraintsEduardo H. M. Pena, Eduardo C. de Almeida, Felix NaumannVLDB 2020 · 79 citations
- Approximate Denial ConstraintsEster Livshits, Alireza Heidari, Ihab F. Ilyas, Benny KimelfeldVLDB 2020 · 60 citations
- On Multiple Semantics for Declarative Database RepairsAmir Gilad, Daniel Deutch, Sudeepa RoySIGMOD 2020 · 20 citations
Related papers
- IRG: Modular Synthetic Relational Database Generation with Complex Relational SchemasJiayu Li, Zilong Zhao, Milad Abdollahzadeh, Biplab Sikdar et al.KDD 2026
- Explaining Missing Data in Graphs: A Constraint-based ApproachQi Song, Peng Lin, Hanchao Ma, Yinghui WuICDE 2021 · 7 citations
- Differentially Private Data Generation with Missing DataShubhankar Mohapatra, Jianqiao Zong, Florian Kerschbaum, Xi HeVLDB 2024 · 7 citations
- Preserving Missing Data Distribution in Synthetic DataXinyue Wang, Hafiz Salman Asif, Jaideep VaidyaWWW 2023 · 4 citations
- Optimal LP Rounding and Linear-Time Approximation Algorithms for Clustering Edge-Colored HypergraphsNate VeldtICML 2023 · 5 citations
