Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees

Faisal Hamman, Erfaun Noorani, Saumitra Mishra, Daniele Magazzeni, Sanghamitra Dutta
5/19/2023
stat.MLcs.AIcs.CY

No official code found. Best implementation: FaisalHamman/TReX-Counterfactuals (3 stars, MIT, last commit 2023-12-26).

Abstract

There is an emerging interest in generating robust counterfactual explanations that would remain valid if the model is updated or changed even slightly. Towards finding robust counterfactuals, existing literature often assumes that the original model $m$ and the new model $M$ are bounded in the parameter space, i.e., $\|\text{Params}(M){-}\text{Params}(m)\|{<}Δ$. However, models can often change significantly in the parameter space with little to no change in their predictions or accuracy on the given dataset. In this work, we introduce a mathematical abstraction termed $\textit{naturally-occurring}$ model change, which allows for arbitrary changes in the parameter space such that the change in predictions on points that lie on the data manifold is limited. Next, we propose a measure -- that we call $\textit{Stability}$ -- to quantify the robustness of counterfactuals to potential model changes for differentiable models, e.g., neural networks. Our main contribution is to show that counterfactuals with sufficiently high value of $\textit{Stability}$ as defined by our measure will remain valid after potential $\textit{naturally-occurring}$ model changes with high probability (leveraging concentration bounds for Lipschitz function of independent Gaussians). Since our quantification depends on the local Lipschitz constant around a data point which is not always available, we also examine practical relaxations of our proposed measure and demonstrate experimentally how they can be incorporated to find robust counterfactuals for neural networks that are close, realistic, and remain valid after potential model changes. This work also has interesting connections with model multiplicity, also known as, the Rashomon effect.

View on arXivView PDF

Code Implementations(1)

MIT

Repository for ICML2023 paper "Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees."

30PythonDec 26, 20232 years agoMIT

Similar Papers

Cite this paper

@article{hamman2023robust,
  title  = {Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees},
  author = {Faisal Hamman and Erfaun Noorani and Saumitra Mishra and Daniele Magazzeni and Sanghamitra Dutta},
  year   = {2023},
  eprint = {2305.11997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.11997v3},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.11997.svg)](https://codeofpaper.com/paper/2305.11997)

Discussion