TabPFGen -- Tabular Data Generation with TabPFN
Junwei Ma, Apoorv Dankar, George Stein, Guangwei Yu, Anthony Caterini
TL;DR
This work introduces TabPFGen, an energy-based generator that repurposes a pretrained TabPFN to synthesize tabular data without further training. By defining a class-conditional energy E(x|y) = -f(x)[y] and sampling via stochastic gradient Langevin dynamics, TabPFGen leverages TabPFN’s in-context discriminative power for generation. Across 18 OpenML-CC18 datasets, it improves downstream predictive performance through data augmentation, aids class balancing, and enhance imputation quality, outperforming several baselines. The approach demonstrates that leveraging discriminative priors as generative energies can effectively address tabular data generation, with practical benefits and clear avenues for scaling with advancing transformer models. Limitations include current input-size constraints and focus on numerical data, which future transformer advances may alleviate.
Abstract
Advances in deep generative modelling have not translated well to tabular data. We argue that this is caused by a mismatch in structure between popular generative models and discriminative models of tabular data. We thus devise a technique to turn TabPFN -- a highly performant transformer initially designed for in-context discriminative tabular tasks -- into an energy-based generative model, which we dub TabPFGen. This novel framework leverages the pre-trained TabPFN as part of the energy function and does not require any additional training or hyperparameter tuning, thus inheriting TabPFN's in-context learning capability. We can sample from TabPFGen analogously to other energy-based models. We demonstrate strong results on standard generative modelling tasks, including data augmentation, class-balancing, and imputation, unlocking a new frontier of tabular data generation.
