NICE: An Algorithm for Nearest Instance Counterfactual Explanations
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
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,543
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
- 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2018A Survey Of Methods For Explaining Black Box Modelscited by 970
- 2018This Looks Like That: Deep Learning for Interpretable Image Recognitioncited by 731
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2019Unmasking Clever Hans Predictors and Assessing What Machines Really Learncited by 359
- 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
24 more
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
- 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
- 2020Multi-Objective Counterfactual Explanationscited by 157
- 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
- 2017PMLB: A Large Benchmark Suite for Machine Learning Evaluation and Comparisoncited by 139
- 2019Towards Realistic Individual Recourse and Actionable Explanations in Black-Box Decision Making Systemscited by 128
- 2021What Do We Want From Explainable Artificial Intelligence (XAI)? -- A Stakeholder Perspective on XAI and a Conceptual Model Guiding Interdisciplinary XAI Researchcited by 119
- 2020A survey of algorithmic recourse: definitions, formulations, solutions, and prospectscited by 118
- 2019The Hidden Assumptions Behind Counterfactual Explanations and Principal Reasonscited by 115
- 2019Explainability Fact Sheets: A Framework for Systematic Assessment of Explainable Approachescited by 101
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2020Good Counterfactuals and Where to Find Them: A Case-Based Technique for Generating Counterfactuals for Explainable AI (XAI)cited by 79
- 2020On Counterfactual Explanations under Predictive Multiplicitycited by 73
- 2020Towards Unifying Feature Attribution and Counterfactual Explanations: Different Means to the Same Endcited by 66
- 2020Instance-based Counterfactual Explanations for Time Series Classificationcited by 64
- 2017Inverse Classification for Comparison-based Interpretability in Machine Learningcited by 49
- 2018The Challenge of Crafting Intelligible Intelligencecited by 46
- 2019Model Agnostic Contrastive Explanations for Structured Datacited by 41
- 2021GeCo: Quality Counterfactual Explanations in Real Timecited by 32
- 2019Explaining Models: An Empirical Study of How Explanations Impact Fairness Judgmentcited by 31
- 2019Counterfactual Explanation Algorithms for Behavioral and Textual Datacited by 26
- 2020Explaining Data-Driven Decisions made by AI Systems: The Counterfactual Approachcited by 26
- 2018On Cognitive Preferences and the Plausibility of Rule-based Modelscited by 14
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 13; 2024: 16; 2025: 13; 2026: 17.
62 papers.
Sort:
By area:
- 2022The privacy issue of counterfactual explanations: explanation linkage attackscited by 20
- 2023Recourse under Model Multiplicity via Argumentative Ensembling (Technical Report)cited by 15
- 2023Generating robust counterfactual explanationscited by 13
- 2024GraphXAIN: Narratives to Explain Graph Neural Networkscited by 11
- 2023Explaining Groups of Instances Counterfactually for XAI: A Use Case, Algorithm and User Study for Group-Counterfactualscited by 9
- 2023Generating collective counterfactual explanations in score-based classification via mathematical optimizationcited by 9
- 2021MCCE: Monte Carlo sampling of realistic counterfactual explanationscited by 7
- 2024Interval Abstractions for Robust Counterfactual Explanationscited by 7
- 2024Distributional Counterfactual Explanations With Optimal Transportcited by 6
- 2024A Survey of Privacy-Preserving Model Explanations: Privacy Risks, Attacks, and Countermeasurescited by 6
- 2025RobustX: Robust Counterfactual Explanations Made Easycited by 6
- 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanationscited by 5
38 more
- 2023Privacy-Preserving Algorithmic Recoursecited by 5
- 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?cited by 5
- 2024CountARFactuals -- Generating plausible model-agnostic counterfactual explanations with adversarial random forestscited by 5
- 2024Use of What-if Scenarios to Help Explain Artificial Intelligence Models for Neonatal Healthcited by 5
- 2025GlyTwin: Digital Twin for Glucose Control in Type 1 Diabetes Through Optimal Behavioral Modifications Using Patient-Centric Counterfactualscited by 5
- 2023Disagreement amongst counterfactual explanations: How transparency can be deceptivecited by 3
- 2024Heterogeneous Graph Neural Networks with Post-hoc Explanations for Multi-modal and Explainable Land Use Inferencecited by 3
- 2025Local MDI+: Local Feature Importances for Tree-Based Modelscited by 3
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
- 2023counterfactuals: An R Package for Counterfactual Explanation Methodscited by 2
- 2023Unveiling the Potential of Counterfactuals Explanations in Employabilitycited by 2
- 2023Calculating and Visualizing Counterfactual Feature Importance Valuescited by 2
- 2023Viewing the process of generating counterfactuals as a source of knowledge: a new approach for explaining classifierscited by 2
- 2023Towards Feasible Counterfactual Explanations: A Taxonomy Guided Template-based NLG Methodcited by 2
- 2024Generally-Occurring Model Change for Robust Counterfactual Explanationscited by 2
- 2024Private Counterfactual Retrievalcited by 2
- 2025Enhancing Metabolic Syndrome Prediction with Hybrid Data Balancing and Counterfactualscited by 2
- 2026ElliCE: Efficient and Provably Robust Algorithmic Recourse via the Rashomon Setscited by 2
- 2024Overlap Number of Balls Model-Agnostic CounterFactuals (ONB-MACF): A Data-Morphology-based Counterfactual Generation Method for Trustworthy Artificial Intelligencecited by 1
- 2024Explainable bank failure prediction models: Counterfactual explanations to reduce the failure riskcited by 1
- 2024ProxiMix: Enhancing Fairness with Proximity Samples in Subgroupscited by 1
- 2024Info-CELS: Informative Saliency Map Guided Counterfactual Explanationcited by 1
- 2025Explainability-Driven Quality Assessment for Rule-Based Systemscited by 1
- 2025Argumentative Ensembling for Robust Recourse under Model Multiplicitycited by 1
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentationcited by 1
- 2025Out-of-Distribution Detection using Counterfactual Distancecited by 1
- 2025Synthesising Counterfactual Explanations via Label-Conditional Gaussian Mixture Variational Autoencoderscited by 1
- 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanationscited by 1
- 2026Explanations Leak: Membership Inference with Differential Privacy and Active Learning Defensecited by 1
- 2026DISCOVER: A Solver for Distributional Counterfactual Explanationscited by 1
- 2022ComplAI: Theory of A Unified Framework for Multi-factor Assessment of Black-Box Supervised Machine Learning Modelscited by 0
- 2023Learning impartial policies for sequential counterfactual explanations using Deep Reinforcement Learningcited by 0
- 2024iSee: Advancing Multi-Shot Explainable AI Using Case-based Recommendationscited by 0
- 2024Private Counterfactual Retrieval With Immutable Featurescited by 0
- 2025Designing User-Centric Metrics for Evaluation of Counterfactual Explanationscited by 0
- 2025What If, But Privately: Private Counterfactual Retrievalcited by 0
- 2025RealAC: A Domain-Agnostic Framework for Realistic and Actionable Counterfactual Explanationscited by 0
- 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)
- 2026FCA-Guided Counterfactual Explanations for Multi-Modal Breast Cancer Diagnosis: A Framework Achieving Perfect Validity with Emergent Sparsity17 Sep 2026
- 2026Explanations-Driven Active Feature Acquisition for Algorithmic Recourse10 Sep 2026
- 2026Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recourse31 Aug 2026
- 2026From Multimodal Observation to Interpretable Suggestions: Counterfactual Time-Expanded Relational Modeling of Surgical Teams24 Aug 2026
- 2026Leaf Values as Coordinates: Exact Contrastive Explanation for Gradient-Boosted Ensembles19 Aug 2026
- 2026Trustworthy AI in Digital Health: A Comprehensive Review of Robustness and Explainability3 Aug 2026
- 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generation30 Jul 2026
- 2026MetaPlate: Counterfactual-Guided RAG-LLM Tool for Personalized Food Recommendation and Hyperglycemia Prevention8 Jun 2026
- 2026Quantifying the Privacy of Counterfactuals by Leveraging Membership Inference Attacks Against Synthetic Data4 Jun 2026
- 2026Density-Guided Robust Counterfactual Explanations on Tabular Data under Model Multiplicity29 May 2026
- 2026Evaluating Counterfactual Explanation Methods on Incomplete Inputs9 Apr 2026
- 2026DISCOVER: A Solver for Distributional Counterfactual Explanations17 Mar 2026
38 more
- 2026ElliCE: Efficient and Provably Robust Algorithmic Recourse via the Rashomon Sets7 Feb 2026
- 2026Explanations Leak: Membership Inference with Differential Privacy and Active Learning Defense3 Feb 2026
- 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanations28 Jan 2026
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation21 Jan 2026
- 2026On the Definition and Detection of Cherry-Picking in Counterfactual Explanations8 Jan 2026
- 2025A Hybrid Enumeration Framework for Optimal Counterfactual Generation in Post-Acute COVID-19 Heart Failure21 Oct 2025
- 2025Synthesising Counterfactual Explanations via Label-Conditional Gaussian Mixture Variational Autoencoders6 Oct 2025
- 2025RealAC: A Domain-Agnostic Framework for Realistic and Actionable Counterfactual Explanations14 Aug 2025
- 2025Out-of-Distribution Detection using Counterfactual Distance13 Aug 2025
- 2025What If, But Privately: Private Counterfactual Retrieval5 Aug 2025
- 2025Designing User-Centric Metrics for Evaluation of Counterfactual Explanations20 Jul 2025
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentation7 Jul 2025
- 2025Argumentative Ensembling for Robust Recourse under Model Multiplicity25 Jun 2025
- 2025Local MDI+: Local Feature Importances for Tree-Based Models10 Jun 2025
- 2025GlyTwin: Digital Twin for Glucose Control in Type 1 Diabetes Through Optimal Behavioral Modifications Using Patient-Centric Counterfactuals14 Apr 2025
- 2025Enhancing Metabolic Syndrome Prediction with Hybrid Data Balancing and Counterfactuals9 Apr 2025
- 2025RobustX: Robust Counterfactual Explanations Made Easy19 Feb 2025
- 2025Explainability-Driven Quality Assessment for Rule-Based Systems3 Feb 2025
- 2024Private Counterfactual Retrieval With Immutable Features15 Nov 2024
- 2024GraphXAIN: Narratives to Explain Graph Neural Networks4 Nov 2024
- 2024Info-CELS: Informative Saliency Map Guided Counterfactual Explanation27 Oct 2024
- 2024Private Counterfactual Retrieval17 Oct 2024
- 2024Use of What-if Scenarios to Help Explain Artificial Intelligence Models for Neonatal Health12 Oct 2024
- 2024ProxiMix: Enhancing Fairness with Proximity Samples in Subgroups2 Oct 2024
- 2024iSee: Advancing Multi-Shot Explainable AI Using Case-based Recommendations23 Aug 2024
- 2024Generally-Occurring Model Change for Robust Counterfactual Explanations16 Jul 2024
- 2024Explainable bank failure prediction models: Counterfactual explanations to reduce the failure risk14 Jul 2024
- 2024Heterogeneous Graph Neural Networks with Post-hoc Explanations for Multi-modal and Explainable Land Use Inference19 Jun 2024
- 2024Overlap Number of Balls Model-Agnostic CounterFactuals (ONB-MACF): A Data-Morphology-based Counterfactual Generation Method for Trustworthy Artificial Intelligence20 May 2024
- 2024Interval Abstractions for Robust Counterfactual Explanations21 Apr 2024
- 2024CountARFactuals -- Generating plausible model-agnostic counterfactual explanations with adversarial random forests4 Apr 2024
- 2024A Survey of Privacy-Preserving Model Explanations: Privacy Risks, Attacks, and Countermeasures31 Mar 2024
- 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?1 Mar 2024
- 2024Distributional Counterfactual Explanations With Optimal Transport23 Jan 2024
- 2023Recourse under Model Multiplicity via Argumentative Ensembling (Technical Report)22 Dec 2023
- 2023Privacy-Preserving Algorithmic Recourse23 Nov 2023
- 2023Learning impartial policies for sequential counterfactual explanations using Deep Reinforcement Learning1 Nov 2023
- 2023Generating collective counterfactual explanations in score-based classification via mathematical optimization19 Oct 2023
50 newest of 62 All 62 (JSON)
- 2022The privacy issue of counterfactual explanations: explanation linkage attackscited by 20
- 2023Recourse under Model Multiplicity via Argumentative Ensembling (Technical Report)cited by 15
- 2023Generating robust counterfactual explanationscited by 13
- 2024GraphXAIN: Narratives to Explain Graph Neural Networkscited by 11
- 2023Explaining Groups of Instances Counterfactually for XAI: A Use Case, Algorithm and User Study for Group-Counterfactualscited by 9
- 2023Generating collective counterfactual explanations in score-based classification via mathematical optimizationcited by 9
- 2021MCCE: Monte Carlo sampling of realistic counterfactual explanationscited by 7
- 2024Interval Abstractions for Robust Counterfactual Explanationscited by 7
- 2024Distributional Counterfactual Explanations With Optimal Transportcited by 6
- 2024A Survey of Privacy-Preserving Model Explanations: Privacy Risks, Attacks, and Countermeasurescited by 6
- 2025RobustX: Robust Counterfactual Explanations Made Easycited by 6
- 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanationscited by 5
12 most cited of 60 All 60 (JSON)
- 2026FCA-Guided Counterfactual Explanations for Multi-Modal Breast Cancer Diagnosis: A Framework Achieving Perfect Validity with Emergent Sparsity17 Sep 2026
- 2026Explanations-Driven Active Feature Acquisition for Algorithmic Recourse10 Sep 2026
- 2026Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recourse31 Aug 2026
- 2026From Multimodal Observation to Interpretable Suggestions: Counterfactual Time-Expanded Relational Modeling of Surgical Teams24 Aug 2026
- 2026Leaf Values as Coordinates: Exact Contrastive Explanation for Gradient-Boosted Ensembles19 Aug 2026
- 2026Trustworthy AI in Digital Health: A Comprehensive Review of Robustness and Explainability3 Aug 2026
- 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generation30 Jul 2026
- 2026MetaPlate: Counterfactual-Guided RAG-LLM Tool for Personalized Food Recommendation and Hyperglycemia Prevention8 Jun 2026
- 2026Density-Guided Robust Counterfactual Explanations on Tabular Data under Model Multiplicity29 May 2026
- 2026Evaluating Counterfactual Explanation Methods on Incomplete Inputs9 Apr 2026
- 2026DISCOVER: A Solver for Distributional Counterfactual Explanations17 Mar 2026
- 2026ElliCE: Efficient and Provably Robust Algorithmic Recourse via the Rashomon Sets7 Feb 2026
12 newest of 60 All 60 (JSON)