NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Joint Relational Database Generation via Graph-Conditional Diffusion Models

Mohamed Amine Ketata, David Lüdke, Leo Schwinn, Stephan Günnemann

TL;DR

Researchers have developed the Graph-Conditional Relational Diffusion Model (GRDM), the first non-autoregressive generative model for multi-table databases. By representing a database as a graph and using diffusion to denoise all rows simultaneously, GRDM captures complex, long-range relationships between tables that traditional sequential models miss, while enabling faster, parallel data generation.

What Problem Does This Paper Address?

Generating synthetic relational databases (RDBs) is a high-stakes challenge. We need synthetic data for privacy-preserving research, software testing, and data augmentation. However, RDBs aren't just flat files; they are complex webs of interlinked tables connected by primary and foreign keys.

Until now, most generative models followed an autoregressive approach: they generated Table A, then Table B conditioned on A, then Table C conditioned on B, and so on.

Comparison of autoregressive vs. joint generation

This "sequential" logic has three major flaws:

  1. Error Accumulation: Small errors in the first table snowball as they propagate through the chain.
  2. Rigid Dependencies: It assumes a fixed "order" of tables, making it nearly impossible to handle tasks like missing data imputation where you might need to fill in "upstream" data based on "downstream" evidence.
  3. Slow Performance: Because tables are generated one by one, you can't easily parallelize the process.

Methods

The authors propose a shift in perspective: treat the entire database as a heterogeneous directed graph. In this view, every row in every table is a node, and every relationship (foreign key) is an edge.

Mapping a relational database to a graph representation

The generation process happens in two distinct stages:

  1. Structure Generation: The model first creates the "skeleton" of the database—the nodes and the links between them. It uses a degree-preserving random graph algorithm that ensures the synthetic database has the same connection patterns (e.g., how many orders a typical customer makes) as the real one.
  2. Attribute Generation (GRDM): This is the core innovation. Once the skeleton exists, the model uses a Diffusion Model to fill in the actual data (attributes) for every row.

Standard diffusion models (like those used in Midjourney or DALL-E) start with pure noise and gradually "denoise" it into a coherent output. GRDM does this for database rows. Crucially, it uses a Graph Neural Network (GNN) during the denoising step. This allows every row to "talk" to its neighbors across different tables, ensuring that the data in an "Orders" table is statistically consistent with the data in the "Customers" table.

Datasets

The model was evaluated on six real-world relational databases:

  • Berka: A financial dataset with complex, multi-hop dependencies.
  • Instacart 05: E-commerce data.
  • Movie Lens: Movie ratings and metadata.
  • CCS & California: Standard relational benchmarks.
  • RelBench-F1: A recently introduced, highly complex benchmark containing nine tables and numerous numerical/categorical columns.

Key Insights and Ideas

  • Breaking the Sequence: By moving away from table-by-table generation, the model can capture "multi-hop" correlations. For example, it can ensure a customer's demographic data is consistent with the specific category of products they bought three tables away.
  • The Receptive Field Advantage: Because diffusion is an iterative process, the GNN's "view" expands with every step. Even if the GNN only looks at immediate neighbors (1-hop), after 1000 steps of diffusion, information has effectively traveled across the entire database graph.
  • Dimension Tables as Metadata: The authors realized that some tables (like a list of "Countries") shouldn't be "generated" because they represent fixed real-world entities. They treat these as fixed context, which anchors the rest of the generation process.
  • Parallelism by Design: Since all rows are denoised at the same time, the generation process can be fully parallelized across a GPU, making it significantly faster than sequential methods.

Key Results

The GRDM model consistently outperformed state-of-the-art autoregressive baselines (like ClavaDDPM and SDV):

  • Multi-Hop Mastery: On the complex Berka dataset, GRDM improved the modeling of 3-hop correlations by 14.14% over the best baseline.
  • Massive Gains in Fidelity: On the Instacart 05 dataset, it improved 2-hop inter-table trends by over 5.7 times.
  • Efficiency: The joint modeling approach was more than 2.5x faster than its own autoregressive variant on the Berka dataset.
  • Scalability: The authors demonstrated that the model's performance remains stable even when scaling up to generate databases with over 20 million rows.

Limitations and Future Work

While powerful, the authors note a few areas for improvement:

  • Simple Graph Logic: The current "skeleton" generation uses a relatively simple random graph model. Future versions could use more sophisticated graph generative models to capture even subtler structural patterns.
  • Unconditional Generation: Currently, the model generates a database from scratch. Extending this to "conditional" generation (e.g., "generate a database where 50% of customers are from Europe") is a logical next step.
  • Privacy Guarantees: While the model shows good "privacy sanity" (it doesn't just memorize the training data), formal Differential Privacy guarantees have not yet been integrated into the training loop.

Summary updated

BibTeX
@inproceedings{ketata2025joint,
  author = {Mohamed Amine Ketata and David Lüdke and Leo Schwinn and Stephan Günnemann},
  title = {{Joint Relational Database Generation via Graph-Conditional Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Z3OtNSwuXX},
}
Figure