GeCo: Quality Counterfactual Explanations in Real Time
Not on the map. Why?
Abstract (arXiv)
Machine learning is increasingly applied in high-stakes decision making that directly affect people's lives, and this leads to an increased demand for systems to explain their decisions. Explanations often take the form of counterfactuals, which consists of conveying to the end user what she/he needs to change in order to improve the outcome. Computing counterfactual explanations is challenging, because of the inherent tension between a rich semantics of the domain, and the need for real time response. In this paper we present GeCo, the first system that can compute plausible and feasible counterfactual explanations in real time. At its core, GeCo relies on a genetic algorithm, which is customized to favor searching counterfactual explanations with the smallest number of changes. To achieve real-time performance, we introduce two novel optimizations: Delta-representation of candidate counterfactuals, and partial evaluation of the classifier. We compare empirically GeCo against five other systems described in the literature, and show that it is the only system that can achieve both high quality explanations and real time answers.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 19 of its 42 references that are in the map. First posted on arXiv 5 Jan 2021.
Builds on
19 of 42 references.
References · 19
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2019TabNet: Attentive Interpretable Tabular Learningcited by 640
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2019Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methodscited by 440
- 2018Actionable Recourse in Linear Classificationcited by 327
- 2019Simple Black-box Adversarial Attackscited by 249
- 2019Explainable Machine Learning in Deploymentcited by 210
7 more
- 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
- 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
- 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
- 2019Declarative Recursive Computation on an RDBMS, or, Why You Should Use a Database For Distributed Machine Learningcited by 12
- 2019A Layered Aggregate Engine for Analytics Workloadscited by 12
- 2020MLJ: A Julia package for composable machine learningcited by 9
- 2016Building Efficient Query Engines in a High-Level Languagecited by 6
Built on by
Citing papers per year: 2021: 5; 2022: 4; 2023: 7; 2024: 6; 2025: 6; 2026: 4.
32 papers.
Sort:
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
- 2023Even if Explanations: Prior Work, Desiderata & Benchmarks for Semi-Factual XAIcited by 20
- 2022Motif-guided Time Series Counterfactual Explanationscited by 12
- 2022Keep Your Friends Close and Your Counterfactuals Closer: Improved Learning From Closest Rather Than Plausible Counterfactual Explanations in an Abstract Settingcited by 11
- 2023Achieving Diversity in Counterfactual Explanations: a Review and Discussioncited by 11
- 2023GAM Coach: Towards Interactive and User-centered Algorithmic Recoursecited by 9
- 2021Solving the Class Imbalance Problem Using a Counterfactual Method for Data Augmentationcited by 8
- 2022FASTER-CE: Fast, Sparse, Transparent, and Robust Counterfactual Explanationscited by 6
- 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?cited by 5
- 2022Computing Rule-Based Explanations by Leveraging Counterfactualscited by 4
- 2023Disagreement amongst counterfactual explanations: How transparency can be deceptivecited by 3
20 more
- 2024Guiding the generation of counterfactual explanations through temporal background knowledge for Predictive Process Monitoringcited by 3
- 2025Generating Counterfactual Explanations Under Temporal Constraintscited by 3
- 2021Handling Climate Change Using Counterfactuals: Using Counterfactuals in Data Augmentation to Predict Crop Growth in an Uncertain Climate Futurecited by 2
- 2023counterfactuals: An R Package for Counterfactual Explanation Methodscited by 2
- 2023Evolutionary approaches to explainable machine learningcited by 2
- 2024Longitudinal Counterfactuals: Constraints and Opportunitiescited by 2
- 2024Evolutionary Computation and Explainable AI: A Roadmap to Understandable Intelligent Systemscited by 2
- 2025DiCoFlex: Model-agnostic diverse counterfactuals with flexible controlcited by 2
- 2021TrustyAI Explainability Toolkitcited by 1
- 2023Iterative Partial Fulfillment of Counterfactual Explanations: Benefits and Riskscited by 1
- 2024Model-Based Counterfactual Explanations Incorporating Feature Space Attributes for Tabular Datacited by 1
- 2024Case-based Explainability for Random Forest: Prototypes, Critics, Counter-factuals and Semi-factualscited by 1
- 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objectscited by 1
- 2025Augmenting The Weather: A Hybrid Counterfactual-SMOTE Algorithm for Improving Crop Growth Prediction When Climate Changescited by 1
- 2026Navigating Time's Possibilities: Plausible Counterfactual Explanations for Multivariate Time-Series Forecast through Genetic Algorithmscited by 1
- 2026Towards Counterfactual Explanation and Assertion Inference for CPS Debuggingcited by 1
- 2025Model-Free Counterfactual Subset Selection at Scalecited by 0
- 2025A Novel Multi-Objective Evolutionary Algorithm for Counterfactual Generationcited by 0
- 2026GradCFA: A Hybrid Gradient-Based Counterfactual and Feature Attribution Explanation Algorithm for Local Interpretation of Neural Networkscited by 0
- 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generationcited by 0
- 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generation30 Jul 2026
- 2026Towards Counterfactual Explanation and Assertion Inference for CPS Debugging9 Apr 2026
- 2026GradCFA: A Hybrid Gradient-Based Counterfactual and Feature Attribution Explanation Algorithm for Local Interpretation of Neural Networks16 Mar 2026
- 2026Navigating Time's Possibilities: Plausible Counterfactual Explanations for Multivariate Time-Series Forecast through Genetic Algorithms1 Mar 2026
- 2025Augmenting The Weather: A Hybrid Counterfactual-SMOTE Algorithm for Improving Crop Growth Prediction When Climate Changes14 Nov 2025
- 2025DiCoFlex: Model-agnostic diverse counterfactuals with flexible control29 May 2025
- 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objects9 May 2025
- 2025Generating Counterfactual Explanations Under Temporal Constraints3 Mar 2025
- 2025Model-Free Counterfactual Subset Selection at Scale12 Feb 2025
- 2025A Novel Multi-Objective Evolutionary Algorithm for Counterfactual Generation3 Feb 2025
- 2024Case-based Explainability for Random Forest: Prototypes, Critics, Counter-factuals and Semi-factuals13 Aug 2024
- 2024Evolutionary Computation and Explainable AI: A Roadmap to Understandable Intelligent Systems12 Jun 2024
20 more
- 2024Model-Based Counterfactual Explanations Incorporating Feature Space Attributes for Tabular Data20 Apr 2024
- 2024Guiding the generation of counterfactual explanations through temporal background knowledge for Predictive Process Monitoring18 Mar 2024
- 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?1 Mar 2024
- 2024Longitudinal Counterfactuals: Constraints and Opportunities29 Feb 2024
- 2023Evolutionary approaches to explainable machine learning23 Jun 2023
- 2023Achieving Diversity in Counterfactual Explanations: a Review and Discussion10 May 2023
- 2023Disagreement amongst counterfactual explanations: How transparency can be deceptive25 Apr 2023
- 2023counterfactuals: An R Package for Counterfactual Explanation Methods13 Apr 2023
- 2023Iterative Partial Fulfillment of Counterfactual Explanations: Benefits and Risks17 Mar 2023
- 2023GAM Coach: Towards Interactive and User-centered Algorithmic Recourse27 Feb 2023
- 2023Even if Explanations: Prior Work, Desiderata & Benchmarks for Semi-Factual XAI27 Jan 2023
- 2022Motif-guided Time Series Counterfactual Explanations8 Nov 2022
- 2022Computing Rule-Based Explanations by Leveraging Counterfactuals31 Oct 2022
- 2022FASTER-CE: Fast, Sparse, Transparent, and Robust Counterfactual Explanations12 Oct 2022
- 2022Keep Your Friends Close and Your Counterfactuals Closer: Improved Learning From Closest Rather Than Plausible Counterfactual Explanations in an Abstract Setting11 May 2022
- 2021Solving the Class Imbalance Problem Using a Counterfactual Method for Data Augmentation5 Nov 2021
- 2021TrustyAI Explainability Toolkit26 Apr 2021
- 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanations15 Apr 2021
- 2021Handling Climate Change Using Counterfactuals: Using Counterfactuals in Data Augmentation to Predict Crop Growth in an Uncertain Climate Future8 Apr 2021
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniques26 Feb 2021
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
- 2023Even if Explanations: Prior Work, Desiderata & Benchmarks for Semi-Factual XAIcited by 20
- 2022Motif-guided Time Series Counterfactual Explanationscited by 12
- 2022Keep Your Friends Close and Your Counterfactuals Closer: Improved Learning From Closest Rather Than Plausible Counterfactual Explanations in an Abstract Settingcited by 11
- 2023Achieving Diversity in Counterfactual Explanations: a Review and Discussioncited by 11
- 2023GAM Coach: Towards Interactive and User-centered Algorithmic Recoursecited by 9
- 2021Solving the Class Imbalance Problem Using a Counterfactual Method for Data Augmentationcited by 8
- 2022FASTER-CE: Fast, Sparse, Transparent, and Robust Counterfactual Explanationscited by 6
- 2024Even-Ifs From If-Onlys: Are the Best Semi-Factual Explanations Found Using Counterfactuals As Guides?cited by 5
- 2022Computing Rule-Based Explanations by Leveraging Counterfactualscited by 4
- 2023Disagreement amongst counterfactual explanations: How transparency can be deceptivecited by 3
12 most cited of 32 All 32 (JSON)
- 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generation30 Jul 2026
- 2026Towards Counterfactual Explanation and Assertion Inference for CPS Debugging9 Apr 2026
- 2026GradCFA: A Hybrid Gradient-Based Counterfactual and Feature Attribution Explanation Algorithm for Local Interpretation of Neural Networks16 Mar 2026
- 2026Navigating Time's Possibilities: Plausible Counterfactual Explanations for Multivariate Time-Series Forecast through Genetic Algorithms1 Mar 2026
- 2025Augmenting The Weather: A Hybrid Counterfactual-SMOTE Algorithm for Improving Crop Growth Prediction When Climate Changes14 Nov 2025
- 2025DiCoFlex: Model-agnostic diverse counterfactuals with flexible control29 May 2025
- 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objects9 May 2025
- 2025Generating Counterfactual Explanations Under Temporal Constraints3 Mar 2025
- 2025Model-Free Counterfactual Subset Selection at Scale12 Feb 2025
- 2025A Novel Multi-Objective Evolutionary Algorithm for Counterfactual Generation3 Feb 2025
- 2024Case-based Explainability for Random Forest: Prototypes, Critics, Counter-factuals and Semi-factuals13 Aug 2024
- 2024Evolutionary Computation and Explainable AI: A Roadmap to Understandable Intelligent Systems12 Jun 2024
12 newest of 32 All 32 (JSON)