What's Wrong with Your Synthetic Tabular Data? Using Explainable AI to Evaluate Generative Models
Jan Kapar, Niklas Koenen, Martin Jullum
TL;DR
This work tackles the problem of evaluating synthetic tabular data by introducing explainable AI (XAI) as a diagnostic aid for synthetic-data quality. It trains a binary detector C: $\,\mathcal{X}\to[0,1]$ to distinguish real from synthetic data and then applies a suite of XAI techniques—permutation feature importance, partial dependence/ICE plots, conditional and marginal Shapley values, and counterfactuals—to identify which features, dependencies, and regions of the data space drive detectability. The approach reveals concrete fidelity and diversity weaknesses in synthetic data produced by TabSyn and CTGAN on two real-world datasets, uncovering issues that standard metrics overlook and offering actionable insights to improve generative models. The study emphasizes the value of explanatory diagnostics for auditing synthetic data pipelines and guiding model improvements, while acknowledging limitations related to detector quality and the maturity of tabular-generation methods.
Abstract
Evaluating synthetic tabular data is challenging, since they can differ from the real data in so many ways. There exist numerous metrics of synthetic data quality, ranging from statistical distances to predictive performance, often providing conflicting results. Moreover, they fail to explain or pinpoint the specific weaknesses in the synthetic data. To address this, we apply explainable AI (XAI) techniques to a binary detection classifier trained to distinguish real from synthetic data. While the classifier identifies distributional differences, XAI concepts such as feature importance and feature effects, analyzed through methods like permutation feature importance, partial dependence plots, Shapley values and counterfactual explanations, reveal why synthetic data are distinguishable, highlighting inconsistencies, unrealistic dependencies, or missing patterns. This interpretability increases transparency in synthetic data evaluation and provides deeper insights beyond conventional metrics, helping diagnose and improve synthetic data quality. We apply our approach to two tabular datasets and generative models, showing that it uncovers issues overlooked by standard evaluation techniques.
