English

TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAE

Machine Learning 2024-10-15 v1 Artificial Intelligence Computers and Society

Abstract

In the field of Explainable AI (XAI), counterfactual (CF) explanations are one prominent method to interpret a black-box model by suggesting changes to the input that would alter a prediction. In real-world applications, the input is predominantly in tabular form and comprised of mixed data types and complex feature interdependencies. These unique data characteristics are difficult to model, and we empirically show that they lead to bias towards specific feature types when generating CFs. To overcome this issue, we introduce TABCF, a CF explanation method that leverages a transformer-based Variational Autoencoder (VAE) tailored for modeling tabular data. Our approach uses transformers to learn a continuous latent space and a novel Gumbel-Softmax detokenizer that enables precise categorical reconstruction while preserving end-to-end differentiability. Extensive quantitative evaluation on five financial datasets demonstrates that TABCF does not exhibit bias toward specific feature types, and outperforms existing methods in producing effective CFs that align with common CF desiderata.

Keywords

Cite

@article{arxiv.2410.10463,
  title  = {TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAE},
  author = {Emmanouil Panagiotou and Manuel Heurich and Tim Landgraf and Eirini Ntoutsi},
  journal= {arXiv preprint arXiv:2410.10463},
  year   = {2024}
}

Comments

Paper accepted at ICAIF '24: 5th ACM International Conference on AI in Finance, Brooklyn, NY, USA, November 2024

R2 v1 2026-06-28T19:20:32.788Z