Masked Language Modeling Becomes Conditional Density Estimation for Tabular Data Synthesis
Seunghwan An, Gyeongdong Woo, Jaesung Lim, ChangHyun Kim, Sungchul Hong, Jong-June Jeon
TL;DR
MaCoDE addresses synthetic data generation for mixed-type tabular data by reframing Masked Language Modeling as histogram-based conditional density estimation. It discretizes continuous features via a CDF transform and learns conditional densities across arbitrary conditioning sets using a transformer-based classifier, with masking distributed over all subsets to support arbitrary conditioning. Theoretical results bound the error between true and estimated conditionals in total variation distance, and experiments on 10 real datasets show state-of-the-art joint fidelity and downstream ML utility, plus robust handling of missing data and controllable privacy without retraining. The method supports multiple imputations under MAR and related mechanisms, offering a practical, privacy-aware tool for synthetic data with strong empirical performance and clear limitations tied to Lipschitz assumptions.
Abstract
In this paper, our goal is to generate synthetic data for heterogeneous (mixed-type) tabular datasets with high machine learning utility (MLu). Since the MLu performance depends on accurately approximating the conditional distributions, we focus on devising a synthetic data generation method based on conditional distribution estimation. We introduce MaCoDE by redefining the consecutive multi-class classification task of Masked Language Modeling (MLM) as histogram-based non-parametric conditional density estimation. Our approach enables the estimation of conditional densities across arbitrary combinations of target and conditional variables. We bridge the theoretical gap between distributional learning and MLM by demonstrating that minimizing the orderless multi-class classification loss leads to minimizing the total variation distance between conditional distributions. To validate our proposed model, we evaluate its performance in synthetic data generation across 10 real-world datasets, demonstrating its ability to adjust data privacy levels easily without re-training. Additionally, since masked input tokens in MLM are analogous to missing data, we further assess its effectiveness in handling training datasets with missing values, including multiple imputations of the missing entries.
