[Paper Review] CARLA: A Python Library to Benchmark Algorithmic Recourse and Counterfactual Explanation Algorithms
CARLA is a Python library that benchmarks counterfactual explanations and recourse methods across datasets and models, providing standardized evaluations and baselines.
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.
Motivation & Objective
- Provide a standardized benchmarking framework for counterfactual explanations and algorithmic recourse.
- Offer competitive baselines for multiple recourse methods across common datasets.
- Enable easy integration of new methods and models within a unified Python library.
- Support integrated evaluation measures and compatibility with popular ML frameworks.
- Promote transparent, reproducible comparisons to advance recourse research.
Proposed method
- Benchmark 11 counterfactual methods across multiple datasets and models.
- Use a generative model approach to handle correlated inputs via latent representations.
- Provide a common set of evaluation metrics (costs, constraint violations, yNN, redundancy, success, time).
- Support integration with TensorFlow and PyTorch through a generic abstraction layer.
- Allow problem-specific constraints like immutable features and feature ranges.
- Include an open-source repository with instructions for extending CARLA with new methods.
Experimental results
Research questions
- RQ1What is the performance of existing counterfactual explanation methods across standardized datasets and models?
- RQ2How do independence-based and dependence-based recourse methods compare under consistent evaluation metrics?
- RQ3Can a common benchmarking framework yield fair, transparent comparisons and baselines for future methods?
- RQ4How do immutable features and correlated inputs affect recourse quality and feasibility?
- RQ5What data sets and metrics best support reproducible benchmarking in explainable AI?
Key findings
- CARLA enables extensive benchmarking and reveals that no single independence-based method dominates across all measures.
- CEM often achieves strong overall cost (ell1) performance, while Growing Spheres excels in speed (time).
- Dependence-based methods (e.g., CLUE, REVISE) balance cost and data-support metrics, with varying redundancy.
- Generative models (CEM-VAE, CLUE, REVISE) offer favorable time performance due to amortized decoding costs.
- Carla provides competitive baselines and highlights trade-offs between proximity, feasibility, and diversity of counterfactuals.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.