Joint Classification and Generation on Tabular Data: an Empirical Study
Organizations: Eindhoven University of Technology · Wroclaw University of Science and Technology · Tooploox Sp. z o.o.
Abstract
Many applications of machine learning on tabular data need both a classifier and a generator of realistic records. The default is to train two separate models, whereas a single joint model promises both from one set of weights. Several families of tabular deep learning models can be turned into such a joint model, which raises the question of which joint model is preferable at which computational budget. In this empirical study, we introduce and compare joint models based on four state-of-the-art tabular data modeling families (energy-based models, probabilistic circuits, tabular foundation models and tabular diffusion models) against measured FLOPs and wall-clock time, on 29 classification datasets. Methods are evaluated based on two defined aggregate scores that take into account different aspects of prediction and generation. We then also compare these joint models with every pair of a separate classifier and generator at different computational budgets, to see when a joint model may be a defendible choice against the regular practice of keeping a separate classifier and generator. We find that the best joint model is a probabilistic circuit at the smallest budgets and, beyond that, a tabular foundation model that generates column by column using a regressor (TabICL). Compared with pairs of separate models, this study finds a joint model is rarely preferable but often very close to the best pair, without the hassle of training and maintaining two separate models.
Figures & tables
| Method | Native purpose | Classifier | Generator | Categorical features | What is new or adapted | Budget hyperparameter |
| Energy-based models | ||||||
| JEM-ED | joint | softmax of logits | MCMC on , | embeddings; uniform ED kernel | ED for the JEM marginal objective | particles |
| JEM-SGLD | joint | softmax of logits | as JEM-ED | embeddings; Gibbs in every SGLD step | Gibbs sampling in training | SGLD steps |
| TabED-joint | joint | softmax of over classes (one pass per class) | as JEM-ED | embeddings; uniform ED kernel (label too) | - | particles |
| Tabular diffusion models | ||||||
| TabDiff | generator | diffusion classifier | reverse diffusion | masking | diffusion classifier for tables | epochs |
| Prediction | Generation | ||||||||||||
| Method | Budget | Acc | AUROC | Brier | NLL | ECE | Pred. | wNMIS | C2ST-XGB | MLE | Gen. | Overall | TFLOP |
| UCI-mixed (5 classification datasets) | |||||||||||||
| Reference rows (define 0 and 1 of the scores) | |||||||||||||
| Class prior (floor) | – | 0.729 | 0.500 | 0.388 | 0.576 | – | 0.000 | – | – | – | – | – | – |
| Fully factorised (floor) | – | – | – | – | – | – | – | 0.804 | 0.019 | 0.505 | 0.000 | – | – |
| Real data (ceiling) | – | – | – | – | – | – | – | 0.994 | 0.996 | 0.865 | 1.000 | – | – |
| Best single joint model | Best pair of separate models | |||||||||
| Suite | FLOPs | model | Pred. | Gen. | Overall | models | Pred. | Gen. | Overall | |
| OpenML-CC18 | PC @64 | 0.416 | 0.676 | 0.531 | XGBoost @500 + PC @64 | 0.597 | 0.676 | 0.635 | 1.00 | |
| PC @64 | 0.416 | 0.676 | 0.531 | TabICL @2 + PC @64 | 0.669 | 0.676 | 0.673 | 1.00 | ||
| TabICL @2 | 0.669 | 0.924 | 0.786 | TabPFN @2048 + TabICL @8 | 0.636 | 0.932 | 0.770 | 0.01 | ||
| TabICL @16 | 0.668 | 0.934 | 0.790 | TabFM @4 + TabICL @16 | 0.684 | 0.934 | 0.799 | 1.00 | ||
| any | TabICL @16 | 0.668 | 0.934 | 0.790 | TabFM @4 + TabICL @16 | 0.684 | 0.934 | 0.799 | 1.00 | |
| CC18 numerical (18) | CC18 mixed (6) | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Budget | Acc | Brier | Pred. | C2ST | MLE | Gen. | Overall | Budget | Acc | Brier | Pred. | C2ST | MLE | Gen. | Overall |
| JEM-ED | 2 | 0.848 | 0.263 | 0.567 | 0.394 | 0.848 | 0.484 | 0.524 | 4 | 0.726 | 0.416 | 0.321 | 0.848 | 0.732 | 0.853 | 0.523 |
| JEM-SGLD | 10 | 0.846 | 0.229 | 0.590 | 0.326 | 0.837 | 0.554 | 0.572 | 10 | 0.724 | 0.355 | 0.379 | 0.820 | 0.680 | 0.746 | 0.532 |
| TabED-joint | 128 | 0.838 | 0.238 | 0.572 | 0.419 | 0.769 | 0.433 | 0.498 | 8 | 0.731 | 0.356 | 0.385 | 0.871 | 0.689 | 0.874 | 0.580 |
| TabDiff | 8000 | 0.815 | 0.263 | 0.494 | 0.534 | 0.839 | 0.608 | 0.548 | 8000 | 0.716 | 0.361 | 0.326 | 0.902 | 0.713 | 0.932 | 0.551 |
| TabSyn | 1250 | 0.855 | 0.221 | 0.594 | 0.731 | 0.870 | 0.853 | 0.712 | 10000 | 0.720 | 0.365 | 0.350 | 0.899 | 0.702 | 0.827 | 0.538 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Class prior | Fully factorised | Real data | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Suite | Acc | Brier | NLL | wNMIS | C2ST-XGB | MLE | wNMIS | C2ST-XGB | MLE |
| UCI-mixed | 0.729 | 0.388 | 0.576 | 0.804 | 0.019 | 0.505 | 0.994 | 0.996 | 0.865 |
| OpenML-CC18 | 0.572 | 0.522 | 0.828 | 0.891 | 0.226 | 0.520 | 0.976 | 0.971 | 0.865 |
| CC18 numerical | 0.549 | 0.534 | 0.891 | 0.844 | 0.111 | 0.523 | 0.974 | 0.973 | 0.891 |
| CC18 mixed | 0.619 | 0.495 | 0.791 | 0.941 | 0.604 | 0.511 | 0.980 | 0.965 | 0.741 |
| UCI-mixed (5 datasets) | OpenML-CC18 (24 datasets) | |||||||
| Method | Budget | Pred. | Gen. | Overall | Budget | Pred. | Gen. | Overall |
| Energy-based models | ||||||||
| JEM-ED | 2 | 0.476 [0.26, 0.67] | 0.481 [0.33, 0.66] | 0.478 [0.32, 0.64] | 64 | 0.495 [0.25, 0.75] | 0.610 [0.45, 0.74] | 0.550 [0.39, 0.69] |
| JEM-SGLD | 10 | 0.372 [0.19, 0.55] | 0.434 [0.32, 0.57] | 0.402 [0.25, 0.56] | 10 | 0.544 [0.34, 0.74] | 0.603 [0.49, 0.71] | 0.573 [0.44, 0.69] |
| TabED-joint | 2 | 0.419 [0.17, 0.63] | 0.459 [0.26, 0.64] | 0.438 [0.22, 0.61] | 128 | 0.522 [0.32, 0.71] | 0.522 [0.33, 0.73] | 0.522 [0.38, 0.67] |
| Tabular diffusion models | ||||||||
| Suite | Model | Sampler | wNMIS | C2ST-XGB | MLE | Gen. | sample TFLOP | sample s |
|---|---|---|---|---|---|---|---|---|
| UCI-mixed | TabPFN@1024 | column-by-column | 0.979 | 0.547 | 0.837 | 0.783 | 297 | 34.9 |
| TabPFN@1024 | TabPFGen (energy, prior start) | 0.814 | 0.001 | 0.753 | 0.241 | 4,080 | 268 | |
| TabICL@16 | column-by-column | 0.981 | 0.645 | 0.840 | 0.825 | 305 | 17.8 | |
| TabICL@16 | TabICL-Gen (energy, prior start) | 0.811 | 0.001 | 0.707 | 0.230 | 4,293 | ||
| OpenML-CC18 | TabPFN@1024 | column-by-column | 0.970 | 0.881 | 0.846 | 0.911 | 17.1 | 12.5 |
| TabPFN@1024 | TabPFGen (energy, prior start) | 0.904 | 0.104 | 0.799 | 0.279 | 58.3 | 28.3 |
| Dataset | UCI ID | Rows | #num | #cat | Classes | Type |
|---|---|---|---|---|---|---|
| Adult | 2 | 48,842 | 6 | 8 | 2 | both |
| Default of credit card clients | 350 | 30,000 | 14 | 9 | 2 | both |
| Diabetes 130-US hospitals | 296 | 101,766 | 9 | 26 | 2 | both |
| MAGIC gamma telescope | 159 | 19,020 | 10 | 0 | 2 | numerical |
| Online Shoppers purchasing intention | 468 | 12,330 | 10 | 7 | 2 | both |
| Dataset | OpenML ID | Rows | #num | #cat | Classes | Type |
| Numerical subset (18) | ||||||
| analcatdata_authorship | 458 | 841 | 70 | 0 | 4 | numerical |
| balance-scale | 11 | 625 | 4 | 0 | 3 | numerical |
| banknote-authentication | 1462 | 1372 | 4 | 0 | 2 | numerical |
| blood-transfusion-service-center | 1464 | 748 | 4 | 0 | 2 | numerical |
| climate-model-simulation-crashes | 40994 | 540 | 20 | 0 | 2 | numerical |
| Method | Budget hyperparameter | Grid |
| JEM-ED | ED particles | 1, 2, 4, 8, 16, 32 , 64, 128 |
| JEM-SGLD | SGLD steps per update | 2, 5, 10, 20 , 40 |
| TabED-joint | ED particles | 1, 2, 4, 8, 16, 32 , 64, 128 |
| TabPFN | context rows (classifier and generator) | 64, 128, 256, 512, 1024 , 2048, 4096 |
| TabICL | ensemble members (classifier and generator) | 1, 2, 4, 8, 16 |
| TabDiff | training epochs | 500, 1000, 2000, 4000, 8000 |
| UCI-mixed | CC18 numerical | CC18 mixed | |||||||||||
| Method | Budget | Acc | C2ST-XGB | TFLOP | s | Acc | C2ST-XGB | TFLOP | s | Acc | C2ST-XGB | TFLOP | s |
| JEM-ED | 0.854 | 0.132 | 1.7 | 19 | 0.844 | 0.367 | 1.7 | 7 | 0.723 | 0.736 | 1.7 | 17 | |
| 0.854 | 0.160 | 2.6 | 22 | 0.848 | 0.394 | 2.6 | 7 | 0.726 | 0.829 | 2.6 | 17 | ||
| 0.854 | 0.139 | 4.4 | 25 | 0.848 | 0.406 | 4.3 | 6 | 0.726 | 0.848 | 4.3 | 20 | ||
| 0.854 | 0.118 | 7.8 | 36 | 0.847 | 0.412 | 7.7 | 7 | 0.729 | 0.843 | 7.7 | 29 | ||
| 0.854 | 0.098 | 14.8 | 70 | 0.849 | 0.424 | 14.5 | 7 | 0.728 | 0.835 | 14.6 | 54 | ||
Synthetic Tabular Data Generation
Synthetic tabular data generation creates artificial records that preserve useful feature relationships while limiting exposure of sensitive data.
See all 107 papers