All models

REaLTabFormer

Transformer that generates synthetic tabular and relational data with GPT-2 and a sequence-to-sequence model.

Tabular and recommender · 1,009 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (15 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
144.3M
Operations
1,009
Framework
PyTorch
Recurrent
No
Published
2023
Cited by
179 (as of 25 November 2026)
Authors
Aivin V. Solatorio, Olivier Dupriez
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19632
Graph hash
efda9e7cd7345581f928ceaa4b0ac09294a2b5d30725ed1fc12160215d8f6746
Skeleton hash
66f596f612adf2a1761a540ba39d96832d37e0b8f63903127a66f7746bf7446c
Architecture hash
ede220eaf9c3cabc4d369d4c8d2856aec6a87988dbb19c48bb774799eab4881b
Diagram SHA-256
1cde813ea7b362fcba9d41b4eccf167cbea179f9171eb3940012b4020cfb4542
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

REaLTabFormer (Realistic Relational and Tabular Transformer) is a model for generating synthetic tabular and relational data. The paper observes that many models can generate tables whose observations are independent, but few can produce relational datasets.

It works in two steps: an autoregressive GPT-2 model first creates the parent table, then a sequence-to-sequence (Seq2Seq) model generates the relational dataset conditioned on that parent table. The GPT-2 model trained on the parent table is reused, with its weights frozen, as the encoder of the Seq2Seq model. The GPT-2 architecture in the paper has 768-dimensional embeddings, 6 decoder layers and 12 attention heads. Instead of a language model's large vocabulary, the authors adopt a fixed-set vocabulary.

To reduce the copying of training records, the authors add target masking, which randomly replaces target tokens with a special mask token. They also propose the Qδ statistic and statistical bootstrapping to detect overfitting. In experiments on real-world datasets, the paper reports that REaLTabFormer captures the relational structure better than a baseline model.

Key idea. REaLTabFormer generates relational data by creating a parent table with an autoregressive GPT-2 model and then the related tables with a Seq2Seq model conditioned on it.

  • REaLTabFormer
  • Realistic Relational and Tabular Transformer
  • synthetic tabular data
  • relational data generation
  • tabular data generation
  • synthetic data
  • GPT-2 tabular model
  • parent and child tables

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{solatorio2023realtabformergeneratingrealisticrelational,
      title={REaLTabFormer: Generating Realistic Relational and Tabular Data using Transformers}, 
      author={Aivin V. Solatorio and Olivier Dupriez},
      year={2023},
      eprint={2302.02041},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2302.02041}, 
}