Generating Efficiently Realistic Counterfactual Explanations

Abstract

This article introduces VCNet –Variational CounterNet—a method for generating realistic counterfactuals, and its extension ImmutableVCNet . VCNet aims to generate counterfactuals that are representative of their predicted classes in the context of tabular data. Moreover, it aims to overcome the limitations related to the post-hoc character and optimization procedure of the state-of-the-art approaches, by reducing the computing time of the counterfactual generation and reaching high levels of validity. However, state-of-the-art methods that succeed in overcoming the aforementioned limitations suffer from a lack of realism with regard to the counterfactuals generated. VCNet addresses this concern by adding realism constraints to the counterfactual generation process. Our approach is based on a conditional variational autoencoder (cVAE) to model the distributions for every class at once. Thus, generated counterfactuals not only belong to the data distribution but belong to the data distribution of a given class. The ImmutableVCNet extends VCNet to overcome the limitation of handling immutable features. We conducted several ablation studies to investigate the impact of the different choices within the VCNet architecture. Furthermore, we conducted empirical studies that demonstrate the significant benefits of our approach in generating realistic counterfactuals. We evaluate VCNet against ImmutableVCNet and also ImmutableVCNet against a variety of state-of-the-art counterfactual methods.

Cite

Text

Guyomard et al. "Generating Efficiently Realistic Counterfactual Explanations." Machine Learning, 2026. doi:10.1007/S10994-025-06947-2

Markdown

[Guyomard et al. "Generating Efficiently Realistic Counterfactual Explanations." Machine Learning, 2026.](https://mlanthology.org/mlj/2026/guyomard2026mlj-generating/) doi:10.1007/S10994-025-06947-2

BibTeX

@article{guyomard2026mlj-generating,
  title     = {{Generating Efficiently Realistic Counterfactual Explanations}},
  author    = {Guyomard, Victor and Fessant, Françoise and Bouadi, Tassadit and Guyet, Thomas},
  journal   = {Machine Learning},
  year      = {2026},
  pages     = {27},
  doi       = {10.1007/S10994-025-06947-2},
  volume    = {115},
  url       = {https://mlanthology.org/mlj/2026/guyomard2026mlj-generating/}
}