CARLA: A Python Library to Benchmark Algorithmic Recourse and Counterfactual Explanation Algorithms
Not on the map. Why?
Abstract (arXiv)
Counterfactual explanations provide means for prescriptive model explanations by suggesting actionable feature changes (e.g., increase income) that allow individuals to achieve favorable outcomes in the future (e.g., insurance approval). Choosing an appropriate method is a crucial aspect for meaningful counterfactual explanations. As documented in recent reviews, there exists a quickly growing literature with available methods. Yet, in the absence of widely available opensource implementations, the decision in favor of certain models is primarily based on what is readily available. Going forward - to guarantee meaningful comparisons across explanation methods - we present CARLA (Counterfactual And Recourse LibrAry), a python library for benchmarking counterfactual explanation methods across both different data sets and different machine learning models. In summary, our work provides the following contributions: (i) an extensive benchmark of 11 popular counterfactual explanation methods, (ii) a benchmarking framework for research on future counterfactual explanation methods, and (iii) a standardized set of integrated evaluation measures and data sets for transparent and extensive comparisons of these methods. We have open-sourced CARLA and our experimental results on Github, making them available as competitive baselines. We welcome contributions from other research groups and practitioners.
Key facts. Cited by 85 papers in the map (data through 7 Oct 2026). Builds on 38 of its 73 references that are in the map. First posted on arXiv 2 Aug 2021.
Builds on
38 of 73 references.
References · 38
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 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
- 2013Auto-Encoding Variational Bayescited by 3,980
- 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
- 2017Grad-CAM++: Improved Visual Explanations for Deep Convolutional Networkscited by 936
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2018Towards Robust Interpretability with Self-Explaining Neural Networkscited by 505
- 2018Actionable Recourse in Linear Classificationcited by 327
- 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
- 2020Algorithmic Recourse: from Counterfactual Explanations to Interventionscited by 250
26 more
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
- 2020Multi-Objective Counterfactual Explanationscited by 157
- 2018Handling Incomplete Heterogeneous Data using VAEscited by 148
- 2019Learning Model-Agnostic Counterfactual Explanations for Tabular Datacited by 146
- 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
- 2020Algorithmic recourse under imperfect causal knowledge: a probabilistic approachcited by 139
- 2018Explaining Explanations in AIcited by 136
- 2019Explaining Classifiers with Causal Concept Effect (CaCE)cited by 135
- 2019Towards Realistic Individual Recourse and Actionable Explanations in Black-Box Decision Making Systemscited by 128
- 2020A survey of algorithmic recourse: definitions, formulations, solutions, and prospectscited by 118
- 2019Efficient Search for Diverse Coherent Explanationscited by 111
- 2019The Dangers of Post-hoc Interpretability: Unjustified Counterfactual Explanationscited by 97
- 2020Getting a CLUE: A Method for Explaining Uncertainty Estimatescited by 92
- 2017Interpretable Predictions of Tree-based Ensembles via Actionable Feature Tweakingcited by 76
- 2020On Counterfactual Explanations under Predictive Multiplicitycited by 73
- 2020On Generating Plausible Counterfactual and Semi-Factual Explanations for Deep Learningcited by 60
- 2019Equalizing Recourse across Groupscited by 51
- 2017Inverse Classification for Comparison-based Interpretability in Machine Learningcited by 49
- 2020Generative causal explanations of black-box classifierscited by 41
- 2021Generating Interpretable Counterfactual Explanations By Implicit Minimisation of Epistemic and Aleatoric Uncertaintiescited by 41
- 2014Interpreting Tree Ensembles with inTreescited by 37
- 2019PRINCE: Provider-side Interpretability with Counterfactual Explanations in Recommender Systemscited by 35
- 2016Making Tree Ensembles Interpretable: A Bayesian Model Selection Approachcited by 27
- 2016Generalized Inverse Classificationcited by 22
- 2018A Gradient-Based Split Criterion for Highly Accurate and Transparent Model Treescited by 5
Built on by
Citing papers per year: 2021: 7; 2022: 17; 2023: 25; 2024: 18; 2025: 9; 2026: 9.
85 papers.
Sort:
By area:
- 2021Deep Neural Networks and Tabular Data: A Surveycited by 489
- 2023Data-centric Artificial Intelligence: A Surveycited by 202
- 2022OpenXAI: Towards a Transparent Evaluation of Model Explanationscited by 125
- 2021On the Adversarial Robustness of Causal Algorithmic Recoursecited by 56
- 2022Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic Recoursecited by 40
- 2021A Survey on the Robustness of Feature Importance and Counterfactual Explanationscited by 38
- 2022On the Privacy Risks of Algorithmic Recoursecited by 32
- 2024Robust Counterfactual Explanations in Machine Learning: A Surveycited by 29
- 2023GLOBE-CE: A Translation-Based Approach for Global Counterfactual Explanationscited by 27
- 2021Counterfactual Shapley Additive Explanationscited by 22
- 2022On the Trade-Off between Actionable Explanations and the Right to be Forgottencited by 20
- 2023Provably Robust and Plausible Counterfactual Explanations for Neural Networks via Robust Optimisationcited by 20
38 more
- 2021Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimatescited by 19
- 2022Robust Bayesian Recoursecited by 18
- 2023GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanationscited by 17
- 2024CEval: A Benchmark for Evaluating Counterfactual Text Generationcited by 15
- 2023Generating robust counterfactual explanationscited by 13
- 2023Distributionally Robust Recourse Actioncited by 12
- 2023Achieving Diversity in Counterfactual Explanations: a Review and Discussioncited by 11
- 2021Low-Cost Algorithmic Recourse for Users With Uncertain Cost Functionscited by 10
- 2023Towards Bridging the Gaps between the Right to Explanation and the Right to be Forgottencited by 10
- 2022Global Counterfactual Explanations: Investigations, Implementations and Improvementscited by 9
- 2022Let's Go to the Alien Zoo: Introducing an Experimental Framework to Study Usability of Counterfactual Explanations for Machine Learningcited by 9
- 2022Personalized Algorithmic Recourse with Preference Elicitationcited by 9
- 2023Endogenous Macrodynamics in Algorithmic Recoursecited by 9
- 2024Counterfactual Explanations via Riemannian Latent Space Traversalcited by 9
- 2022Counterfactual Explanations Using Optimization With Constraint Learningcited by 8
- 2023CeFlow: A Robust and Efficient Counterfactual Explanation Framework for Tabular Data using Normalizing Flowscited by 8
- 2023The Risks of Recourse in Binary Classificationcited by 8
- 2024Rethinking Explainable Machine Learning as Applied Statisticscited by 8
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAEcited by 8
- 2021MCCE: Monte Carlo sampling of realistic counterfactual explanationscited by 7
- 2024A multi-criteria approach for selecting an explanation from the set of counterfactuals produced by an ensemble of explainerscited by 7
- 2024Interval Abstractions for Robust Counterfactual Explanationscited by 7
- 2023Feasible Recourse Plan via Diverse Interpolationcited by 6
- 2024Generating Likely Counterfactuals Using Sum-Product Networkscited by 6
- 2025RobustX: Robust Counterfactual Explanations Made Easycited by 6
- 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanationscited by 5
- 2023Privacy-Preserving Algorithmic Recoursecited by 5
- 2023Faithful Model Explanations through Energy-Constrained Conformal Counterfactualscited by 5
- 2025From Search To Sampling: Generative Models For Robust Algorithmic Recoursecited by 5
- 2022Standardized Evaluation of Machine Learning Methods for Evolving Data Streamscited by 4
- 2022Computing Rule-Based Explanations by Leveraging Counterfactualscited by 4
- 2023Explaining Black-Box Models through Counterfactualscited by 4
- 2024Generating Feasible and Plausible Counterfactual Explanations for Outcome Prediction of Business Processescited by 4
- 2024Enhancing Counterfactual Explanation Search with Diffusion Distance and Directional Coherencecited by 4
- 2026What-If Explanations Over Time: Counterfactuals for Time Series Classificationcited by 4
- 2022TSInterpret: A unified framework for time series interpretabilitycited by 3
- 2023Explainable Predictive Maintenancecited by 3
- 2023XTSC-Bench: Quantitative Benchmarking for Explainers on Time Series Classificationcited by 3
50 most cited of 85 All 85 (JSON)
- 2026FCx: An algorithm for finding Feasible Counterfactual Explanations16 Sep 2026
- 2026Leaf Values as Coordinates: Exact Contrastive Explanation for Gradient-Boosted Ensembles19 Aug 2026
- 2026CEL: Comprehensive Counterfactual Explanations Library and Benchmark24 Jul 2026
- 2026Counterfactual Fragility Certificates: Exposing High-Confidence Brittleness under Structured Evidence Failure29 Jun 2026
- 2026Target-confidence Recourse Using tSeTlin machines: TRUST17 Jun 2026
- 2026RecourseBench: A Modular Framework for Reproducible Algorithmic Recourse Evaluation15 Jun 2026
- 2026Do Fair Models Reason Fairly? Counterfactual Explanation Consistency for Procedural Fairness in Credit Decisions12 May 2026
- 2026What-If Explanations Over Time: Counterfactuals for Time Series Classification29 Mar 2026
- 2026The Impact of Machine Learning Uncertainty on the Robustness of Counterfactual Explanations20 Jan 2026
- 2025Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification17 Nov 2025
- 2025CONFEX: Uncertainty-Aware Counterfactual Explanations with Conformal Guarantees22 Oct 2025
- 2025Synthesising Counterfactual Explanations via Label-Conditional Gaussian Mixture Variational Autoencoders6 Oct 2025
38 more
- 2025ACE: Adapting sampling for Counterfactual Explanations30 Sep 2025
- 2025An Explainable Gaussian Process Auto-encoder for Tabular Data31 Aug 2025
- 2025Tabular Diffusion Counterfactual Explanations31 Aug 2025
- 2025Tabular Diffusion based Actionable Counterfactual Explanations for Network Intrusion Detection23 Jul 2025
- 2025From Search To Sampling: Generative Models For Robust Algorithmic Recourse12 May 2025
- 2025RobustX: Robust Counterfactual Explanations Made Easy19 Feb 2025
- 2024Counterfactual Explanations via Riemannian Latent Space Traversal4 Nov 2024
- 2024Improving Decision Sparsity27 Oct 2024
- 2024Rethinking Distance Metrics for Counterfactual Explainability18 Oct 2024
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAE14 Oct 2024
- 2024Perfect Counterfactuals in Imperfect Worlds: Modelling Noisy Implementation of Actions in Sequential Algorithmic Recourse3 Oct 2024
- 2024Overlap Number of Balls Model-Agnostic CounterFactuals (ONB-MACF): A Data-Morphology-based Counterfactual Generation Method for Trustworthy Artificial Intelligence20 May 2024
- 2024CEval: A Benchmark for Evaluating Counterfactual Text Generation26 Apr 2024
- 2024Interval Abstractions for Robust Counterfactual Explanations21 Apr 2024
- 2024A Framework for Feasible Counterfactual Exploration incorporating Causality, Sparsity and Density20 Apr 2024
- 2024Enhancing Counterfactual Explanation Search with Diffusion Distance and Directional Coherence19 Apr 2024
- 2024A multi-criteria approach for selecting an explanation from the set of counterfactuals produced by an ensemble of explainers20 Mar 2024
- 2024Generating Feasible and Plausible Counterfactual Explanations for Outcome Prediction of Business Processes14 Mar 2024
- 2024Introducing User Feedback-based Counterfactual Explanations (UFCE)26 Feb 2024
- 2024Cost-Adaptive Recourse Recommendation by Adaptive Preference Elicitation23 Feb 2024
- 2024Collective Counterfactual Explanations: Balancing Individual Goals and Collective Dynamics7 Feb 2024
- 2024Rethinking Explainable Machine Learning as Applied Statistics5 Feb 2024
- 2024Robust Counterfactual Explanations in Machine Learning: A Survey2 Feb 2024
- 2024Generating Likely Counterfactuals Using Sum-Product Networks25 Jan 2024
- 2023Faithful Model Explanations through Energy-Constrained Conformal Counterfactuals17 Dec 2023
- 2023Privacy-Preserving Algorithmic Recourse23 Nov 2023
- 2023How Well Do Feature-Additive Explainers Explain Feature-Additive Predictors?27 Oct 2023
- 2023XTSC-Bench: Quantitative Benchmarking for Explainers on Time Series Classification23 Oct 2023
- 2023Local Universal Explainer (LUX) -- a rule-based explainer with factual, counterfactual and visual explanations23 Oct 2023
- 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanations2 Oct 2023
- 2023A PSO Based Method to Generate Actionable Counterfactuals for High Dimensional Data30 Sep 2023
- 2023Provably Robust and Plausible Counterfactual Explanations for Neural Networks via Robust Optimisation22 Sep 2023
- 2023Adaptive Adversarial Training Does Not Increase Recourse Costs5 Sep 2023
- 2023Towards User Guided Actionable Recourse5 Sep 2023
- 2023Endogenous Macrodynamics in Algorithmic Recourse16 Aug 2023
- 2023Explaining Black-Box Models through Counterfactuals14 Aug 2023
- 2023Explainable Predictive Maintenance8 Jun 2023
- 2023The Risks of Recourse in Binary Classification1 Jun 2023
50 newest of 85 All 85 (JSON)
- 2022On the Privacy Risks of Algorithmic Recoursecited by 32
- 2022On the Privacy Risks of Algorithmic Recourse10 Nov 2022
- 2021Deep Neural Networks and Tabular Data: A Surveycited by 489
- 2023Data-centric Artificial Intelligence: A Surveycited by 202
- 2022OpenXAI: Towards a Transparent Evaluation of Model Explanationscited by 125
- 2021On the Adversarial Robustness of Causal Algorithmic Recoursecited by 56
- 2022Probabilistically Robust Recourse: Navigating the Trade-offs between Costs and Robustness in Algorithmic Recoursecited by 40
- 2021A Survey on the Robustness of Feature Importance and Counterfactual Explanationscited by 38
- 2024Robust Counterfactual Explanations in Machine Learning: A Surveycited by 29
- 2023GLOBE-CE: A Translation-Based Approach for Global Counterfactual Explanationscited by 27
- 2021Counterfactual Shapley Additive Explanationscited by 22
- 2022On the Trade-Off between Actionable Explanations and the Right to be Forgottencited by 20
- 2023Provably Robust and Plausible Counterfactual Explanations for Neural Networks via Robust Optimisationcited by 20
- 2021Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimatescited by 19
12 most cited of 84 All 84 (JSON)
- 2026FCx: An algorithm for finding Feasible Counterfactual Explanations16 Sep 2026
- 2026Leaf Values as Coordinates: Exact Contrastive Explanation for Gradient-Boosted Ensembles19 Aug 2026
- 2026CEL: Comprehensive Counterfactual Explanations Library and Benchmark24 Jul 2026
- 2026Counterfactual Fragility Certificates: Exposing High-Confidence Brittleness under Structured Evidence Failure29 Jun 2026
- 2026Target-confidence Recourse Using tSeTlin machines: TRUST17 Jun 2026
- 2026RecourseBench: A Modular Framework for Reproducible Algorithmic Recourse Evaluation15 Jun 2026
- 2026Do Fair Models Reason Fairly? Counterfactual Explanation Consistency for Procedural Fairness in Credit Decisions12 May 2026
- 2026What-If Explanations Over Time: Counterfactuals for Time Series Classification29 Mar 2026
- 2026The Impact of Machine Learning Uncertainty on the Robustness of Counterfactual Explanations20 Jan 2026
- 2025Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification17 Nov 2025
- 2025CONFEX: Uncertainty-Aware Counterfactual Explanations with Conformal Guarantees22 Oct 2025
- 2025Synthesising Counterfactual Explanations via Label-Conditional Gaussian Mixture Variational Autoencoders6 Oct 2025
12 newest of 84 All 84 (JSON)