Abstract
As machine learning models are increasingly deployed in high-stakes domains such as legal and financial decision-making, there has been growing interest in post-hoc methods for generating counterfactual explanations. Such explanations provide individuals adversely impacted by predicted outcomes (e.g., an applicant denied a loan) with recourse -- i.e., a description of how they can change their features to obtain a positive outcome. We propose a novel algorithm that leverages adversarial training and PAC confidence sets to learn models that theoretically guarantee recourse to affected individuals with high probability without sacrificing accuracy. We demonstrate the efficacy of our approach via extensive experiments on real data.
Introduction
Machine learning models often function as "black boxes" that provide binary decisions without guidance on how to reverse a negative outcome. In high-stakes scenarios like loan approvals or bail hearings, providing actionable recourse—a set of realistic feature changes an individual can make to flip a prediction—is essential for fairness and transparency.
Current post-hoc methods attempt to find recourse for pre-trained models. However, these models are typically optimized for accuracy, often resulting in decision boundaries that make recourse impossible or unrealistic. This paper proposes a paradigm shift: training models to ensure recourse exists by design.
Methodology
The proposed framework ensures models satisfy the PARE (Probably Approximately has REcourse) property through two primary mechanisms:
- Adversarial Training for Reachability: The authors adapt adversarial training objectives. Instead of ensuring robustness (where small changes do not change the label), the objective encourages the existence of "adversarial examples" (recourses) within a domain-specific set of actionable changes $\Delta$. For individuals with negative predictions, the model is pushed to ensure a positive outcome exists within their reach.
- PAC Confidence Sets for Calibration: To provide theoretical guarantees, the authors use Probably Approximately Correct (PAC) learning theory. By calibrating the decision threshold $\theta_0$ on a held-out set, they can theoretically guarantee that a target percentage of the population will have recourse with high statistical confidence.
The set $\Delta$ is constrained to respect real-world limitations (e.g., one cannot change their age or race), ensuring that the suggested recourse is practically achievable.
Experimental Results
The approach was evaluated on four real-world datasets: Adult Income, Compas, Bail, and German Credit.
Performance vs. Recourse Trade-offs
The weight of the recourse objective in the loss function, $\lambda$, allows for tuning the balance between model performance and the availability of recourse.
As shown in the figure above, increasing $\lambda$ generally leads to higher recourse rates (both for the whole population and specifically for those with negative outcomes) with relatively stable performance metrics until high values of $\lambda$ are reached.
Comparative Analysis
The proposed method ("Ours") was compared against standard baseline models across multiple metrics.
As detailed in the table, the "Ours" approach achieves massive gains in recourse rates. For instance, on the Compas and Bail datasets, recourse for negatively impacted individuals reached nearly 100% (using gradient descent or adversarial training search methods), compared to significantly lower or near-zero rates in baseline models. These gains were achieved with minimal impact on F1 scores and accuracy.
Discussion and Conclusion
By treating recourse as a primary training objective, models become inherently more useful to the individuals they affect. The results demonstrate that it is possible to provide strong recourse guarantees without significantly compromising predictive accuracy. Future work includes extending the framework to multi-class classification and regression tasks, as well as integrating more complex causal structures to ensure that suggested feature changes are not only actionable but also causally sound.
Summary updated