NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LIBRA: Language Model Informed Bandit Recourse Algorithm for Personalized Treatment Planning

Junyu Cao, Ruijiang Gao, Esmaeil Keyvanshokooh, Jianhao MaarXiv 2026

Here is a concise, engaging summary of the paper "LIBRA: Language Model Informed Bandit Recourse Algorithm for Personalized Treatment Planning."

TL;DR

This paper introduces the "recourse bandit" problem, where an algorithm must simultaneously select a medical treatment and recommend actionable lifestyle changes (recourse) to maximize patient outcomes. To solve this safely, the authors develop LIBRA, a framework that uses Large Language Models (LLMs) to jump-start learning in high-uncertainty settings while maintaining the rigorous statistical safety guarantees of online bandit algorithms.

What Problem Does This Paper Address?

In personalized medicine, clinicians rarely prescribe treatments in a vacuum. For a condition like Type 2 diabetes or hypertension, a doctor will prescribe a drug and advise the patient to adjust their diet or exercise routine to make the drug more effective.

However, standard contextual bandit and reinforcement learning (RL) algorithms are "blind" to these patient-side modifications; they only optimize over the treatment options. Furthermore, deploying pure bandit algorithms in clinical settings suffers from a severe "cold-start" problem, requiring risky trial-and-error exploration early on. Conversely, relying solely on LLMs for treatment plans is dangerous due to their tendency to hallucinate and their lack of formal statistical guarantees.

This paper bridges these gaps by formalizing algorithmic recourse within an online learning framework, ensuring algorithms can recommend both treatments and minimal, realistic lifestyle modifications while safely collaborating with LLMs.

Methods

The authors first formalize the Recourse Bandit problem under a Generalized Linear Model (GLM) framework. Here, the patient context is split into immutable features (e.g., age, genetics) and mutable features (e.g., diet score, physical activity). The algorithm must choose a treatment and a realistic modification to the mutable features within a defined budget or radius ($\gamma$).

To solve this, they introduce two algorithms:

  1. GLRB (Generalized Linear Recourse Bandit): A pure online learning algorithm that builds data-driven uncertainty sets around patient responses and uses a novel two-block coordinate descent method to efficiently solve the biconvex joint optimization problem.
  2. LIBRA (Language Model-Informed Bandit Recourse Algorithm): A collaborative framework where the bandit algorithm acts as a gatekeeper.
Illustration of the differences between standard bandits, recourse bandits (GLRB), and the uncertainty-driven LLM integration in LIBRA.

As shown in Figure 1, if the bandit's uncertainty about a patient's optimal treatment-recourse pair is high (i.e., the confidence interval width exceeds a threshold $\Delta$), LIBRA queries an LLM for guidance. If the bandit is confident ("Certain"), it bypasses the LLM to save computational cost and avoid potential hallucinations. The authors also extend this framework to handle scenarios where patients do not fully comply with the recommended lifestyle changes (both random and adversarial non-compliance).

Datasets

The algorithms were evaluated on:

  • Synthetic Environments: Controlled simulations used to mathematically verify regret bounds and sensitivity to hyperparameters.
  • The ACCORD Dataset: A real-world clinical trial dataset (Action to Control Cardiovascular Risk in Diabetes) focusing on patients with hypertension and Type 2 diabetes. Linear regression models were fitted to simulate counterfactual patient responses to different treatment-recourse combinations.
  • The Fertility Dataset: Used in the appendices as a semi-synthetic benchmark evaluating surgical intervention recommendations based on mutable habits like alcohol consumption and sitting hours.

Key Insights and Ideas

  • The Gatekeeper Paradigm: Instead of letting the LLM drive decisions or using it purely as a static prior, LIBRA uses the LLM dynamically based on active uncertainty. This ensures the system benefits from the LLM's broad medical knowledge early on but transitions to autonomous, data-driven execution as it gathers more data.
  • Theoretical Guarantees: The authors prove three critical properties for LIBRA:
  • Warm-start guarantee: It drastically reduces early-stage regret if the LLM is reasonably accurate.
  • LLM-effort guarantee: It queries the LLM at most $O(\log^2 T)$ times over a horizon $T$, ensuring long-term autonomy and low operational cost.
  • Robustness guarantee: Even if the LLM provides terrible advice, LIBRA's performance will never degrade below that of a pure bandit algorithm.
  • Biconvex Optimization: Though optimizing treatment and feature modifications simultaneously is generally non-concave (and NP-hard under arbitrary norms), the authors proved it is biconvex, allowing them to derive an efficient, closed-form coordinate descent solution.

Key Results

  • Superior Clinical Outcomes: In the hypertension case study, LIBRA achieved the highest average reduction in Systolic Blood Pressure (51.14 mmHg), outperforming pure bandits (GLRB: 48.28 mmHg, LinUCB: 44.45 mmHg) and the LLM-only baseline (45.84 mmHg).
  • Rapid Regret Flattening: LIBRA's cumulative regret curve flattens almost immediately compared to GLRB, empirically validating its warm-start capability.
  • Nuanced Personalization: While the LLM baseline gave generic public health advice (uniformly recommending high physical activity), LIBRA successfully learned from the data that dietary changes were significantly more impactful for lowering blood pressure in this specific patient cohort, tailoring recommendations accordingly.

Limitations and Future Work

  • Linearity Assumptions: The current framework assumes a generalized linear relationship between patient features and rewards. Real biological systems are often highly non-linear, warranting future non-parametric extensions.
  • Simplified Compliance Models: While the paper addresses random and adversarial non-compliance, real patient behavior is stochastic and dynamic, requiring more sophisticated behavioral modeling.
  • Single-LLM Reliance: Future iterations could explore multi-LLM architectures, routing queries to specialized models (e.g., one for pharmacology, another for behavioral psychology) via a "meta-bandit" gating mechanism.

Summary updated

BibTeX
@misc{cao2026libra,
  author = {Junyu Cao and Ruijiang Gao and Esmaeil Keyvanshokooh and Jianhao Ma},
  title = {{LIBRA: Language Model Informed Bandit Recourse Algorithm for Personalized Treatment Planning}},
  year = {2026},
  eprint = {2601.11905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.11905},
}
Figure