Counterfactual Training: Teaching Models Plausible and Actionable Explanations
Patrick Altmeyer, Aleksander Buszydlik, Arie van Deursen, Cynthia C. S. Liem
TL;DR
Counterfactual Training (CT) introduces a training regime that couples a differentiable classifier to on-the-fly counterfactual explanations, with objectives that enforce faithfulness, plausibility, and actionability under explicit mutability and domain constraints. By integrating a contrastive divergence term and an adversarial robustness term into the loss, CT aligns learned representations with meaningful explanations and leverages nascent counterfactuals as adversarial signals, yielding more plausible and actionable counterfactuals and improved robustness. The approach is validated across nine datasets with multiple CE generators, showing substantial reductions in implausibility ($IP$, $IP^*$) and costs of actionability, while preserving predictive performance and enhancing adversarial resilience. These results suggest CT as a practical route to building models that provide inherently useful explanations, with broader implications for algorithmic recourse, fairness considerations, and real-world decision systems.
Abstract
We propose a novel training regime termed counterfactual training that leverages counterfactual explanations to increase the explanatory capacity of models. Counterfactual explanations have emerged as a popular post-hoc explanation method for opaque machine learning models: they inform how factual inputs would need to change in order for a model to produce some desired output. To be useful in real-world decision-making systems, counterfactuals should be plausible with respect to the underlying data and actionable with respect to the feature mutability constraints. Much existing research has therefore focused on developing post-hoc methods to generate counterfactuals that meet these desiderata. In this work, we instead hold models directly accountable for the desired end goal: counterfactual training employs counterfactuals during the training phase to minimize the divergence between learned representations and plausible, actionable explanations. We demonstrate empirically and theoretically that our proposed method facilitates training models that deliver inherently desirable counterfactual explanations and additionally exhibit improved adversarial robustness.
