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

Safety-Constrained Whittle Indices for Scheduling Early Mobilization

After fracture surgery, a hospital has a few physical therapists and many patients. Every patient left alone gets worse: joints stiffen, muscles waste, scar tissue forms. Every patient who is loaded too early risks something much worse, because the implant or healing bone can shift. Which patients get a session today, and how hard each session pushes, are currently set by fixed calendar rules, or by a scheduling algorithm whose reward adds "mobility gained" to "risk of implant failure" using a weight someone picked by hand. That hand-picked weight is the actual clinical decision. It sets how many displaced fixations the hospital accepts in exchange for less stiffness. It should not be a tuning knob.

We propose to remove that weight. Each patient gets a hard safety budget: over the recovery window, the probability of fixation displacement must stay below a chosen value $\delta$, and that ceiling can differ by implant type. The price of risk then becomes a per-patient multiplier that is solved for, not guessed. Formally the scheduling problem is a restless multi-armed bandit. That is a planner choosing $K$ of $N$ evolving processes ("arms") to act on each step, while the arms it does not act on keep changing. We build a variant of the Whittle index, the standard way to rank arms in such problems, in which each patient's index comes from a safety-constrained sub-problem rather than a penalized reward. The claim is specific. With patients whose fixations differ (load-bearing nails, load-sharing elastic nails, screw constructs), no single penalty weight can meet every patient's safety ceiling without over-protecting some of them. The per-arm constrained index meets all ceilings while recovering the mobility that a shared weight gives up.

Why this gap, and what already exists

The clinical side motivates the problem. Early loading helps tissue. Motion within 10 days limits random fibrin deposition and contracture after distal femur fixation (Follow up study of surgically treated intra-articular fractures of distal femur). Partial weight-bearing within a week supports meniscal healing (Current Research on the Diagnosis Method of Meniscus Root Injury and its Healing). Load-bearing implants tolerate early rehabilitation: a PFNA-2 cohort had 100% union and no implant breakage, yet 11.66% knee stiffness (The Functional Outcome of Proximal Femoral Nail Antirotation-2 (PFNA-2) in Peritrochanteric Fractures of the Femur).

Biological fixation is what makes the problem heterogeneous. Elastic intramedullary nails preserve periosteal blood supply and speed callus formation, but they are deliberately less rigid (Operative choice for subtrochanteric femoral fracture in school-aged children). Finite element work on adolescent tibial tuberosity fixation shows how thin the margins are. The best construct displaced 1.97 mm under a 1,654 N tendon load, against a 2.0 mm clinical threshold (Comparative finite element analysis of fixation strategies for sports-related tibial tuberosity avulsion fractures in adolescents). That analysis is static. It says nothing about how the margin evolves as callus stiffens over weeks. Our simulator supplies that time dimension, and a policy that uses it can decide who to mobilize.

On the bandit side, exact optimal allocation is PSPACE-hard (Multi-channel Opportunistic Access). Whittle's relaxation decouples arms through a "subsidy for passivity" (Index policies for discounted bandit problems with availability constraints). Indexability, the property that makes the resulting ranking well defined, can be tested numerically (Conditions for indexability of restless bandits and an O(K^3) algorithm to compute Whittle index). We reuse both techniques.

Two groups of prior work are closest to our proposal:

  • Reward generation. DLM has a language model write and refine reward code for a restless bandit in maternal health. SCLM separates generating candidate rewards from choosing among them using social welfare functions. Both still produce a scalar reward, so a safety concern still enters as a weighted term. We change what gets specified: a constraint the clinician states in their own units, not a reward.
  • Risk handling. Planning and Learning in Risk-Aware Restless Multi-Arm Bandits replaces expected reward with a hand-specified utility over cumulative reward, on coarse disease states. It shapes attitude toward variance in one scalar. It does not enforce a separate per-patient failure probability.

SEQUOIA handles combinatorial coupling such as matching therapists to patients, but uses fixed hand-crafted rewards. DAMMRL tunes a single rehabilitation robot with a linear composite of tracking error, jerk and effort. That is exactly the weight-balancing we avoid, applied to one healthy subject rather than a cohort. The broader evidence that linear weighting of competing physical objectives degrades behavior (Hierarchical Apprenticeship Learning with Application to Quadruped Locomotion) motivates the change but does not supply a fix for the scheduling setting.

Core Claim

Each patient $i$ is an arm with state $s$, a small discrete vector:

  • a healing-progress level, meaning callus or tissue stiffness as a fraction of intact;
  • a stiffness or range-of-motion deficit;
  • an absorbing "displaced" state.

The binary scheduling action $a \in \{0,1\}$ says whether the patient gets a therapist session this step. Within a session, the arm's own policy chooses a load level $\ell$, from passive motion up to partial weight-bearing. Displacement probability rises with $\ell$ relative to the current construct-plus-callus strength, and that relationship is set by fixation type.

The per-arm sub-problem, given Whittle's subsidy $\lambda$ for staying idle, is

$$ V_i(\lambda) = \max_{\pi} \; \mathbb{E}_\pi\Big[\sum_t \gamma^t \big(r_i(s_t) + \lambda (1-a_t)\big)\Big] \quad \text{s.t.} \quad \Pr_\pi(\text{displaced by } T) \le \delta_i . $$

Here:

  • $r_i(s)$ scores functional state alone (range of motion, strength) and contains no risk term;
  • $\gamma$ is the discount;
  • $T$ is the recovery horizon;
  • $\delta_i$ is the clinician-set failure ceiling for patient $i$'s implant class.

We solve this constrained problem exactly as a linear program over state-action visitation frequencies. Its dual variable $\mu_i(\lambda)$ is the patient-specific price of risk. The constrained Whittle index of state $s$ is the subsidy at which a session and no session are equally good under the constrained optimum.

If a single shared $\mu$ were used for all patients, we would recover the usual penalized reward with one hand-tuned weight. That is the precise object we compare against.

Research Program

We will build a stylized but transparent cohort simulator with three fixation classes:

  • Load-bearing nail. Anchored to the PFNA-2 cohort's safety record and the randomized comparison showing the femoral neck system allows immediate rehabilitation (Femoral neck system versus cannulated screws combined with medial plate).
  • Load-sharing elastic nail. Larger early displacement risk, faster biological healing.
  • Screw construct near a displacement margin. Its early-phase safety margin is calibrated to the 1.97 mm versus 2.0 mm finite element result.

Idle arms drift toward stiffness at a rate set so that a fixed protocol reproduces roughly the stiffness incidence reported for PFNA-2. We state plainly that these are calibrated assumptions, not fitted patient data. Because the index could be fragile to them, we run the parameter-perturbation analysis of On the sensitivity of restless bandits solutions to uncertainty in the models of the arms across wide ranges.

The algorithmic work has three parts:

  1. Compute constrained indices by bisection on $\lambda$ over the per-arm linear program.
  2. Check indexability numerically with the subcubic test for every fixation class and a grid of $\delta_i$.
  3. Characterize when indexability fails. We expect it can fail when a session is harmful in the earliest healing phase, because then the benefit of acting is not monotone in state. In those cases we fall back to the fluid linear-programming policy family, whose optimality gap shrinks with cohort size (Achieving $\tilde{\mathcal{O}}(1/N)$ Optimality Gap in Restless Bandits through Gaussian Approximation).

For generality beyond our own simulator, we also run the method on the synthetic machine maintenance and breast cancer scheduling benchmarks from the risk-aware bandit paper, with their failure or death state treated as the constrained event.

Baselines

Fixed protocol (naive reference). A calendar schedule: passive motion from day 3, partial weight-bearing from week 1 or week 3 depending on implant class, and therapist slots filled round-robin. This is how care is actually delivered. Any learned policy that cannot beat it on stiffness at equal or lower displacement has no case.

Myopic priority queue. Serve the patients with the largest current stiffness deficit or longest idle time, using the same safe load level as the fixed protocol.

Penalized Whittle index. The standard index with reward $r_i - w \cdot \mathbb{1}[\text{displaced}]$. We tune $w$ in two ways, each given the same budget of simulator rollouts that our method uses:

  • a single global $w$;
  • a separate $w$ per fixation class.

We report the whole Pareto curve over $w$, not one tuned point.

Risk-aware Whittle index. The index from Planning and Learning in Risk-Aware Restless Multi-Arm Bandits, with its concave utility. That paper reports this index beating the risk-neutral index by an average of 37.9%, and hitting threshold targets 100% of the time versus 58%, on its breast cancer and maintenance benchmarks. On those same benchmarks we will report both numbers against ours.

Language-model reward code (DLM-style). A DLM-style loop in which the model receives the clinical instruction ("keep displacement under 2% for elastic nails, minimize stiffness") and writes and reflects on reward code, run on our simulator with the same call budget. DLM reports a mean normalized reward of 0.93 against 0.57 for a default static policy on ARMMAN data (DLM). We have no comparable number in our domain.

SEQUOIA. Used only in the extension experiment where therapists have skills and each can be matched to only some patients. The source reports an average 24.8% gain over myopic and greedy baselines across its domains (SEQUOIA).

Key ablation. Force $\mu_i$ to be shared across all arms while keeping everything else fixed. This isolates whether per-patient risk pricing is the source of any gain.

What counts as winning. Beating a baseline means one of two things. Either every class meets its $\delta_i$ and the cohort has lower mean stiffness than the best baseline configuration that also meets every ceiling. Or, where no baseline setting meets all ceilings, it means doing so at all.

Why not just…?

Why not just grid-search the penalty weight in the simulator? This is the real threat. If a single tuned weight, or one weight per fixation class, lands on the same frontier, our method reduces to an automatic tuner. We expect a global weight to fail for a structural reason. Patients whose constraint binds tightly need a high price of risk, while patients with ample margin are then under-mobilized. A per-class weight should close much of the gap. What remains is within-class variation (bone quality, healing rate) and re-specification cost: when a clinician changes $\delta$ or a new implant class appears, weights must be re-searched, whereas the constrained index is simply recomputed. The ablation and the per-class sweep measure exactly how large the remaining gap is. If it is negligible, we will report that, and narrow the contribution to specification cost.

Why not just let a language model write the reward, as in DLM or SCLM? Their output is still a scalar reward. Any safety requirement therefore becomes a weight chosen by the model instead of a person, and SCLM's own motivation is that such generated rewards neglect some objectives when criteria compete (SCLM). Our comparison measures how often generated reward code violates the stated ceiling for the tightest implant class. We also test the natural hybrid, in which the model writes only $r_i$ and the constraint handles risk, and would adopt it if it helps.

Why not just use a risk-aware utility? A concave utility over cumulative reward reduces variance in one aggregate quantity. A clinician's requirement, though, is a bound on one specific event per patient. The two coincide only if utility curvature is tuned per class, which reintroduces hand-tuning. The benchmark comparison on the original risk-aware tasks tests whether our constrained index gives up anything there.

Why not just keep the fixed clinical protocol? Protocols are safe by construction but blind to capacity and to individual healing. The cohort-level stiffness of the fixed schedule, at matched displacement, is the first number we report. If adaptive allocation cannot improve it under realistic therapist budgets, the rest of the program is moot.

Proposed Experiments

We simulate cohorts of 50 to 500 patients with therapist budgets of 5% to 30% of $N$ per day, over a 12-week horizon. The mix of fixation classes varies from homogeneous to evenly split, because heterogeneity is where the claim should appear or vanish.

Primary metrics:

  • the displacement rate per class against its $\delta_i$;
  • the cohort's mean final range-of-motion deficit and stiffness incidence;
  • the number of simulator rollouts needed to reach the reported operating point.

Decisive check 1. Plot the stiffness-versus-displacement frontier of the penalized index over all weights, per class. Test whether any single weight lies inside every class's ceiling at the stiffness level the constrained index reaches. If a weight does, the heterogeneity argument fails.

Decisive check 2. Change $\delta$ for one class midway through evaluation and add an unseen fourth implant class. Count how many rollouts each method needs to meet the new ceilings.

Decisive check 3. Report the fraction of parameter settings in which indexability holds. Where it fails, report the gap between the index policy and the fluid linear-programming policy.

Robustness. Perturb transition parameters by ±50% and report constraint violations under the resulting model error. A safety claim that holds only under the exact simulator is not one we will make.

References

  1. Follow up study of surgically treated intra-articular fractures of distal femur
  2. Current Research on the Diagnosis Method of Meniscus Root Injury and its Healing
  3. The Functional Outcome of Proximal Femoral Nail Antirotation-2 (PFNA-2) in Peritrochanteric Fractures of the Femur
  4. Operative choice for subtrochanteric femoral fracture in school-aged children: Triple elastic stable intramedullary nail versus locking plate
  5. Comparative finite element analysis of fixation strategies for sports-related tibial tuberosity avulsion fractures in adolescents: biomechanical evidence for optimized clinical decision-making
  6. Multi-channel opportunistic access: A case of restless bandits with multiple plays
  7. Index policies for discounted bandit problems with availability constraints
  8. Conditions for indexability of restless bandits and an O(K^3) algorithm to compute Whittle index
  9. A Decision-Language Model (DLM) for Dynamic Restless Multi-Armed Bandit Tasks in Public Health
  10. Balancing Act: Prioritization Strategies for LLM-Designed Restless Bandit Rewards
  11. Planning and Learning in Risk-Aware Restless Multi-Arm Bandits
  12. Reinforcement learning with combinatorial actions for coupled restless bandits
  13. Human-Machine Co-Adaptation for Robot-Assisted Rehabilitation via Dual-Agent Multiple Model Reinforcement Learning (DAMMRL)
  14. Hierarchical Apprenticeship Learning with Application to Quadruped Locomotion
  15. Femoral neck system versus cannulated screws combined with medial plate for femoral neck fractures in young and middle-aged patients: a prospective multicenter randomized controlled trial
  16. On the sensitivity of restless bandits solutions to uncertainty in the models of the arms
  17. Achieving $\tilde{\mathcal{O}}(1/N)$ Optimality Gap in Restless Bandits through Gaussian Approximation