mlsanityData to 14 Oct 2026

Calculating and Visualizing Counterfactual Feature Importance Values

arXiv 2306.06506 ↗First posted 10 Jun 2023cs.LG cs.AI cs.HCcited by 2

Not on the map. Why?

Abstract (arXiv)

Despite the success of complex machine learning algorithms, mostly justified by an outstanding performance in prediction tasks, their inherent opaque nature still represents a challenge to their responsible application. Counterfactual explanations surged as one potential solution to explain individual decision results. However, two major drawbacks directly impact their usability: (1) the isonomic view of feature changes, in which it is not possible to observe textithow much each modified feature influences the prediction, and (2) the lack of graphical resources to visualize the counterfactual explanation. We introduce Counterfactual Feature (change) Importance (CFI) values as a solution: a way of assigning an importance value to each feature change in a given counterfactual explanation. To calculate these values, we propose two potential CFI methods. One is simple, fast, and has a greedy nature. The other, coined CounterShapley, provides a way to calculate Shapley values between the factual-counterfactual pair. Using these importance values, we additionally introduce three chart types to visualize the counterfactual explanations: (a) the Greedy chart, which shows a greedy sequential path for prediction score increase up to predicted class change, (b) the CounterShapley chart, depicting its respective score in a simple and one-dimensional chart, and finally (c) the Constellation chart, which shows all possible combinations of feature changes, and their impact on the model's prediction score. For each of our proposed CFI methods and visualization schemes, we show how they can provide more information on counterfactual explanations. Finally, an open-source implementation is offered, compatible with any counterfactual explanation generator algorithm. Code repository at: https://github.com/ADMAntwerp/CounterPlots

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 20 of its 54 references that are in the map. First posted on arXiv 10 Jun 2023.

Builds on

20 of 54 references.

References · 20

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  4. 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
  5. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
  6. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
  7. 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
  8. 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
  9. 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
  10. 2019DLIME: A Deterministic Local Interpretable Model-Agnostic Explanations Approach for Computer-Aided Diagnosis Systemscited by 59
  11. 2020Statistical stability indices for LIME: obtaining reliable explanations for Machine Learning modelscited by 40
  12. 2020DECE: Decision Explorer with Counterfactual Explanations for Machine Learning Modelscited by 38
8 more
  1. 2020ViCE: Visual Counterfactual Explanations for Machine Learning Modelscited by 34
  2. 2020Explaining Data-Driven Decisions made by AI Systems: The Counterfactual Approachcited by 26
  3. 2021On Locality of Local Explanation Modelscited by 25
  4. 2019Explaining Deep Learning Models with Constrained Adversarial Examplescited by 19
  5. 2021A Framework and Benchmarking Study for Counterfactual Generating Methods on Tabular Datacited by 19
  6. 2021Expressive Neural Voice Cloningcited by 11
  7. 2021Understanding Consumer Preferences for Explanations Generated by XAI Algorithmscited by 5
  8. 2019Self-imitating Feedback Generation Using GAN for Computer-Assisted Pronunciation Trainingcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.