Abstract
Algorithmic recourse is a process that leverages counterfactual explanations, going beyond understanding why a system produced a given classification, to providing a user with actions they can take to change their predicted outcome. Existing approaches to compute such interventions -- known as recourse -- identify a set of points that satisfy some desiderata -- e.g. an intervention in the underlying causal graph, minimizing a cost function, etc. Satisfying these criteria, however, requires extensive knowledge of the underlying model structure, an often unrealistic amount of information in several domains. We propose a data-driven and model-agnostic framework to compute counterfactual explanations. We introduce StEP, a computationally efficient method that offers incremental steps along the data manifold that directs users towards their desired outcome. We show that StEP uniquely satisfies a desirable set of axioms. Furthermore, via a thorough empirical and theoretical investigation, we show that StEP offers provable robustness and privacy guarantees while outperforming popular methods along important metrics.
Introduction
When an AI system denies a loan or a job application, the user naturally asks: "What can I do to change this?" This is the core of algorithmic recourse. Traditional solutions usually treat this as a complex optimization problem to find a single "counterfactual" point—a hypothetical version of the user that would have been accepted.
However, these methods often suffer from significant practical flaws. They frequently require access to model internals (like gradients) or perfect causal graphs, which are rarely available. Furthermore, they may suggest changes that are mathematically optimal but physically or socially impossible, such as reducing one's age. Finally, they assume users will follow recommendations perfectly, ignoring the reality that users might only be able to make partial or noisy changes. To address these issues, we introduce StEP (Stepwise Explainable Paths), a model-agnostic framework that provides incremental, data-driven directions for recourse.
The StEP Framework
StEP shifts the focus from finding a fixed destination to finding a viable direction. It is built on three core pillars:
- Model-Agnostic & Data-Driven: StEP only requires the training data and the model’s predictions. It functions effectively regardless of whether the underlying model is a neural network, a random forest, or a simple logistic regression.
- The "Weighted Pull" Algorithm: For a rejected user (the Point of Interest, or PoI), StEP calculates a direction by looking at successful examples in the dataset. It creates a weighted sum of vectors pointing toward "positive" data points. Points closer to the user are given more weight, ensuring the suggested path stays close to the actual data distribution (the manifold).
- Clustering for Diversity: To avoid suggesting a single "average" path that might lead off-manifold, StEP clusters successful data points first. It then offers the user $k$ different directions—one toward each cluster—providing diverse options such as "improve your credit score" versus "increase your savings."
Key Insights
Directions Over Points
By providing a direction rather than a fixed point, StEP enables an iterative process. If a user takes a partial step and remains rejected, they can request a new direction from their updated position. This makes the recourse process more flexible and less daunting for the user.
The Manifold as the Map
By basing directions on actual successful individuals in the data, the algorithm naturally avoids "impossible" suggestions. If no one in the dataset has a high income and zero education, the algorithm will not suggest that path, as there are no data points to "pull" the user in that direction.
Robustness and Privacy
One of the most compelling findings is StEP's robustness to "user interference." The method performs stably even when users do not follow directions perfectly; in fact, small amounts of stochasticity can help users move out of local minima in the decision space. Additionally, because the algorithm has bounded sensitivity, it can be made Differentially Private by adding a small amount of Gaussian noise, protecting the privacy of the individuals in the training set.
Experimental Results
StEP was evaluated against benchmarks like DiCE, FACE, and C-CHVAE on standard financial and demographic datasets (Credit Card Default, Give Me Some Credit, and UCI Adult).
- Success Rate: StEP achieved near 100% success in finding paths to positive outcomes, outperforming FACE and C-CHVAE in several scenarios.
- Proximity: StEP consistently found paths with lower $\ell_2$ distance than DiCE, meaning it suggested changes that required less effort from the user.
- Efficiency: As a closed-form calculation rather than an iterative optimization, StEP is significantly more computationally lightweight than its competitors.
Conclusion and Future Work
StEP provides a robust, private, and efficient framework for algorithmic recourse. While it currently relies on Euclidean distance metrics, future work will explore more intuitive human-centric metrics and more sophisticated handling of complex categorical relationships. A vital next step is ensuring group fairness, verifying that the "steps to success" are equally achievable for all protected groups.
Summary updated