CTTVAE: Latent Space Structuring for Conditional Tabular Data Generation on Imbalanced Datasets
Milosh Devic, Jordan Gierschendorf, David Garson
TL;DR
CTTVAE addresses severe class imbalance in tabular data by combining a conditional transformer-based VAE with latent-space structuring via a class-aware triplet margin loss and a training-by-sampling strategy. The model performs conditional generation confined to class-specific latent regions using local triangle interpolation, while TBS ensures underrepresented groups receive more training exposure. Ablation studies show both latent structuring and targeted sampling contribute to improved minority-class utility, with CTTVAE+TBS achieving strong performance while maintaining competitive fidelity and privacy. Across six real-world benchmarks, CTTVAE+TBS consistently enhances minority utility (downstream predictive performance) without sacrificing majority-class performance, offering a practical, privacy-conscious approach for sensitive domains like healthcare and fraud detection. The work demonstrates a favorable utility–privacy–fidelity trade-off and provides a configurable framework for conditional tabular data generation under imbalance.
Abstract
Generating synthetic tabular data under severe class imbalance is essential for domains where rare but high-impact events drive decision-making. However, most generative models either overlook minority groups or fail to produce samples that are useful for downstream learning. We introduce CTTVAE, a Conditional Transformer-based Tabular Variational Autoencoder equipped with two complementary mechanisms: (i) a class-aware triplet margin loss that restructures the latent space for sharper intra-class compactness and inter-class separation, and (ii) a training-by-sampling strategy that adaptively increases exposure to underrepresented groups. Together, these components form CTTVAE+TBS, a framework that consistently yields more representative and utility-aligned samples without destabilizing training. Across six real-world benchmarks, CTTVAE+TBS achieves the strongest downstream utility on minority classes, often surpassing models trained on the original imbalanced data while maintaining competitive fidelity and bridging the gap for privacy for interpolation-based sampling methods and deep generative methods. Ablation studies further confirm that both latent structuring and targeted sampling contribute to these gains. By explicitly prioritizing downstream performance in rare categories, CTTVAE+TBS provides a robust and interpretable solution for conditional tabular data generation, with direct applicability to industries such as healthcare, fraud detection, and predictive maintenance where even small gains in minority cases can be critical.
