mlsanityData to 7 Oct 2026

NICE: An Algorithm for Nearest Instance Counterfactual Explanations

arXiv 2104.07411 ↗First posted 15 Apr 2021cs.LG cs.AI cs.LOcited by 62

Not on the map. Why?

Abstract (arXiv)

In this paper we suggest NICE: a new algorithm to generate counterfactual explanations for heterogeneous tabular data. The design of our algorithm specifically takes into account algorithmic requirements that often emerge in real-life deployments: (1) the ability to provide an explanation for all predictions, (2) being able to handle any classification model (also non-differentiable ones), and (3) being efficient in run time. More specifically, our approach exploits information from a nearest unlike neighbour to speed up the search process, by iteratively introducing feature values from this neighbour in the instance to be explained. We propose four versions of NICE, one without optimization and, three which optimize the explanations for one of the following properties: sparsity, proximity or plausibility. An extensive empirical comparison on 40 datasets shows that our algorithm outperforms the current state-of-the-art in terms of these criteria. Our analyses show a trade-off between on the one hand plausibility and on the other hand proximity or sparsity, with our different optimization methods offering users the choice to select the types of counterfactuals that they prefer. An open-source implementation of NICE can be found at https://github.com/ADMAntwerp/NICE.

Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). Builds on 36 of its 81 references that are in the map. First posted on arXiv 15 Apr 2021.

Builds on

36 of 81 references.

References · 36

  1. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  2. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  3. 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,543
  4. 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
  5. 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
  6. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
  7. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  8. 2018A Survey Of Methods For Explaining Black Box Modelscited by 970
  9. 2018This Looks Like That: Deep Learning for Interpretable Image Recognitioncited by 731
  10. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  11. 2019Unmasking Clever Hans Predictors and Assessing What Machines Really Learncited by 359
  12. 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
24 more
  1. 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
  2. 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
  3. 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
  4. 2020Multi-Objective Counterfactual Explanationscited by 157
  5. 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
  6. 2017PMLB: A Large Benchmark Suite for Machine Learning Evaluation and Comparisoncited by 139
  7. 2019Towards Realistic Individual Recourse and Actionable Explanations in Black-Box Decision Making Systemscited by 128
  8. 2021What Do We Want From Explainable Artificial Intelligence (XAI)? -- A Stakeholder Perspective on XAI and a Conceptual Model Guiding Interdisciplinary XAI Researchcited by 119
  9. 2020A survey of algorithmic recourse: definitions, formulations, solutions, and prospectscited by 118
  10. 2019The Hidden Assumptions Behind Counterfactual Explanations and Principal Reasonscited by 115
  11. 2019Explainability Fact Sheets: A Framework for Systematic Assessment of Explainable Approachescited by 101
  12. 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
  13. 2020Good Counterfactuals and Where to Find Them: A Case-Based Technique for Generating Counterfactuals for Explainable AI (XAI)cited by 79
  14. 2020On Counterfactual Explanations under Predictive Multiplicitycited by 73
  15. 2020Towards Unifying Feature Attribution and Counterfactual Explanations: Different Means to the Same Endcited by 66
  16. 2020Instance-based Counterfactual Explanations for Time Series Classificationcited by 64
  17. 2017Inverse Classification for Comparison-based Interpretability in Machine Learningcited by 49
  18. 2018The Challenge of Crafting Intelligible Intelligencecited by 46
  19. 2019Model Agnostic Contrastive Explanations for Structured Datacited by 41
  20. 2021GeCo: Quality Counterfactual Explanations in Real Timecited by 32
  21. 2019Explaining Models: An Empirical Study of How Explanations Impact Fairness Judgmentcited by 31
  22. 2019Counterfactual Explanation Algorithms for Behavioral and Textual Datacited by 26
  23. 2020Explaining Data-Driven Decisions made by AI Systems: The Counterfactual Approachcited by 26
  24. 2018On Cognitive Preferences and the Plausibility of Rule-based Modelscited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 2; 2023: 13; 2024: 16; 2025: 13; 2026: 17.

62 papers.

Sort:

By area:

  1. 2022The privacy issue of counterfactual explanations: explanation linkage attackscited by 20
  2. 2023Recourse under Model Multiplicity via Argumentative Ensembling (Technical Report)cited by 15
  3. 2023Generating robust counterfactual explanationscited by 13
  4. 2024GraphXAIN: Narratives to Explain Graph Neural Networkscited by 11
  5. 2023Explaining Groups of Instances Counterfactually for XAI: A Use Case, Algorithm and User Study for Group-Counterfactualscited by 9
  6. 2023Generating collective counterfactual explanations in score-based classification via mathematical optimizationcited by 9
  7. 2021MCCE: Monte Carlo sampling of realistic counterfactual explanationscited by 7
  8. 2024Interval Abstractions for Robust Counterfactual Explanationscited by 7
  9. 2024Distributional Counterfactual Explanations With Optimal Transportcited by 6
  10. 2024A Survey of Privacy-Preserving Model Explanations: Privacy Risks, Attacks, and Countermeasurescited by 6
  11. 2025RobustX: Robust Counterfactual Explanations Made Easycited by 6
  12. 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanationscited by 5
38 more
  1. 2023Privacy-Preserving Algorithmic Recoursecited by 5
  2. 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?cited by 5
  3. 2024CountARFactuals -- Generating plausible model-agnostic counterfactual explanations with adversarial random forestscited by 5
  4. 2024Use of What-if Scenarios to Help Explain Artificial Intelligence Models for Neonatal Healthcited by 5
  5. 2025GlyTwin: Digital Twin for Glucose Control in Type 1 Diabetes Through Optimal Behavioral Modifications Using Patient-Centric Counterfactualscited by 5
  6. 2023Disagreement amongst counterfactual explanations: How transparency can be deceptivecited by 3
  7. 2024Heterogeneous Graph Neural Networks with Post-hoc Explanations for Multi-modal and Explainable Land Use Inferencecited by 3
  8. 2025Local MDI+: Local Feature Importances for Tree-Based Modelscited by 3
  9. 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
  10. 2023counterfactuals: An R Package for Counterfactual Explanation Methodscited by 2
  11. 2023Unveiling the Potential of Counterfactuals Explanations in Employabilitycited by 2
  12. 2023Calculating and Visualizing Counterfactual Feature Importance Valuescited by 2
  13. 2023Viewing the process of generating counterfactuals as a source of knowledge: a new approach for explaining classifierscited by 2
  14. 2023Towards Feasible Counterfactual Explanations: A Taxonomy Guided Template-based NLG Methodcited by 2
  15. 2024Generally-Occurring Model Change for Robust Counterfactual Explanationscited by 2
  16. 2024Private Counterfactual Retrievalcited by 2
  17. 2025Enhancing Metabolic Syndrome Prediction with Hybrid Data Balancing and Counterfactualscited by 2
  18. 2026ElliCE: Efficient and Provably Robust Algorithmic Recourse via the Rashomon Setscited by 2
  19. 2024Overlap Number of Balls Model-Agnostic CounterFactuals (ONB-MACF): A Data-Morphology-based Counterfactual Generation Method for Trustworthy Artificial Intelligencecited by 1
  20. 2024Explainable bank failure prediction models: Counterfactual explanations to reduce the failure riskcited by 1
  21. 2024ProxiMix: Enhancing Fairness with Proximity Samples in Subgroupscited by 1
  22. 2024Info-CELS: Informative Saliency Map Guided Counterfactual Explanationcited by 1
  23. 2025Explainability-Driven Quality Assessment for Rule-Based Systemscited by 1
  24. 2025Argumentative Ensembling for Robust Recourse under Model Multiplicitycited by 1
  25. 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentationcited by 1
  26. 2025Out-of-Distribution Detection using Counterfactual Distancecited by 1
  27. 2025Synthesising Counterfactual Explanations via Label-Conditional Gaussian Mixture Variational Autoencoderscited by 1
  28. 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanationscited by 1
  29. 2026Explanations Leak: Membership Inference with Differential Privacy and Active Learning Defensecited by 1
  30. 2026DISCOVER: A Solver for Distributional Counterfactual Explanationscited by 1
  31. 2022ComplAI: Theory of A Unified Framework for Multi-factor Assessment of Black-Box Supervised Machine Learning Modelscited by 0
  32. 2023Learning impartial policies for sequential counterfactual explanations using Deep Reinforcement Learningcited by 0
  33. 2024iSee: Advancing Multi-Shot Explainable AI Using Case-based Recommendationscited by 0
  34. 2024Private Counterfactual Retrieval With Immutable Featurescited by 0
  35. 2025Designing User-Centric Metrics for Evaluation of Counterfactual Explanationscited by 0
  36. 2025What If, But Privately: Private Counterfactual Retrievalcited by 0
  37. 2025RealAC: A Domain-Agnostic Framework for Realistic and Actionable Counterfactual Explanationscited by 0
  38. 2025A Hybrid Enumeration Framework for Optimal Counterfactual Generation in Post-Acute COVID-19 Heart Failurecited by 0

50 most cited of 62 All 62 (JSON)