REaLTabFormer: Generating Realistic Relational and Tabular Data using Transformers

Aivin V. Solatorio, Olivier Dupriez
2/4/2023
cs.LG

No official code found. Best implementation: worldbank/REaLTabFormer (243 stars, MIT, last commit 2026-01-04).

Abstract

Tabular data is a common form of organizing data. Multiple models are available to generate synthetic tabular datasets where observations are independent, but few have the ability to produce relational datasets. Modeling relational data is challenging as it requires modeling both a "parent" table and its relationships across tables. We introduce REaLTabFormer (Realistic Relational and Tabular Transformer), a tabular and relational synthetic data generation model. It first creates a parent table using an autoregressive GPT-2 model, then generates the relational dataset conditioned on the parent table using a sequence-to-sequence (Seq2Seq) model. We implement target masking to prevent data copying and propose the $Q_δ$ statistic and statistical bootstrapping to detect overfitting. Experiments using real-world datasets show that REaLTabFormer captures the relational structure better than a baseline model. REaLTabFormer also achieves state-of-the-art results on prediction tasks, "out-of-the-box", for large non-relational datasets without needing fine-tuning.

View on arXivView PDF

Code Implementations(1)

MIT

A suite of auto-regressive and Seq2Seq (sequence-to-sequence) transformer models for tabular and relational synthetic data generation.

24327Shell, PythonNov 7, 20229 months agoMIT
data-generationdeep-learninggptgpt-2seq2seq-model+4 more

Cite this paper

@article{solatorio2023realtabformer,
  title  = {REaLTabFormer: Generating Realistic Relational and Tabular Data using Transformers},
  author = {Aivin V. Solatorio and Olivier Dupriez},
  year   = {2023},
  eprint = {2302.02041},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.02041v1}
}

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/2302.02041.svg)](https://codeofpaper.com/paper/2302.02041)

Discussion