Provably Robust Bayesian Counterfactual Explanations under Model Changes
Jamie Duell, Xiuyi Fan
TL;DR
This work tackles the fragility of counterfactual explanations under evolving models by introducing Probabilistically Safe Counterfactual Explanations (PSCE), which enforce δ-safe and ε-robust properties via a Bayesian framework. PSCE optimizes a composite objective that balances validity, robustness under model changes, plausibility on the data manifold, and proximity to the original instance, using posterior predictive distributions and ELBO-based plausibility. The authors prove theoretical bounds (Theorem 1 and Theorem 2) linking model-change robustness to the KL divergence between successive posteriors, and validate PSCE empirically against Bayesian baselines across multiple datasets, showing improved robustness and discriminativeness. The results suggest PSCE provides more reliable, interpretable explanations in dynamic deployment, with potential extensions to online learning and data drift scenarios.
Abstract
Counterfactual explanations (CEs) offer interpretable insights into machine learning predictions by answering ``what if?" questions. However, in real-world settings where models are frequently updated, existing counterfactual explanations can quickly become invalid or unreliable. In this paper, we introduce Probabilistically Safe CEs (PSCE), a method for generating counterfactual explanations that are $δ$-safe, to ensure high predictive confidence, and $ε$-robust to ensure low predictive variance. Based on Bayesian principles, PSCE provides formal probabilistic guarantees for CEs under model changes which are adhered to in what we refer to as the $\langle δ, ε\rangle$-set. Uncertainty-aware constraints are integrated into our optimization framework and we validate our method empirically across diverse datasets. We compare our approach against state-of-the-art Bayesian CE methods, where PSCE produces counterfactual explanations that are not only more plausible and discriminative, but also provably robust under model change.
