Masked Language Modeling Becomes Conditional Density Estimation for Tabular Data Synthesis

Seunghwan An, Gyeongdong Woo, Jaesung Lim, ChangHyun Kim, Sungchul Hong +1 more
5/31/2024
cs.LGcs.CL

No official code found. Best implementation: an-seunghwan/MaCoDE (5 stars, MIT, last commit 2025-09-04).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of 'Masked Language Modeling Becomes Conditional Density Estimation for Tabular Data Synthesis' (MaCoDE) with pytorch (AAAI 2025 accepted paper).

52Shell, PythonMay 17, 20241 years agoMIT
distributional-learningmasked-language-modelingmissing-datamissing-data-imputationmlm+2 more

Similar Papers

Cite this paper

@article{an2024masked,
  title  = {Masked Language Modeling Becomes Conditional Density Estimation for Tabular Data Synthesis},
  author = {Seunghwan An and Gyeongdong Woo and Jaesung Lim and ChangHyun Kim and Sungchul Hong and Jong-June Jeon},
  year   = {2024},
  eprint = {2405.20602},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.20602v2}
}

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

Discussion