Abstract
Counterfactual explanations (CEs) are advocated as being ideally suited to providing algorithmic recourse for subjects affected by the predictions of machine learning models. While CEs can be beneficial to affected individuals, recent work has exposed severe issues related to the robustness of state-of-the-art methods for obtaining CEs. Since a lack of robustness may compromise the validity of CEs, techniques to mitigate this risk are in order. In this survey, we review works in the rapidly growing area of robust CEs and perform an in-depth analysis of the forms of robustness they consider. We also discuss existing solutions and their limitations, providing a solid foundation for future developments.
Introduction
In the realm of Explainable AI (XAI), Counterfactual Explanations (CEs) have emerged as a primary tool for providing algorithmic recourse. For instance, if a loan application is rejected by an automated system, a CE might suggest: "If your income were £5,000 higher, your loan would have been approved." However, these explanations are often fragile. Small changes in the underlying model or slight inaccuracies in how a user implements the suggested change can render the explanation invalid. This lack of robustness undermines the reliability of recourse and trust in AI systems. This paper provides a systematic framework to classify and analyze the emerging literature dedicated to making CEs stable under varying conditions.
A Taxonomy of Robustness
The survey categorizes robust CE methods based on the specific "threat" or change they address. This taxonomy is essential for understanding the different technical challenges involved in ensuring reliable recourse.
- Model Changes (MC): Focuses on ensuring a CE remains valid even if the model is retrained on new data or its parameters are slightly adjusted.
- Model Multiplicity (MM): Addresses the "Rashomon Effect," where multiple models achieve similar accuracy on the same task but may provide different explanations. Robustness here ensures a CE works across these competing models.
- Noisy Execution (NE): Accounts for the reality that users may not be able to perfectly implement suggested changes (e.g., a slight "jitter" in feature values). The CE must remain valid within a certain neighborhood of the target point.
- Input Changes (IC): Ensures consistency, meaning that two very similar individuals should receive similar explanations. This is often linked to algorithmic fairness.
Methodological Landscape
Researchers employ a variety of computational strategies to achieve these different forms of robustness. These range from formal methods like Mixed-Integer Programming (MIP) and Satisfiability (SAT) solvers, which can provide deterministic guarantees, to gradient-based optimization and probabilistic modeling.
As shown in the table above, the field is diverse, with a significant concentration of research on Model Changes (MC). Methods providing formal guarantees (marked as 'Det.' in the Guarantee column) often rely on MIP but are typically limited to smaller or linear models due to computational complexity. Conversely, gradient-based (GD) methods are more scalable but often lack hard guarantees.
Key Insights and Trade-offs
Several critical themes emerge from the analysis of robust CE literature:
- The Cost-Robustness Trade-off: There is an inherent "no free lunch" rule. To make an explanation more robust—for example, by moving the counterfactual further from the decision boundary—the required change (the "cost" to the user) typically increases.
- Plausibility and Robustness: Explanations that reside on the "data manifold" (resembling real, typical data points) tend to be more robust than those that are merely mathematical artifacts. This suggests that plausibility is a strong proxy for stability.
- Robustness as Fairness: Robustness against input changes is deeply intertwined with fairness. If a system provides wildly different advice to nearly identical individuals, it is not only unstable but potentially discriminatory.
Current Limitations and Future Directions
Despite rapid progress, several gaps remain in the field of robust recourse:
- Standardization: There is a lack of standardized benchmarks for evaluating robustness, making it difficult to compare algorithms fairly. Tools like the CARLA library are a step in the right direction but need wider adoption.
- Human-Centric Evaluation: Most robustness metrics are purely mathematical. Future research must determine if these definitions align with what human users actually find helpful or reliable in real-world scenarios.
- Unified Robustness: Most current methods address only one type of robustness. Developing explanations that are simultaneously robust to model changes, noise, and multiplicity remains a significant challenge.
- Scalability to Complex Models: While robustness in linear models is well-understood, providing formal guarantees for deep neural networks or complex tree ensembles is an ongoing area of research.
By categorizing the current landscape and identifying these gaps, this survey provides a foundation for developing more reliable and trustworthy algorithmic recourse systems.
Summary updated