Lune

ICLR2022Top-tier venue

Consistent Counterfactuals for Deep Models

Emily Black, Zifan Wang, Matt Fredrikson

Abstract

Counterfactual examples are one of the most commonly-cited methods for explaining the predictions of machine learning models in key areas such as finance and medical diagnosis. Counterfactuals are often discussed under the assumption that the model on which they will be used is static, but in deployment models may be periodically retrained or fine-tuned. This paper studies the consistency of model prediction on counterfactual examples in deep networks under small changes to initial training conditions, such as weight initialization and leave-one-out variations in data, as often occurs during model deployment. We demonstrate experimentally that counterfactual examples for deep models are often inconsistent across such small changes, and that increasing the cost of the counterfactual, a stability-enhancing mitigation suggested by prior work in the context of simpler models, is not a reliable heuristic in deep networks. Rather, our analysis shows that a model's Lipschitz continuity around the counterfactual, along with confidence of its prediction, is key to its consistency across related models. To this end, we propose Stable Neighbor Search as a way to generate more consistent counterfactual explanations, and illustrate the effectiveness of this approach on several benchmark datasets.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic Recourse cites On the Adversarial Robustness of Causal Algorithmic Recourse
  • Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic Recourse cites Algorithmic recourse under imperfect causal knowledge: a probabilistic approach
  • On the Adversarial Robustness of Causal Algorithmic Recourse cites Algorithmic recourse under imperfect causal knowledge: a probabilistic approach
  • Robust Counterfactual Explanations for Tree-Based Ensembles cites Predictive Multiplicity in Classification
  • Model Reconstruction Using Counterfactual Explanations: A Perspective From Polytope Theory cites Robust Counterfactual Explanations for Tree-Based Ensembles
  • Model Reconstruction Using Counterfactual Explanations: A Perspective From Polytope Theory cites Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees
  • Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees cites Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic Recourse
  • Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees cites On the Adversarial Robustness of Causal Algorithmic Recourse
  • Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees cites Predictive Multiplicity in Classification
  • Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees cites Robust Counterfactual Explanations for Tree-Based Ensembles
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. On the Adversarial Robustness of Causal Algorithmic RecourseRicardo Dominguez-Olmedo, Amir-Hossein Karimi, Bernhard SchölkopfICML 2022 · 80 citations
  2. Robust Counterfactual Explanations for Tree-Based EnsemblesSanghamitra Dutta, Jason Long, Saumitra Mishra, Cecilia Tilli et al.ICML 2022 · 73 citations
  3. Robust Counterfactual Explanations for Neural Networks With Probabilistic GuaranteesFaisal Hamman, Erfaun Noorani, Saumitra Mishra, Daniele Magazzeni et al.ICML 2023 · 54 citations
  4. Model Reconstruction Using Counterfactual Explanations: A Perspective From Polytope TheoryPasan Dissanayake, Sanghamitra DuttaNeurIPS 2024 · 17 citations
  5. Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic RecourseMartin Pawelczyk, Teresa Datta, Johannes van den Heuvel, Gjergji Kasneci et al.ICLR 2023 · 13 citations

Builds on4

  1. Algorithmic recourse under imperfect causal knowledge: a probabilistic approachAmir-Hossein Karimi, Bodo Julius von Kügelgen, Bernhard Schölkopf, Isabel ValeraNeurIPS 2020 · 224 citations
  2. Predictive Multiplicity in ClassificationCharles T. Marx, Flávio P. Calmon, Berk UstunICML 2020 · 197 citations
  3. Smoothed Geometry for Robust AttributionZifan Wang, Haofan Wang, Shakul Ramkumar, Piotr Mardziel et al.NeurIPS 2020 · 67 citations
  4. Fast Geometric Projections for Local Robustness CertificationAymeric Fromherz, Klas Leino, Matt Fredrikson, Bryan Parno et al.ICLR 2021 · 34 citations

Related papers

  1. Designing Counterfactual Generators using Deep Model InversionJayaraman J. Thiagarajan, Vivek Sivaraman Narayanaswamy, Deepta Rajan, Jason Liang et al.NeurIPS 2021 · 25 citations
  2. Counterfactual Explanations with Probabilistic Guarantees on their Robustness to Model ChangeIgnacy Stepka, Jerzy Stefanowski, Mateusz LangoKDD 2025 · 1 citation
  3. LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow MatchingZhuo Cao, Xuan Zhao, Lena Krieger, Hanno Scharr et al.NeurIPS 2025 · 5 citations
  4. A General Search-Based Framework for Generating Textual Counterfactual ExplanationsDaniel Gilo, Shaul MarkovitchAAAI 2024 · 3 citations
  5. Is this the Right Neighborhood? Accurate and Query Efficient Model Agnostic ExplanationsAmit Dhurandhar, Karthikeyan Natesan Ramamurthy, Karthikeyan ShanmugamNeurIPS 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines