Abstract
Human doctors frequently recommend actionable recourses that allow patients to modify their conditions to access more effective treatments. Inspired by such healthcare scenarios, we propose the Recourse Linear UCB (RLinUCB) algorithm, which optimizes both action selection and feature modifications by balancing exploration and exploitation. We further extend this to the Human-AI Linear Recourse Bandit (HR-Bandit), which integrates human expertise to enhance performance. HR-Bandit offers three key guarantees: (i) a warm-start guarantee for improved initial performance, (ii) a human-effort guarantee to minimize required human interactions, and (iii) a robustness guarantee that ensures sublinear regret even when human decisions are suboptimal. Empirical results, including a healthcare case study, validate its superior performance against existing benchmarks.
Introduction: The Challenge of Contextual Recourse
In traditional contextual bandits, the "context"—representing the environment or a patient's state—is treated as a fixed constraint. The algorithm's objective is simply to select the optimal action for that static context. However, real-world decision-making, particularly in healthcare, is often more dynamic. Doctors frequently provide recourse, suggesting that a patient modify certain mutable features (e.g., lowering blood sugar or adjusting diet) to qualify for more effective treatments or improve their prognosis.
While "algorithmic recourse" has been explored in offline settings, applying it to online learning presents a significant "cold start" problem. Early in the learning process, an AI may lack sufficient data to provide reliable advice, potentially leading to suboptimal outcomes. HR-Bandit addresses this by jointly optimizing actions and context modifications while strategically leveraging human expertise to bridge the initial knowledge gap.
Methods
The framework introduces two primary algorithms:
- RLinUCB (Recourse Linear UCB): This AI-only foundation extends the standard Linear Upper Confidence Bound (LinUCB) algorithm to solve an Optimistic Counterfactual Optimization (OCOP) problem. It simultaneously identifies minimal feature modifications (within a budget $\gamma$) and the optimal action to maximize expected reward. This non-linear constrained optimization is solved efficiently using the Alternating Direction Method of Multipliers (ADMM).
- HR-Bandit (Human-AI Collaborated Linear Recourse Bandit): This full framework integrates human experts based on uncertainty. If the AI's estimates show high variance, it consults a human expert. A data-driven selection criterion then decides whether to implement the human's recommendation or the AI's own, based on which offers a superior confidence-bound guarantee.
Datasets and Evaluation
The approach was validated across three distinct setups:
- Synthetic Data: A controlled 5-dimensional environment used to verify theoretical regret bounds and query efficiency.
- Fertility Data (Semi-Synthetic): Based on a real-world dataset of 100 volunteers, modeling mutable features like alcohol consumption and smoking habits to predict surgical outcomes.
- IHDP (Infant Health and Development Program): A causal inference dataset evaluating the impact of specialist home visits on the cognitive scores of premature infants.
Key Insights
- Active Contextual Engineering: Shifting from passive observation to active modification of mutable features significantly raises the potential reward ceiling.
- Theoretical Guarantees: HR-Bandit provides a warm-start (reducing early regret via human input), robustness (maintaining performance even with suboptimal human advice), and human-effort efficiency (minimizing human queries as AI confidence grows).
- Joint Optimization: The system recognizes that specific feature changes can unlock entirely different, more effective treatment paths, rather than treating treatment and recourse as independent steps.
Results
Empirical results across all datasets demonstrate that HR-Bandit significantly outperforms both standard LinUCB and the AI-only RLinUCB, particularly in early rounds.
In the IHDP experiments, the system required only 10-12 human queries before the AI became sufficiently confident to operate autonomously, validating the human-effort guarantee. Theoretically, RLinUCB achieves a regret of $\tilde{O}(d\sqrt{KT})$, matching the lower bound for linear bandits and proving that recourse suggestions do not compromise learning efficiency.
Limitations and Future Work
Current limitations include the assumption of linear relationships between features and rewards, which may not capture the complexity of real-world healthcare. Additionally, the model assumes perfect patient compliance with suggested recourses. Future research will explore non-linear models, patient noncompliance, and the integration of complex structural causal models to ensure that suggested modifications truly drive the intended reward increases.
Summary updated