RoCourseNet: Distributionally Robust Training of a Prediction Aware Recourse Model

Hangzhi Guo, Feiran Jia, Jinghui Chen, Anna Cinzia Squicciarini, Amulya Yadav · DOI

Abstract

Counterfactual (CF) explanations are a cornerstone of human-centric machine learning, providing users with actionable "recourse" to reverse unfavorable algorithmic decisions. However, most existing CF methods assume the underlying model remains stationary. In practice, models are frequently retrained on new data, causing decision boundaries to shift and rendering previous recourse advice invalid. We introduce RoCourseNet, a training framework that jointly optimizes for predictive accuracy and recourse robustness. By formulating recourse generation as a tri-level adversarial optimization problem, RoCourseNet ensures that suggested changes remain valid even under future distributional shifts. Our experiments across three real-world datasets demonstrate that RoCourseNet achieves over 96% robust validity, outperforming state-of-the-art baselines by at least 10%.

Introduction

When an individual is denied a loan or a credit card by an automated system, they often ask: "What can I change to get a different result?" Algorithmic recourse provides the answer by identifying the minimum changes (e.g., "increase your income by $5,000") required to flip the prediction.

While highly effective in static environments, these explanations suffer from a critical flaw: model shift. If a bank updates its model between the time a user receives advice and the time they re-apply, the original recourse may no longer lead to approval. This instability undermines user trust and the practical utility of Explainable AI (XAI). RoCourseNet addresses this by integrating robustness directly into the model's training phase, rather than treating it as a post-hoc correction.

The RoCourseNet Framework

Tri-level Optimization

To account for future model updates, we frame the training process as a tri-level "min-max-min" optimization problem:

  1. Inner-most Minimization: Represents the model learning from shifted training data.
  2. Middle Maximization: Represents an "adversary" identifying the worst-case data shift that would most likely invalidate the current recourse.
  3. Outer-most Minimization: Represents the model designer's goal to find a model and a recourse generator that remain effective even under that worst-case shift.

Virtual Data Shift (VDS)

To solve this complex optimization, we developed the Virtual Data Shift (VDS) algorithm. VDS explicitly simulates how a worst-case shift in the training data would alter the resulting model's weights. By anticipating these weight changes during training, RoCourseNet can defend against them proactively. We further employ a block-wise coordinate descent procedure to jointly optimize for three competing objectives: predictive accuracy, recourse validity (robustness), and proximity (minimizing the effort required by the user).

Curriculum Robustness

A key component of our training strategy is the "Epsilon Scheduler." By gradually increasing the intensity of simulated data shifts during the training process—similar to curriculum learning—the model develops a more stable decision boundary that is naturally resistant to fluctuations in the underlying data distribution.

Experimental Evaluation

Datasets and Shift Types

We evaluated RoCourseNet on three real-world datasets, each representing a distinct type of data shift:

  • Loan Dataset (Temporal Shift): ~450,000 records from 1994–2009, capturing how lending standards evolve over time.
  • German Credit Dataset (Data Correction Shift): 2,000 records across two versions, representing shifts caused by data cleaning or correction.
  • Student Dataset (Geospatial Shift): 649 records from two different schools, capturing shifts in demographic and academic distributions.

Performance Metrics

RoCourseNet was compared against several state-of-the-art baselines, including ROAR-LIME and RBR. The primary metric was robust validity: the percentage of recourses that remained valid after the model was retrained on shifted data.

Key Findings

  • Superior Robustness: RoCourseNet consistently achieved over 96% robust validity across all tested datasets. This represents a significant improvement (at least 10%) over existing post-hoc and robust baseline methods.
  • Optimized Trade-offs: In the "cost-invalidity" trade-off, RoCourseNet's Pareto frontier dominated other methods. It provides recourses that are not only more likely to work but also require less effort from the user compared to other robust methods.
  • Scalability and Generalization: While the framework is designed for neural networks, we demonstrated that it could be generalized to "robustify" other parametric methods, such as VAE-based counterfactual generators.

Conclusion and Future Work

RoCourseNet represents a shift in XAI from reactive, post-hoc explanations to proactive, robust-by-design systems. By treating future model updates as a form of adversarial shift, we can provide users with recourse that is truly "future-proof."

Future research will focus on reducing the computational overhead associated with tri-level optimization and extending the framework to non-parametric models, such as Random Forests and other ensemble methods, which remain prevalent in many industrial applications.

Summary updated

BibTeX
@inproceedings{guo2023rocoursenet,
  author = {Hangzhi Guo and Feiran Jia and Jinghui Chen and Anna Cinzia Squicciarini and Amulya Yadav},
  title = {{RoCourseNet: Distributionally Robust Training of a Prediction Aware Recourse Model}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  url = {https://openreview.net/forum?id=Gej8t8CqTM},
}
Figure