RelDiff: Relational Data Generative Modeling with Graph-Based Diffusion Models

Valter Hudovernik, Minkai Xu, Juntong Shi, Lovro Šubelj, Stefano Ermon +2 more
5/31/2025
cs.LG

Official code: ValterH/RelDiff (11 stars, MIT, last commit 2025-09-28).

Abstract

Real-world databases are predominantly relational, comprising multiple interlinked tables that contain complex structural and statistical dependencies. Learning generative models on relational data has shown great promise in generating synthetic data and imputing missing values. However, existing methods often struggle to capture this complexity, typically reducing relational data to conditionally generated flat tables and imposing limiting structural assumptions. To address these limitations, we introduce RelDiff, a novel diffusion generative model that synthesizes complete relational databases by explicitly modeling their foreign key graph structure. RelDiff combines a joint graph-conditioned diffusion process across all tables for attribute synthesis, and a $2K+$SBM graph generator based on the Stochastic Block Model for structure generation. The decomposition of graph structure and relational attributes ensures both high fidelity and referential integrity, both of which are crucial aspects of synthetic relational database generation. Experiments on 11 benchmark datasets demonstrate that RelDiff consistently outperforms prior methods in producing realistic and coherent synthetic relational databases. Code is available at https://github.com/ValterH/RelDiff.

View on arXivView PDF

Code Implementations(1)

ValterH/RelDiffOfficial100%
MIT

RelDiff: Relational Data Generative Modeling with Graph-Based Diffusion Models

111PythonMay 30, 20251 years agoMIT

Similar Papers

Cite this paper

@article{hudovernik2025reldiff,
  title  = {RelDiff: Relational Data Generative Modeling with Graph-Based Diffusion Models},
  author = {Valter Hudovernik and Minkai Xu and Juntong Shi and Lovro Šubelj and Stefano Ermon and Erik Štrumbelj and Jure Leskovec},
  year   = {2025},
  eprint = {2506.00710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00710v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00710.svg)](https://codeofpaper.com/paper/2506.00710)

Discussion