Abstract
Machine learning models now influence decisions that directly affect people's lives, making it important to understand not only their predictions, but also how individuals could act to obtain better results. Algorithmic recourse provides actionable input modifications to achieve more favorable outcomes, typically relying on counterfactual explanations to suggest such changes. However, when the Rashomon set - the set of near-optimal models - is large, standard counterfactual explanations can become unreliable, as a recourse action valid for one model may fail under another. We introduce ElliCE, a novel framework for robust algorithmic recourse that optimizes counterfactuals over an ellipsoidal approximation of the Rashomon set. The resulting explanations are provably valid over this ellipsoid, with theoretical guarantees on uniqueness, stability, and alignment with key feature directions. Empirically, ElliCE generates counterfactuals that are not only more robust but also more flexible, adapting to user-specified feature constraints while being substantially faster than existing baselines. This provides a principled and practical solution for reliable recourse under model uncertainty, ensuring stable recommendations for users even as models evolve.
Introduction
When a machine learning model denies a loan application, algorithmic recourse offers a path forward by providing a "counterfactual explanation" (CE)—a specific set of changes (e.g., "increase income by $5,000") that would flip the decision. However, these recommendations are often fragile. The Rashomon Effect implies that many different models can achieve near-optimal accuracy on the same dataset while employing different internal logic. If a model is retrained or updated, a previously valid recommendation might no longer suffice. This "explanation multiplicity" makes standard recourse unreliable for end-users.
The ElliCE Framework
To ensure recommendations survive model updates, they must be valid for all models within the "Rashomon set" of near-optimal candidates. Since computing this set exactly is intractable, the authors propose ElliCE, which utilizes an ellipsoidal approximation of the Rashomon set based on the Hessian matrix of the model's loss landscape.
By leveraging this geometric approximation, ElliCE derives a closed-form expression for the worst-case model within the ellipsoid. This transforms a complex min-max problem into a tractable, convex Quadratically Constrained Quadratic Program (QCQP). ElliCE identifies the minimal input modification that satisfies the target threshold even under this worst-case scenario. The framework is versatile, supporting both "Continuous" recourse (via gradient-based optimization) and "Data-supported" recourse (finding existing robust points in the training data), while respecting real-world constraints like immutable features and sparsity.
Theoretical and Practical Insights
ElliCE provides several key theoretical guarantees:
- Alignment with Feature Importance: Robustness is achieved by aligning counterfactual directions with the principal axes of the loss landscape's curvature.
- Uniqueness: The strict convexity of the optimization problem ensures a single, unique recommendation for any given input.
- Stability: The process is mathematically proven to be Lipschitz continuous, meaning small noise in input data results in only minor shifts in the recommended recourse.
- Robustness-Proximity Trade-off: There is a formal trade-off; higher robustness requires larger feature changes to ensure validity across a wider range of potential models.
Experimental Evaluation
ElliCE was evaluated on nine high-stakes tabular datasets, including FICO, Diabetes, and COMPAS. It demonstrated significant performance gains over baselines such as PROPLACE, ROAR, and T:Rex.
As shown in the figure above, ElliCE consistently maintains near 100% validity across different evaluation strategies, even as model uncertainty increases. Furthermore, ElliCE is 1 to 3 orders of magnitude faster than competing robust baselines, with runtimes typically under 2 seconds per explanation. Despite the increased distance required for robustness, the generated counterfactuals remain plausible and realistic according to Local Outlier Factor (LOF) scores.
Conclusion and Future Work
ElliCE offers a principled and efficient solution for reliable algorithmic recourse. While the current framework relies on local curvature—which might miss global model multiplicity in deep neural networks—it provides a robust foundation for stable recommendations. Future research will explore extending these guarantees to the raw input space of deep models and addressing the fair distribution of recourse costs across demographic groups.
Summary updated