[Paper Review] REaLTabFormer: Generating Realistic Relational and Tabular Data using Transformers
REaLTabFormer combines GPT-2-based autoregressive modeling for parent (non-relational) tables with a Seq2Seq transformer for child (relational) tables, including privacy safeguards and overfitting detection, to synthesize realistic relational tabular data.
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.
Motivation & Objective
- Motivate the need for synthetic relational tabular data and preserve privacy while maintaining data utility.
- Propose a unified transformer-based framework (REaLTabFormer) for generating non-relational and relational tabular data.
- Introduce privacy-preserving and overfitting-detection mechanisms to prevent data copying and overfitting.
- Show that REaLTabFormer outperforms baselines on real-world datasets and provides strong out-of-the-box performance on large non-relational datasets.
Proposed method
- Model non-relational (parent) tables with an autoregressive GPT-2 to learn P(X|previous columns).
- Model relational (child) tables with a Seq2Seq encoder–decoder, using the frozen GPT-2 parent model as the encoder to condition child generation on parent observations.
- Encode tabular data using a fixed vocabulary per column to improve efficiency and handle column data types with minimal transformation.
- Mitigate data copying via target masking (randomly masking targets during training) and a sampling-time constrained generation strategy.
- Detect overfitting and data copying using a Q_delta statistic with bootstrapped thresholds, enabling early stopping without a hold-out set.
- Provide an open-source implementation (pip install realtabformer) for researchers to reproduce results.
Experimental results
Research questions
- RQ1Can REaLTabFormer accurately capture relational structure between parent and child tables beyond baseline relational models?
- RQ2Does the model provide state-of-the-art predictive utility on large non-relational datasets without fine-tuning?
- RQ3How effective are privacy-preserving techniques (target masking, overfitting detection) at preventing data copying during generation?
- RQ4How does REaLTabFormer perform against open-source baselines on real-world datasets for both non-relational and relational data generation?
Key findings
- REaLTabFormer captures relational structure more accurately than the SDV-HMA baseline on relational datasets (Rossmann, Airbnb).
- For non-relational data, REaLTabFormer achieves competitive or state-of-the-art ML efficacy without task-specific tuning on large datasets.
- The model’s discriminator-based realism is comparable to diffusion-based baselines, indicating high realism in synthetic data.
- Target masking and Q_delta-based overfitting detection effectively mitigate data copying and enable principled early stopping.
- Constrained sampling with fixed-column vocabularies yields near-zero invalid samples during generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.