Learning Decision Trees and Forests with Algorithmic Recourse

Kentaro Kanamori, Takuya Takagi, Ken Kobayashi, Yuichi Ike

TL;DR

RACT (Recourse-Aware Classification Tree) is a new training framework that ensures machine learning models don't just provide a "no," but also a feasible "how to get to a yes." By integrating recourse constraints directly into the tree-building process, RACT guarantees that a high percentage of users receive actionable, low-cost advice to flip an unfavorable prediction without significantly sacrificing model accuracy.

The Problem: Recourse-Blind Models

Imagine applying for a loan and being denied. An Algorithmic Recourse (AR) system might tell you: "To get approved, you need to increase your age by 10 years and change your place of birth." This is useless advice—these features are immutable. Even with mutable features, a model might demand an impossible level of effort, like "increase your savings by $1,000,000$ by tomorrow."

Standard classification tree and instance

The fundamental issue is that most models are "recourse-blind." They are optimized solely for predictive accuracy. While post-hoc tools exist to find recourse for a finished model, they often come up empty-handed because the model’s decision boundaries were never designed to allow for easy "flips." This paper tackles the challenge of learning tree-based models (Decision Trees and Random Forests) that are "recourse-aware" from the start, specifically for tabular data where these models excel but are notoriously difficult to optimize due to their non-differentiable nature.

Methods: The RACT Framework

The authors propose RACT, which consists of two main stages:

  1. Top-Down Greedy Splitting with a Twist: Standard trees split nodes to maximize "purity" (like Gini impurity). RACT uses a penalized objective function that balances traditional predictive risk with Recourse Risk. Recourse risk measures the ratio of instances that cannot reach a desired outcome within a specific "cost budget" (e.g., a maximum amount of effort). To keep this computationally efficient, the authors adapt techniques from adversarial training to calculate these splits in $O(DN)$ time—the same complexity as standard tree training.
Recourse-aware classification tree
  1. Set-Cover Relabeling (Post-Processing): Even after smart splitting, some users might still lack recourse. RACT includes a final step that identifies leaves in the tree and strategically flips their predicted labels (e.g., from "Denied" to "Approved") to satisfy a target recourse guarantee (e.g., "90% of users must have recourse"). The authors prove this task is a version of the Weighted Partial Cover Problem, allowing them to use a greedy approximation algorithm to meet the recourse target while losing as little accuracy as possible.

Datasets

The algorithm was evaluated on four real-world tabular datasets where algorithmic fairness and recourse are high-stakes:

  • FICO: Credit scoring and loan risk.
  • COMPAS: Recidivism risk (criminal justice).
  • Credit: Credit card default prediction.
  • Bail: Predicting whether defendants will commit crimes while out on bail.

Key Insights and Ideas

  • Recourse as a Training Constraint: Instead of treating recourse as a search problem after the model is built, the authors treat it as a structural constraint during the learning phase.
  • The $\ell_\infty$ Advantage: By assuming a cost function where features are checked independently (an $\ell_\infty$-type cost), the authors found a way to check for the existence of recourse extremely quickly during the tree-growing process.
  • Bridging Discrete and Continuous: One of the "aha" moments is mapping the discrete problem of flipping leaf labels to the well-studied Set Cover problem, providing a mathematically grounded way to "buy" recourse at the lowest possible "price" of accuracy.
  • Random Forest Compatibility: Because the core logic happens at the tree-splitting level, RACT plugs directly into Random Forest frameworks, which are the industry standard for tabular data.

Key Results

  • Higher Recourse, Similar Accuracy: On the Bail dataset, a standard Decision Tree provided recourse to only 32% of users. RACT boosted this to 79% while maintaining comparable accuracy.
  • Lower Effort for Users: Not only did more people get recourse, but the "cost" (effort) required to flip the prediction was significantly lower compared to baseline models.
  • Efficiency: Despite the extra constraints, RACT's training time is nearly identical to standard "Vanilla" trees, making it practical for large-scale engineering pipelines.
  • Causal Robustness: In tests involving causal relationships between features, RACT-trained models provided more "valid" recourse actions that held up even when accounting for downstream effects of changing a feature.

Limitations and Future Work

  • Cost Function Specificity: The current efficient implementation relies on $\ell_\infty$-type cost functions (where you can check each feature's budget independently). Extending this to $\ell_1$ or $\ell_2$ costs (where changes in different features trade off against each other) is more complex and remains a future challenge.
  • Gradient Boosting: While it works for Random Forests, the authors haven't yet extended RACT to popular Gradient Boosting frameworks like XGBoost or LightGBM, which are dominant in many Kaggle-style competitions.
  • Hyperparameter Sensitivity: The trade-off parameter $\lambda$ (balancing accuracy vs. recourse) needs to be tuned per dataset, which requires an extra step in the model selection process.

Summary updated

BibTeX
@inproceedings{kanamori2024learning,
  author = {Kentaro Kanamori and Takuya Takagi and Ken Kobayashi and Yuichi Ike},
  title = {{Learning Decision Trees and Forests with Algorithmic Recourse}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=blGpu9aGs6},
}
Figure