Manuscript Offprint
arXiv:2610.22336Robust Reinforcement Learning for Dynamic Treatment Regimes under Model and Measurement Uncertainty
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We develop a robust reinforcement learning (RL) framework for learning adaptive treatment policies that generalize across patients and remain reliable under errors in the measured biomarker and shifts in the disease dynamics. By modeling the patient as a hidden context, we address generalization and robustness in a unified manner through robust contextual Markov decision processes. Applying our framework to adaptive therapy for metastatic prostate cancer in a simulator calibrated to clinical data, we obtain generalizable and robust policies that substantially outperform the existing adaptive therapy method. In particular, we attain robustness with almost no loss of performance when the biomarker is accurate and the disease evolves as anticipated, and find that the resulting policy Pareto-dominates the existing method across a diverse array of scenarios. Our findings suggest that robust RL holds great promise as a principled methodology for learning reliable adaptive treatment policies.
1 Introduction
Adapting treatment to the evolving condition of a patient has received considerable attention in medicine, with success reported in a broad range of applications [4, 7, 25, 26, 39, 50]. In oncology, adaptive therapy pursues this idea to delay the emergence of drug resistance [18]. Its rationale is that, under continuous treatment, drug-sensitive cells are eliminated and drug-resistant cells are left to grow without competition. By pausing treatment once the tumor has responded and resuming it once the tumor has regrown, clinicians can retain sensitive cells that continue to suppress the resistant ones [18, 45]. This approach was tested in a pilot clinical trial of the drug abiraterone for metastatic castration-resistant prostate cancer [52, 53]. In this clinical trial, clinicians paused abiraterone once prostate-specific antigen (PSA), a blood marker that tracks tumor burden, fell below half of its pretreatment value, and resumed it once PSA returned to the pretreatment value, a protocol we refer to as AT50. Compared with a contemporaneous cohort who received continuous treatment with abiraterone as the standard of care, the median time to progression more than doubled under AT50, while patients received no abiraterone during 46% of their time in the clinical trial [52].
Despite its remarkable success, AT50 is by design a simple heuristic in the sense that it applies the same pair of thresholds to every patient and responds only to the most recent PSA value. In addition, its benefit has so far been observed in only 17 patients, and, based on the models fitted to the same data, other schedules are expected to further improve outcomes [52]. Existing efforts toward more refined schedules include optimal control of competition models [9], deep reinforcement learning (RL) for controlling the emergence of drug resistance [12], and more recently RL policies trained within models calibrated to prostate cancer patients [16,33,34]. Nevertheless, these policies are evaluated within the same models used for their training, and their performance beyond these models remains largely unexamined. Ideally, one would like to learn, in a data-driven manner, a dynamic treatment policy that is more sophisticated than AT50, attains improved performance, and generalizes to the broad population of patients beyond those enrolled in the clinical trial. More importantly, such a policy should remain reliable under the shifts between training and deployment that are common in clinical practice [13].
*Department of Industrial and Systems Engineering, Texas A&M University. (E-mail: changze@tamu.edu).
Department of Mechanical Engineering, The University of Texas at Austin. (E-mail: xuan.wang@austin.utexas.edu).
School of Information, The University of Texas at Austin. (E-mail: ying.ding@ischool.utexas.edu).
Department of Mechanical Engineering, The University of Texas at Austin. (E-mail: hairong.wang@austin.utexas.edu).
Department of Industrial and Systems Engineering, Texas A&M University. Correspondence to: Yan Li (E-mail: yan.li@tamu.edu).
To be more specific, we identify three properties that a treatment policy learned from data should possess. To begin with, the policy should generalize in the sense that the performance it attains on the patients seen during training carries over to new patients drawn from the same population. From the perspective of contextual and hidden-parameter Markov decision processes (MDPs) [11,19,28,44], the natural goal without interacting with a new patient is a policy that is near-optimal on average over the population [49], and generalization across populations of environments has been studied extensively in deep RL [24,46]. With a simulation model, we can pursue this goal by training on as many simulated patients as needed, far beyond the 17 patients of the pilot clinical trial, provided that the simulated population is broad enough to contain the patients of interest. In addition, the policy should be robust to errors in its observation. In particular, PSA serves only as an indirect measure of the underlying tumor burden, and radiographic progression can occur without any rise in PSA [6]. Consequently, the quantity on which the policy acts may deviate from the quantity it aims to control, while RL policies are known to be sensitive to even small adversarial perturbations of their observations [21,51]. Most importantly, the policy should retain reliable performance under shifts in the patient dynamics. Indeed, the parameters of the model, including the strength of competition between sensitive and resistant cells on which the success of adaptive therapy hinges, are estimated from the sparse PSA records of a small cohort of patients, and are hence subject to considerable statistical error [5,52]. Such shifts are particularly consequential in medical domains, where real patients are scarce and the dynamics of a patient may further change during treatment [1].
To address these requirements, in this manuscript we propose to study adaptive therapy through the lens of robust contextual MDPs. A contextual MDP [19] describes a family of MDPs whose transition dynamics are indexed by a context, drawn from a population and hidden from the decision maker. Adaptive therapy fits naturally into this framework once we identify the context with the patient, namely the initial composition of the tumor together with its competition and growth parameters. Each patient then defines its own tumor dynamics, to be inferred by the clinician from the history of PSA measurements and treatment decisions, and AT50 is one particular policy acting on this history. By viewing the patient as a context, we treat generalization and robustness to shifts in the patient dynamics in a unified manner, since both concern the population from which the context is drawn. Specifically, generalization requires the policy to perform well on new contexts drawn from this population, which can be attained by training on sufficiently many sampled contexts, while robustness requires the policy to remain reliable when the context deviates from this population and thereby shifts the transition kernel that it determines.
To attain such robustness, we draw on robust MDPs, in which one seeks the best worst-case performance over an ambiguity set of transition kernels, and which have been studied extensively for standard MDPs [22, 31, 38, 40, 41, 48, 51]. We carry this viewpoint over to the contextual MDP and formulate robustness as a Markov game between the controller and the context, in which the context may deviate adversarially from the population from which it is drawn [29, 32]. To account for errors in the observation, we further train the policy under random perturbations of the measured PSA. Within a model of abiraterone therapy fitted to clinical data [52], which we refer to as the nominal model, the resulting robust policies substantially outperform AT50. In addition, we attain robustness to shifts in the patient dynamics at almost no price in the nominal model, and the resulting policy nearly Pareto-dominates the nominally trained policy, i.e., the policy trained in the nominal model with exact observations, under a broad range of realistic errors in the observation and shifts in the patient dynamics. Our contributions can be summarized as follows.
First, we formulate adaptive therapy as a contextual MDP in which the patient is modeled as a hidden context, and find that a policy learned within this formulation substantially outperforms AT50 and generalizes to patients fitted to clinical data. Within the competition model of [52], the learned policy extends the mean progression-free time from 29.58 months under AT50 to 50.35 months, while treating in a comparable fraction of months. In addition, on the 32 patients whose initial tumor compositions are fitted to clinical data in [52], policies trained on a broad synthetic population constructed without reference to these patients perform comparably to policies trained on a population calibrated to them. Hence, generalization to the patients of interest can be attained by training on sufficiently many simulated patients drawn from a broad population, without tailoring the population to these patients.
Second, we find that errors in PSA of realistic magnitude substantially reduce the benefit of policies that do not account for them. Specifically, under random errors of up to about 20% of the true PSA value, the nominally trained policy loses a substantial part of its benefit, and AT50 performs only marginally better than continuous treatment. By training under such errors, we obtain a policy that retains the benefit of adaptive therapy in the sense that its performance under such errors nearly matches that without them.
Finally, we formulate robustness to shifts in the patient dynamics as a Markov game between the controller and the context over an ambiguity set of transition kernels [29], and find that the resulting kernel-robust policy nearly Pareto-dominates the nominally trained policy and AT50 across all the conditions we consider. Specifically, the kernel-robust policy (1) performs nearly as well as the nominally trained policy in the nominal model, (2) substantially outperforms every other type of policy under shifts in the dynamics, and (3) substantially improves on the nominally trained policy and AT50 even under errors in the observation. Our findings suggest that robustness to shifts in the patient dynamics can be attained at almost no price in the nominal model, and that the resulting policy remains robust against a broad spectrum of errors in the observation and shifts in the patient dynamics. In view of this, we believe that robust RL holds great promise as a principled methodology for learning adaptive therapy policies.
The rest of this manuscript is organized as follows. In Section 2, we introduce contextual MDPs and their robust counterparts, and formulate adaptive therapy within this framework. We present the numerical experiments in Section 3, and conclude the manuscript in Section 4.
2.1 Contextual Markov Decision Processes
We consider a finite-horizon contextual MDP [19, 44] with state space , action space , observation space , horizon , and context space . Each context specifies an initial distribution over , a transition kernel , an observation map , and a reward function , where denotes the distribution of the next state when action is taken in state . At the beginning of an episode, a context is drawn from a population distribution and remains fixed thereafter, after which the initial state is drawn as , and the state at every period evolves as . The decision maker observes neither nor the state , and receives at period the observation . Consequently, the action at period can only be based on the history of past observations and actions, i.e., a policy selects , and denotes a given class of such history-dependent policies. For each context , let denote the expected cumulative reward of , where denotes the expectation over the trajectory generated by under and . We consider
In medical applications, the context collects the parameters that determine the dynamics of an individual patient, which vary across patients and are not observed by the decision maker. Since the context is hidden, the decision maker must infer it from the history, and an optimal policy for is in general history-dependent . In , we average the performance over the population of patients, which is the natural goal when a policy is deployed on a new patient without further interaction . In practice, the population distribution D is unknown, and is accessible only through sampled contexts, such as the parameters of patients fitted to clinical data or of virtual patients generated in a simulator. Given contexts drawn independently from D, we consider the sample average approximation (SAA) of ,
We proceed to show that an optimal solution of generalizes to new contexts drawn from D once sufficiently many contexts are sampled. To begin with, we establish such a guarantee for finite state, observation, and action spaces.
Theorem 2.1. Suppose , , and are finite, and for all . Let denote the number of histories with . Then for any class of history-dependent policies, any , and any , with probability at least , we have
In view of Theorem 2.1, the optimality gap of on the population is with high probability. Consequently, a policy trained on sufficiently many sampled contexts generalizes to new contexts drawn from , provided that is broad enough to contain the contexts of interest. In Section 3.6, we demonstrate such generalization for adaptive therapy by applying policies trained on a broad synthetic population to the patients fitted to clinical data in [52] without further training. The proof of Theorem 2.1 is deferred to Appendix A.
On the other hand, the number of histories, and hence the number of sampled contexts required by Theorem 2.1, grows exponentially in the horizon . We proceed to show that the exponential dependence on can be avoided when the expected cumulative reward is Lipschitz continuous with respect to the context .
Theorem 2.2. Suppose that is compact with diameter under the Euclidean norm, for all , and there exists such that
Then there exists a constant depending only on such that for any and any , with probability at least , we have
In view of Theorem 2.2, the exponential dependence on T through in Theorem 2.1 is replaced by , which grows only polynomially in T when the dynamics are Lipschitz continuous with respect to the context. To be more specific, we establish in the following proposition the Lipschitz continuity (2.3) for any class of policies, when the observation map does not depend on the context, and the initial distribution, the transition kernel, and the reward are Lipschitz continuous with respect to the context.
Proposition 2.1. Suppose , is finite, the observation map is independent of , for all , and there exists a constant such that
for all , , and , where denotes the total variation distance, and the supremum is taken over all measurable sets . Then (2.3) holds for any class of history-dependent policies with
Given Proposition 2.1, we have , and hence Theorem 2.2 avoids the exponential dependence on in Theorem 2.1. It is interesting to note that Theorem 2.2 does not require finite state, observation, and action spaces. On the other hand, the rate deteriorates with the dimension once . Nevertheless, such deterioration is mild for systems with a context of small dimension. For instance, the context of adaptive therapy in Section 2.2 is four-dimensional, which yields the rate . The proofs of Theorem 2.2 and Proposition 2.1 are deferred to Appendix A.
2.2 Adaptive Therapy as a Contextual MDP
We adopt the model of abiraterone therapy in [52], which describes the competition between drug-sensitive and drug-resistant cancer cells. Let and denote the numbers of drug-sensitive and drug-resistant cells at time , measured in days, and let indicate whether abiraterone is administered. The dynamics are given by
where is the carrying capacity, i.e., the maximal number of cells supported by the available nutrients and space, and and are the growth rates of the sensitive and resistant cells per day, with base rates , and a common factor scaling both rates.
In essence, (2.4) describes the different responses of the drug-sensitive and drug-resistant cells to abiraterone and the competition between them, which together underlie the rationale of adaptive therapy. Specifically, the sensitive cells depend on testosterone for survival and proliferation, while the resistant cells are independent of testosterone [52]. Since the synthesis of testosterone is inhibited by abiraterone, the sensitive cells utilize nutrients and space less efficiently under treatment, which is modeled in (2.4) by a reduction of their carrying capacity by the fraction . In contrast, the resistant cells are not affected by abiraterone, and their growth is suppressed only through the competition from the sensitive cells, whose competitive effect on the resistant cells is measured by . Consequently, once the sensitive cells are depleted under continuous treatment, the resistant cells are released from competition and eventually dominate the tumor. In adaptive therapy, treatment is instead paused before such depletion occurs, which allows the sensitive cells to recover during the treatment break and to continue suppressing the resistant ones.
Following [52], we set , which are estimated by fitting (2.4) to the longitudinal PSA records of 32 patients, namely 17 patients of the pilot clinical trial and 15 patients of a contemporaneous cohort who received continuous treatment with abiraterone as the standard of care. We refer to , which are shared by all fitted patients, as the nominal values of the competition and growth parameters. We also take the initial cell numbers of each patient from the same fit (see Appendix B), and set as in [52], which only determines the unit of the cell numbers, since rescaling , , and by a common factor leaves (2.4) unchanged. Since and are estimated from the records of only 32 patients and are assumed to be shared by all of them, their values are subject to considerable statistical error, and may also differ across patients, as suggested in [52] by the poorer fits for three patients. Hence, in Sections 2.3 and 3, we allow both parameters to vary, and seek policies that remain reliable under shifts in them.
Since PSA is measured monthly in the pilot clinical trial [52], the clinician decides at the beginning of every month of 28 days whether to administer abiraterone until the next visit, i.e., chooses at visit and sets for . We take , i.e., a horizon of approximately five years, which exceeds the median overall survival in both the adaptive therapy cohort and the standard-of-care cohort of [52]. At visit , the state is given by the cell numbers . Since is constant within each month, the state at the next visit is determined by and through the transition
and denotes the right-hand side of (2.4) evaluated at and , which depends on through the competition term and on through the growth rates. We compute by the classical fourth-order Runge-Kutta method with step size 1 on the grid , and truncate and to after every step (see Appendix B).
We now formulate adaptive therapy as an instance of (2.1). For each patient, we take as context the initial numbers of sensitive and resistant cells together with the competition and growth parameters. Given the context, the initial distribution is a point mass at , and the transition kernel is a point mass at defined in (2.5). Consequently, the context determines the course of the disease under any sequence of treatment decisions. The clinician, however, observes neither the context nor the cell numbers, and only measures PSA. Indeed, sensitive and resistant cells are assumed in [52] to produce equal amounts of PSA, in which case PSA is given by the tumor burden at visit multiplied by the amount of PSA produced per cell. Since the amount of PSA produced per cell is unknown, the pretreatment PSA does not reveal the initial cell numbers ( ). We therefore take as the observation the logarithm of the ratio of PSA to its pretreatment value, which is given by ,
Under the protocol of the pilot clinical trial [52], every patient receives abiraterone at enrollment, and treatment is reinitiated whenever PSA returns to or above its pretreatment value. We impose both requirements on every policy as a safety constraint, which we refer to as the forced-treatment rule. In terms of the observation (2.6), we require at and at every visit with , and impose no restriction on at any other visit. Accordingly, the policy class in (2.1) consists of the history-dependent policies satisfying this constraint.
We define progression as the first visit at which the tumor burden reaches , i.e., exceeds its pretreatment value by at least 20%, which is the threshold adopted in [5, 15, 45]. Since treatment can only be adjusted at visits, the tumor burden may reach during a treatment break while the tumor is still partially sensitive to treatment. Such progression is referred to as premature progression in [15], where the threshold for pausing treatment is derived from the regrowth of the tumor between two consecutive visits to prevent it. Given that premature progression exposes the patient to a tumor burden that would be regarded as progression under treatment, we count progression irrespective of whether treatment is administered. In contrast, progression is declared only when the tumor grows under treatment in [5], which concerns intermittent androgen suppression instead of abiraterone and adopts the model of [45] (see Appendix D). We define the progression-free time as the number of months completed before progression. Correspondingly, we model progression as an absorbing state with zero reward, and set the reward at every visit before progression to
Hence the cumulative reward is given by , and . It should be noted that AT50, implemented as in Section 3.1, is a feasible solution of (2.1), whose two thresholds are fixed in advance rather than obtained by solving (2.1). By applying RL to (2.1), we instead search over the entire class for a policy that adapts the treatment to the whole history of PSA measurements and treatment decisions.
2.3 Robust Contextual MDPs
In clinical practice, a policy learned by solving the contextual MDP (2.1) is subject to uncertainty beyond the variation across patients, which we model through the population distribution D of contexts. In particular, the treatment decisions are made based on the measured PSA, which is affected by analytical and biological variation [35], and serves only as an indirect measure of the underlying tumor burden even when measured exactly [6]. The response of a patient to the treatment may also deviate from the nominal model in Section 2.2. Indeed, the key parameters of the nominal model are estimated from a small cohort of patients and are hence subject to considerable statistical error, while the patient population and the disease dynamics may shift between learning and deployment [13], or even during treatment. For instance, tumors may develop new mechanisms of resistance to abiraterone during treatment [1]. Since the learned policy tailors its decisions to the PSA trajectories generated by the nominal model, its performance may deteriorate substantially in the presence of such uncertainty. In view of this, we seek policies that are robust against both errors in the observation and shifts in the patient dynamics.
To this end, we model the errors in the observation as random, and account for shifts in the patient dynamics through the lens of distributionally robust optimization (DRO) [2, 3, 10, 17, 27, 37], in which one seeks the best worst-case performance over an ambiguity set of distributions. Following the game-theoretic view of distributionally robust MDPs [29, 32], we formulate robustness to such shifts as a Markov game between the controller and an adversary acting on the transition kernel.
2.3.1 Errors in the Observation
To account for errors in the measured PSA, we model the observation at visit t as
where denotes the error at visit , whose magnitude is bounded by , and the exact observation (2.6) corresponds to . Both the policy and the forced-treatment rule act on the perturbed observation, and hence an error may also delay the restart of treatment required by the forced-treatment rule, which we refer to as the forced restart. Since the measured PSA is affected by analytical and within-subject biological variation [35], we model the errors as random, and refer to them as random perturbations. Specifically, every is drawn independently from the uniform distribution on . We then learn policies that account for such errors by solving (2.1) under the observation (2.7).
2.3.2 Robustness to Shifts in the Patient Dynamics
To account for shifts in the patient dynamics, we allow the transition kernel of each patient to change in every month within an ambiguity set of transition kernels. Specifically, an adversary policy selects a kernel from at visit , possibly at random, based on the observations up to visit , and we define as the expected cumulative reward of under the kernels selected by . We consider the robust counterpart of (2.1) given by the zero-sum game
Since the kernel is selected anew at every visit based on the realized history, (2.8) follows the dynamic formulation of robust MDPs [29, 30], and hence accounts for shifts in the dynamics that occur during treatment.
To construct in adaptive therapy, we consider shifts in the competition and growth parameters and , whose estimates are subject to statistical error and may differ across patients (Section 2.2). Following Remark 1 of [29], we draw pairs of multipliers of , , once from a nominal distribution concentrated around one (see Appendix B), and keep them fixed. For a patient with context , the -th generating kernel is given by the transition (2.5) with parameters , and consists of the mixtures of the generating kernels whose weights lie in
where denotes the probability simplex. The radius can be interpreted as the expected fraction of months in which the patient dynamics are selected by the adversary. Indeed, since the expected cumulative reward is linear in the mixture weights at every visit, it suffices for the adversary to place the weight on a single generating kernel at every visit. Equivalently, at every visit the kernel is drawn uniformly from the generating kernels with probability , and is selected by the adversary with probability .
Clearly, for , problem (2.8) reduces to (2.1) with the parameters redrawn uniformly from the generating kernels in every month, while for the adversary selects the kernel at every visit. In Section 3.4, we refer to the radius used in training as the training radius, denoted by , and evaluate every policy at a range of radii , which we refer to as evaluation radii.
3 Numerical Experiments
In this section, we demonstrate that the policies learned from the formulations in Section 2 possess the three properties identified in Section 1. After describing the experimental setup in Section 3.1, we show in Section 3.2 that a policy learned from the contextual MDP (2.1) substantially improves on AT50 without administering more drug. Such a policy, however, acts on PSA as if it were exact. In Section 3.3, we find that errors in PSA of realistic magnitude substantially reduce the benefit of this policy, while by training under random perturbations we retain the benefit of adaptive therapy under such errors. We then turn to shifts in the patient dynamics, and show in Section 3.4 that by solving the kernel-robust formulation (2.8), we attain robustness to such shifts at almost no price in the nominal model, and in Section 3.5 that the resulting policy nearly Pareto-dominates the policy learned from (2.1) and AT50 across all the sources of uncertainty we consider. Finally, in Section 3.6, we attain on the 32 fitted patients a performance comparable to that obtained with a population calibrated to them, by training on a broad population constructed without reference to these patients.
3.1 Experimental Setup
We train all policies on a calibrated population of virtual patients, obtained by multiplying the initial cell numbers of the 32 fitted patients of [52] by independent lognormal factors, with the competition and growth parameters kept at their nominal values . For evaluation, we consider two test populations, namely the virtual test population of 1,000 patients drawn from independently of the training patients, and the 32 fitted patients, whose empirical distribution we denote by . All methods are evaluated on the same test patients with common random numbers. The construction of and the evaluation protocol are given in Appendix B.
All learned policies are parameterized by a gated recurrent unit (GRU) network [8] acting on features of the history , and trained by proximal policy optimization (PPO) [42] for 2,000 updates, each with 512 patients newly sampled from the training population. For each type of policy, we train three policies with different random seeds, and the remaining details are given in Appendix B.
We compare the learned policies with two clinical rules, namely continuous treatment, i.e., for all , and AT50. In our model, we implement AT50 as the policy that pauses treatment once , resumes it once , and otherwise repeats its previous action. Both satisfy the forced-treatment rule.
Since we impose no explicit penalty in (2.1) on patients who fare worse than under the standard of care, we monitor such patients separately. To this end, we compare the progression-free time of each patient with the progression-free time of the same patient under continuous treatment. We say that harms the patient if , and that it benefits the patient if , where the margin of three months corresponds to the interval of 12 weeks between two consecutive imaging assessments in the pilot clinical trial [52]. We refer to the fractions of patients harmed and benefited as the harm rate and the benefit rate, and report them together with the mean progression-free time . For the learned policies, all values are averaged over the three seeds, with per-seed values in Appendix C.
3.2 Substantial Improvement over AT50
We begin with the contextual MDP (2.1) under the exact observation (2.6), and refer to the policy learned from (2.1) as nominal RL. Table 1 compares nominal RL with the two clinical rules on both test populations.
Table 1: Nominal RL and the clinical rules in the nominal model, in terms of the mean progression-free time (months) and its gain over continuous treatment, the harm and benefit rates, the fraction of patients without progression after months (PF at ), the fraction of treated months, and the mean number of treatment courses, i.e., maximal runs of consecutive treated months.
| Method | Gain | Harm (%) | Benefit (%) | PF at (%) | Treated (%) | Courses | |
|---|---|---|---|---|---|---|---|
| Virtual test population (1,000 patients) | |||||||
| Continuous treatment | 15.81 | - | - | - | 2.7 | 100.0 | 1.0 |
| AT50 | 29.58 | +13.77 | 28.4 | 54.0 | 32.5 | 28.7 | 6.2 |
| Nominal RL | 50.35 | +34.54 | 0.2 | 91.9 | 61.5 | 30.3 | 12.9 |
| Fitted patients (32 patients) | |||||||
| Continuous treatment | 14.66 | - | - | - | 0.0 | 100.0 | 1.0 |
| AT50 | 25.34 | +10.69 | 28.1 | 53.1 | 21.9 | 29.1 | 5.6 |
| Nominal RL | 48.43 | +33.77 | 0.0 | 94.8 | 53.1 | 29.8 | 12.7 |
Nominal RL substantially outperforms AT50. Specifically, it attains a mean progression-free time of 50.35 months on the virtual test population, compared with 29.58 months for AT50 and 15.81 months for continuous treatment. Its gain over continuous treatment is 34.54 months, more than twice the gain of 13.77 months attained by AT50. In addition, nominal RL harms 0.2% of the patients and benefits 91.9%,

(b) Harm rate

Tertile of initial resistant fraction
Continuous treatment
Figure 1: Nominal RL, AT50, and continuous treatment on the virtual test population, split into tertiles of the initial resistant fraction . (a) Mean progression-free time. (b) Harm rate.
compared with 28.4% and 54.0% for AT50. On the 32 fitted patients, nominal RL attains 48.43 months, compared with 25.34 months for AT50, and harms none of the fitted patients.
A few remarks are in order. First, the improvement is attained without administering more drug. Nominal RL treats in 30.3% of the months and AT50 in 28.7%, while nominal RL divides its treated months into 12.9 courses on average, compared with 6.2 for AT50. Hence nominal RL alternates between treatment and breaks roughly twice as often as AT50, with correspondingly shorter courses and breaks. Second, the improvement holds across patients with different initial resistance (Figure 1), a factor that correlates with the time to radiographic progression in both the adaptive therapy cohort and the standard-of-care cohort of [52]. When we split the virtual test population into tertiles of the initial resistant fraction , nominal RL attains 60.81 months in the lowest tertile and 35.57 months in the highest, compared with 37.28 and 19.93 months for AT50 (Table 6). AT50 mainly harms patients with few resistant cells, with a harm rate of 39.9% in the lowest tertile compared with 10.8% in the highest, while the harm rate of nominal RL is at most 0.4% in every tertile. Third, the definition of progression in Section 2.2 is essential for an informative comparison. If we declare progression only when the tumor grows under treatment as in [5], the growth of the tumor during a break is never penalized, and the rule that withholds treatment whenever permitted attains 53.79 months, the same value as all three seeds of nominal RL trained under this definition, compared with 52.60 months for AT50 (Appendix D). Consequently, such a definition does not allow us to assess the benefit of adapting the treatment to PSA.
In summary, by learning from data we obtain a policy that substantially improves on AT50 for every level of initial resistance without administering more drug. In addition, since the virtual test patients are drawn independently of the training patients, nominal RL generalizes to new patients from the training population, in line with Theorem 2.1.
3.3 Retaining the Benefit of Adaptive Therapy under Errors in PSA
Nominal RL acts on PSA as if it were exact. In clinical practice, however, PSA is subject to measurement errors. We therefore evaluate nominal RL under the random perturbations of Section 2.3.1 with , which is comparable to the reference change value of about 19% for total PSA, i.e., the smallest relative change between two consecutive measurements that can be distinguished from analytical and within-subject biological variation [35]. We also refer to the policy learned from (2.1) under the same perturbations as random-perturbation RL, and compare it with nominal RL and the two clinical rules in Figure 2.
We observe that errors in PSA with substantially reduce the benefit of the policies that do not account for them. Under random perturbations, nominal RL drops from 50.35 to 32.96 months, and its harm rate increases from 0.2% to 14.4%. Similarly, AT50 drops from 29.58 to 16.46 months, only marginally above the 15.81 months of continuous treatment, and its harm rate increases from 28.4% to 43.8%. In contrast, random-perturbation RL retains the benefit of adaptive therapy under such errors. Under random perturbations, it attains 44.49 months with a harm rate of 2.0%, close to the 45.94 months it attains without

Figure 2: Policies on the virtual test population in the nominal model and under random perturbations of PSA with . (a) Mean progression-free time. (b) Harm rate. See Table 4 of Appendix C for the values.
perturbation.
A few remarks are in order. First, under perturbations with , we can no longer ensure through the forced-treatment rule that treatment is restarted before progression. Indeed, since , an error that lowers the measured PSA can postpone the forced restart until after progression. Since AT50 resumes treatment only through the condition , such an error can postpone its restart in every treatment break. Second, we pay a price in the nominal model for accounting for errors in PSA, with 45.94 months for random-perturbation RL compared with 50.35 months for nominal RL.
In summary, policies that do not account for errors in PSA lose a substantial part of their benefit under errors of realistic magnitude, and by training under random perturbations we retain the benefit of adaptive therapy under such errors.
3.4 Robustness to Shifts in the Patient Dynamics at Almost No Price
We next turn to shifts in the patient dynamics, which arise when the competition and growth parameters deviate from their estimated values. We model such shifts by the ambiguity set of Section 2.3.2 with generating kernels drawn from , and refer to the policy learned from (2.8) with training radius as kernel-robust RL.
We evaluate all policies at the evaluation radii . At , the kernel is drawn uniformly from the generating kernels in each month, and for , each policy is evaluated against a best-response adversary, i.e., an adversary trained by PPO to minimize the reward of the policy while the policy is held fixed. In addition to the 32 generating kernels used in training, referred to as the training kernels, we evaluate the policies on 32 held-out kernels drawn independently from . Figure 3 shows the mean progression-free time and the harm rate in the nominal model and as functions of the evaluation radius, with the complete values in Table 2.
Kernel-robust RL improves on nominal RL and AT50 at every evaluation radius on both sets of kernels. In the nominal model, it forgoes between 1.58 and 2.22 months compared with nominal RL, which is small compared with its improvement of between 7.33 and 7.71 months over nominal RL at on the training kernels. On the training kernels, kernel-robust RL evaluated at its training radius improves on nominal RL by between 7.00 and 8.74 months, and in particular attains 46.57 months at , compared with 39.12 months for nominal RL. At , which exceeds every training radius, kernel-robust RL with attains 25.08 months, compared with 17.46, 11.65, and 12.72 months for nominal RL, AT50, and continuous treatment. In addition, the harm rate of kernel-robust RL is at most 1.7% at every radius on both sets of kernels, while on the training kernels, the harm rate of nominal RL grows from 8.9% at to 29.1% at , and that of AT50 from 44.4% to 65.1%.
A few remarks are in order. First, nominal RL loses much of its advantage once the parameters vary, even in the absence of an adversary. Since the multipliers of the generating kernels have mean larger than one, the resistant cells are on average suppressed more strongly at than in the nominal model.

AT50
Nominal RL
Kernel-robust RL,
Continuous treatment
Figure 3: Mean progression-free time (top) and harm rate (bottom) on the virtual test population. The left panels show the nominal model, and the middle and right panels show the performance as a function of the evaluation radius , (a) on the training kernels and (b) on the held-out kernels. Kernel-robust RL is shown for .
Indeed, at , continuous treatment improves from 15.81 to 16.11 months, and kernel-robust RL improves from between 48.13 and 48.77 months to between 53.07 and 53.45 months. Nominal RL, however, drops from 50.35 to 45.74 months. Hence a policy trained for a single pair is tuned to the pair used in training, and we benefit from exposing the policy to varying dynamics during training. Second, the best training radius increases with the evaluation radius. The policy with is best at , while the policy with is best at on both sets of kernels. Hence the training radius can be chosen according to the magnitude of the shifts expected in deployment. Third, AT50 falls below continuous
Table 2: Mean progression-free time (months) under shifts in the patient dynamics on the virtual test population for policies trained on the calibrated population, with harm rates (%) in parentheses.
| Condition | Nominal RL | Kernel-robust RL | AT50 | Continuous treatment | ||
|---|---|---|---|---|---|---|
| Nominal model | 50.35 (0.2) | 48.13 (0.1) | 48.77 (0.0) | 48.45 (0.0) | 29.58 (28.4) | 15.81 |
| Training kernels | ||||||
| 45.74 (8.9) | 53.45 (0.9) | 53.31 (1.0) | 53.07 (0.9) | 19.04 (44.4) | 16.11 | |
| 44.20 (8.9) | 51.20 (0.9) | 51.06 (1.2) | 50.88 (1.0) | 19.13 (43.8) | 16.04 | |
| 39.12 (12.2) | 46.49 (0.9) | 46.57 (1.3) | 46.50 (1.1) | 17.92 (45.9) | 15.68 | |
| 30.98 (18.2) | 37.88 (0.8) | 38.44 (1.2) | 39.72 (0.8) | 15.51 (51.1) | 14.56 | |
| 17.46 (29.1) | 23.38 (0.1) | 23.26 (0.6) | 25.08 (0.4) | 11.65 (65.1) | 12.72 | |
| Held-out kernels | ||||||
| 47.26 (8.6) | 54.80 (1.0) | 54.21 (1.7) | 53.66 (1.7) | 20.23 (43.6) | 16.81 | |
| 45.54 (9.4) | 52.80 (0.9) | 52.62 (1.2) | 52.36 (1.1) | 19.90 (44.4) | 16.71 | |
| 39.30 (13.6) | 46.83 (0.6) | 46.87 (0.8) | 47.10 (0.7) | 18.80 (46.1) | 16.32 | |
| 29.60 (19.9) | 36.67 (0.4) | 36.55 (0.5) | 37.85 (0.4) | 16.96 (49.8) | 15.27 | |
| 17.44 (20.4) | 19.48 (0.1) | 19.36 (0.1) | 20.13 (0.1) | 12.11 (63.1) | 13.31 | |

Figure 4: Cross-evaluation on the virtual test population. Each axis shows the mean progression-free time divided by the highest value attained in the corresponding condition by the policies in this figure. Kernel shift denotes the evaluation radius on the training kernels, and random perturbation denotes errors in PSA with . Kernel-robust RL is trained with . See Table 5 of Appendix C for the values.
treatment at on both sets of kernels. Indeed, at the adversary can select the generating kernel with the weakest competition in every month, and adaptive therapy fails, or only delays failure, when the competitive effect of the sensitive cells on the resistant cells is small [52].
In summary, by training against shifts in the patient dynamics, we retain the benefit of adaptive therapy under such shifts, including those generated by held-out kernels, while sacrificing almost no performance when the dynamics evolve as anticipated.
3.5 Universal Benefits of Kernel-Robust RL
So far, we have evaluated random-perturbation RL and kernel-robust RL only under the source of uncertainty that each policy is trained against. In deployment, however, the source of uncertainty is not known in advance, and we would like a single policy that performs well under all of them. We therefore cross-evaluate the two policies, i.e., we evaluate random-perturbation RL under shifts in the dynamics and kernel-robust RL with training radius under random perturbations of PSA, and compare both policies with nominal RL and the two clinical rules in Figure 4.
We find that kernel-robust RL nearly Pareto-dominates nominal RL and AT50 across the five conditions of Figure 4, namely the nominal model, the evaluation radii on the training kernels, and random perturbations of PSA. Indeed, the polygon of kernel-robust RL encloses the polygon of AT50, and lies outside the polygon of nominal RL on every axis except the nominal model. In particular, kernel-robust RL forgoes 1.58 months compared with nominal RL in the nominal model, and attains the highest value under every shift in the dynamics, with 53.31, 46.57, and 23.26 months at , compared with 45.74, 39.12, and 17.46 months for nominal RL. Under random perturbations of PSA, which it never encounters during training, kernel-robust RL still improves on nominal RL, with 38.65 compared with 32.96 months. In addition, AT50 falls below kernel-robust RL, and indeed below all learned policies, in every condition.
On the other hand, by comparing kernel-robust RL with random-perturbation RL in Figure 4, we observe that each of the two policies attains the highest value under the source of uncertainty it is trained against. Specifically, random-perturbation RL attains 44.49 months under random perturbations of PSA, compared with 38.65 months for kernel-robust RL, while kernel-robust RL attains higher values than random-perturbation RL under every shift in the dynamics.
In summary, kernel-robust RL nearly Pareto-dominates nominal RL and AT50 across the sources of uncertainty, in the sense that it nearly matches nominal RL in the nominal model, outperforms every other policy under shifts in the dynamics, and substantially improves on nominal RL and AT50 under errors in PSA. In view of this, we believe that kernel-robust training is a natural default for learning adaptive therapy.

Figure 5: Mean progression-free time on the 32 fitted patients in the nominal model for policies trained on the calibrated population and on the broad population.
policies, to be complemented by training under random perturbations when errors in PSA are of concern.
3.6 Zero-Shot Generalization from a Broad Synthetic Population
By Theorem 2.1, a policy trained on sufficiently many sampled patients generalizes to new patients drawn from the training population, provided that this population is broad enough to contain the patients of interest. So far, however, we have trained all policies on the calibrated population , which is constructed from the 32 fitted patients. We now train each type of policy on a broad population constructed without reference to the fitted patients, with , , and broad ranges of the initial tumor burden and the initial resistant fraction (see Appendix B). We then apply the resulting policies to the fitted patients without further training, which we refer to as zero-shot generalization, and evaluate them under shifts in the dynamics against best-response adversaries trained on the fitted patients. Figure 5 compares the two training populations, and Table 3 reports the policies trained on under errors in PSA and shifts in the dynamics.
Table 3: Mean progression-free time (months) on the 32 fitted patients for policies trained on and on under the conditions of Table 5.
| Method | Trained on | Trained on | ||||
|---|---|---|---|---|---|---|
| Nominal model | Nominal model | |||||
| Nominal RL | 48.43 | 48.59 | 46.14 | 33.99 | 13.64 | 26.85 |
| Random-perturbation RL | 45.17 | 43.54 | 46.64 | 38.37 | 22.04 | 42.08 |
| Kernel-robust RL, | 46.20 | 45.58 | 53.34 | 44.32 | 20.03 | 32.77 |
| Kernel-robust RL, | 46.46 | 46.03 | 52.84 | 43.31 | 20.79 | 31.90 |
| Kernel-robust RL, | 46.11 | 45.77 | 53.31 | 44.59 | 21.18 | 32.94 |
| AT50 | 25.34 | 25.34 | 17.82 | 16.91 | 10.07 | 16.22 |
| Continuous treatment | 14.66 | 14.66 | 14.97 | 14.37 | 10.90 | 14.66 |
We observe almost no loss on the fitted patients from training on the broad population. Nominal RL trained on the broad population attains 48.59 months, compared with 48.43 months when trained on the calibrated population, and the two training populations differ by at most 1.63 months for every type of policy. In addition, we retain on the fitted patients the benefits of training under random perturbations and of kernel-robust training. Under random perturbations of PSA, random-perturbation RL attains 42.08 months, compared with 26.85 months for nominal RL. Under shifts in the dynamics on the training kernels, kernel-robust RL attains between 43.31 and 44.59 months at and between 20.03 and 21.18 months at , compared with 33.99 and 13.64 months for nominal RL.
Kernel-robust RL also harms substantially fewer fitted patients than nominal RL and AT50 under the strongest shifts in the dynamics. Specifically, at on the training kernels, it harms between 8.4% and 16.7% of the fitted patients, compared with 47.3% and 79.3% for nominal RL and AT50, and on the held-out kernels it harms none of them, compared with 13.3% and 63.6% (Table 8).
In summary, by training on a broad synthetic population constructed without the fitted patients, we attain on these patients a performance comparable to that obtained with a population calibrated to them, in line with Theorem 2.1, and retain the benefits of both random-perturbation RL and kernel-robust RL.
4 Concluding Remarks
In this manuscript, we study adaptive therapy through the lens of robust contextual MDPs, in which the patient is modeled as a hidden context drawn from a population. To account for the uncertainty beyond the variation across patients, we further train the policy under random perturbations of the measured biomarker and against an adversary acting on the transition kernel. Within a model of abiraterone therapy fitted to clinical data, we find that (1) a policy learned within this formulation substantially outperforms AT50 and generalizes to the fitted patients from a broad population constructed without them, (2) errors in PSA of realistic magnitude substantially reduce the benefit of policies that do not account for them, while by training under such errors we retain the benefit of adaptive therapy, and (3) we attain robustness to shifts in the patient dynamics at almost no price in the nominal model, with the resulting policy nearly Pareto-dominating nominal RL and AT50 across all the errors and shifts we consider. In view of this, we believe that robust RL offers a principled route toward adaptive treatment policies that remain reliable beyond the model in which they are learned.
Use of Large Language Models (LLMs). We acknowledge the assistance of LLMs in prototyping the numerical experiments and improving the presentation of this manuscript.
References
[1] Emmanuel S. Antonarakis, Changxue Lu, Hao Wang, Brandon Luber, Mary Nakazawa, Jeffrey C. Roeser, Yan Chen, Tabrez A. Mohammad, Yidong Chen, Helen L. Fedor, Tamara L. Lotan, Qizhi Zheng, Angelo M. De Marzo, John T. Isaacs, William B. Isaacs, Rosa Nadal, Channing J. Paller, Samuel R. Denmeade, Michael A. Carducci, Mario A. Eisenberger, and Jun Luo. AR-V7 and resistance to enzalutamide and abiraterone in prostate cancer. New England Journal of Medicine, 371(11):1028–1038, 2014.
[2] A. Ben-Tal, D. den Hertog, A. M. B. De Waegenaere, B. Melenberg, and G. Rennen. Robust solutions of optimization problems affected by uncertain probabilities. Management Science, 59(2):341–357, 2013.
[3] Jose Blanchet and Karthyek Murthy. Quantifying distributional model risk via optimal transport. Mathematics of Operations Research, 44(2):565–600, 2019.
[4] S. A. Brown, B. P. Kovatchev, D. Raghinaru, J. W. Lum, B. A. Buckingham, Y. C. Kudva, L. M. Laffel, C. J. Levy, J. E. Pinsker, R. P. Wadwa, E. Dassau, F. J. Doyle, III, S. M. Anderson, M. M. Church, V. Dadlani, L. Ekhlaspour, G. P. Forlenza, E. Isganaitis, D. W. Lam, C. Kollman, R. W. Beck, and iDCL Trial Research Group. Six-month randomized, multicenter trial of closed-loop control in type 1 diabetes. New England Journal of Medicine, 381(18):1707–1717, 2019.
[5] Alexander P. Browning, Rebecca M. Crossley, Ryan J. Murphy, Helen Byrne, and Sara Hamis. Adaptive therapy under parametric, structural, and measurement uncertainty. arXiv:2608.18387, 2026.
[6] A. H. Bryce, J. J. Alumkal, A. Armstrong, C. S. Higano, P. Iversen, C. N. Sternberg, D. Rathkopf, Y. Loriot, J. de Bono, B. Tombal, S. Abhyankar, P. Lin, A. Krivoshik, D. Phung, and T. M. Beer. Radiographic progression with nonrising PSA in metastatic castration-resistant prostate cancer: post hoc analysis of PREVAIL. Prostate Cancer and Prostatic Diseases, 20(2):221–227, 2017.
[7] Bibhas Chakraborty and Susan A. Murphy. Dynamic treatment regimes. Annual Review of Statistics and Its Application, 1(1):447–464, 2014.
[8] Kyunghyun Cho, Bart van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1724–1734, Doha, Qatar, 2014. Association for Computational Linguistics.
[9] Jessica J. Cunningham, Joel S. Brown, Robert A. Gatenby, and Kateřina Staňková. Optimal control to develop therapeutic strategies for metastatic castrate resistant prostate cancer. Journal of Theoretical Biology, 459:67–78, 2018.
[10] Erick Delage and Yinyu Ye. Distributionally robust optimization under moment uncertainty with application to data-driven problems. Operations Research, 58(3):595–612, 2010.
[11] Finale Doshi-Velez and George Konidaris. Hidden parameter Markov decision processes: A semiparametric regression approach for discovering latent task parametrizations. In Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence (IJCAI-16), pages 1432–1440, 2016.
[12] Dalit Engelhardt. Dynamic control of stochastic evolution: A deep reinforcement learning approach to adaptively targeting emergent drug resistance. Journal of Machine Learning Research, 21(203):1–30, 2020.
[13] Samuel G. Finlayson, Adarsh Subbaswamy, Karandeep Singh, John Bowers, Annabel Kupke, Jonathan Zittrain, Isaac S. Kohane, and Suchi Saria. The clinician and dataset shift in artificial intelligence. New England Journal of Medicine, 385(3):283–286, 2021.
[14] Nicolas Fournier and Arnaud Guillin. On the rate of convergence in Wasserstein distance of the empirical measure. Probability Theory and Related Fields, 162(3–4):707–738, 2015.
[15] Kit Gallagher, Maximilian A. R. Strobl, Alexander R. A. Anderson, and Philip K. Maini. Deriving optimal treatment timing for adaptive therapy: Matching the model to the tumor dynamics. Bulletin of Mathematical Biology, 87(10):146, 2025.
[16] Kit Gallagher, Maximilian A. R. Strobl, Derek S. Park, Fabian C. Spoendlin, Robert A. Gatenby, Philip K. Maini, and Alexander R. A. Anderson. Mathematical model-driven deep learning enables personalized adaptive therapy. Cancer Research, 84(11):1929–1941, 2024.
[17] Rui Gao and Anton Kleywegt. Distributionally robust stochastic optimization with Wasserstein distance. Mathematics of Operations Research, 48(2):603–655, 2023.
[18] Robert A. Gatenby, Ariosto S. Silva, Robert J. Gillies, and B. Roy Frieden. Adaptive therapy. Cancer Research, 69(11):4894–4903, 2009.
[19] Assaf Hallak, Dotan Di Castro, and Shie Mannor. Contextual Markov decision processes. arXiv preprint arXiv:1502.02259, 2015.
[20] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963.
[21] Sandy Huang, Nicolas Papernot, Ian Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv preprint arXiv:1702.02284, 2017.
[22] Garud N. Iyengar. Robust dynamic programming. Mathematics of Operations Research, 30(2):257–280, 2005.
[23] Leslie Pack Kaelbling, Michael L. Littman, and Anthony R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 101(1–2):99–134, 1998.
[24] Robert Kirk, Amy Zhang, Edward Grefenstette, and Tim Rocktäschel. A survey of zero-shot generalisation in deep reinforcement learning. Journal of Artificial Intelligence Research, 76:201–264, 2023.
[25] Matthieu Komorowski, Leo A. Celi, Omar Badawi, Anthony C. Gordon, and A. Aldo Faisal. The artificial intelligence clinician learns optimal treatment strategies for sepsis in intensive care. Nature Medicine, 24(11):1716–1720, 2018.
[26] Michael R. Kosorok and Eric B. Laber. Precision medicine. Annual Review of Statistics and Its Application, 6(1):263–286, 2019.
[27] Daniel Kuhn, Soroosh Shafiee, and Wolfram Wiesemann. Distributionally robust optimization. Acta Numerica, 34:579–804, 2025.
[28] Jeongyeol Kwon, Yonathan Efroni, Constantine Caramanis, and Shie Mannor. RL for latent MDPs: Regret guarantees and a lower bound. In Advances in Neural Information Processing Systems, volume 34, pages 24523–24534. Curran Associates, Inc., 2021.
[29] Mengmeng Li, Yifan Hu, Daniel Kuhn, and Yan Li. Robust Markov decision processes on continuous state spaces. arXiv preprint arXiv:2605.28706, 2026.
[30] Yan Li. Computational hardness of static distributionally robust Markov decision processes. Operations Research Letters, 67:107465, 2026.
[31] Yan Li, Guanghui Lan, and Tuo Zhao. First-order policy optimization for robust Markov decision process. arXiv preprint arXiv:2209.10579, 2022.
[32] Yan Li and Alexander Shapiro. Rectangularity and duality of distributionally robust Markov decision processes. Mathematical Programming, 2025. Published online 3 November 2025.
[33] Yitao Lu, Qian Chu, Zhen Li, Mengdi Wang, Robert Gatenby, and Qingpeng Zhang. Deep reinforcement learning identifies personalized intermittent androgen deprivation therapy for prostate cancer. Briefings in Bioinformatics, 25(2):bbae071, 2024.
[34] Kexin Ma, Ningjing Wang, Zai Yang, Robert A. Cheke, and Biao Tang. Single-threshold-guided adaptive cancer therapy with partial-cycle treatment: A mechanistic and reinforcement learning analysis. PLOS Computational Biology, 22(6):e1014457, 2026.
[35] Fernando Marques-Garcia, Beatriz Boned, Elisabet González-Lao, Federica Braga, Anna Carobene, Abdurrahman Coskun, Jorge Díaz-Garzón, Pilar Fernández-Calle, Maria Carmen Perich, Margarida Simon, Niels Jonker, Berna Aslan, William Alexander Bartlett, Sverre Sandberg, and Aasne K. Aarsand. Critical review and meta-analysis of biological variation estimates for tumor markers. Clinical Chemistry and Laboratory Medicine, 60(4):494–504, 2022.
[36] Colin McDiarmid. On the method of bounded differences. In J. Siemons, editor, Surveys in Combinatorics, 1989, number 141 in London Mathematical Society Lecture Note Series, pages 148–188. Cambridge University Press, 1989.
[37] Peyman Mohajerin Esfahani and Daniel Kuhn. Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations. Mathematical Programming, 171(1–2):115–166, 2018.
[38] Jun Morimoto and Kenji Doya. Robust reinforcement learning. Neural Computation, 17(2):335–359, 2005.
[39] S. A. Murphy. Optimal dynamic treatment regimes. Journal of the Royal Statistical Society Series B: Statistical Methodology, 65(2):331–355, 2003.
[40] Arnab Nilim and Laurent El Ghaoui. Robust control of Markov decision processes with uncertain transition matrices. Operations Research, 53(5):780–798, 2005.
[41] Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 2817–2826. PMLR, 2017.
[42] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[43] Alexander Shapiro, Darinka Dentcheva, and Andrzej Ruszczyński. Lectures on Stochastic Programming: Modeling and Theory. Society for Industrial and Applied Mathematics, Philadelphia, PA, third edition, 2021.
[44] Lauren N. Steimle, David L. Kaufman, and Brian T. Denton. Multi-model Markov decision processes. IISE Transactions, 53(10):1124–1139, 2021.
[45] Maximilian A. R. Strobl, Jeffrey West, Yannick Viossat, Mehdi Damaghi, Mark Robertson-Tessi, Joel S. Brown, Robert A. Gatenby, Philip K. Maini, and Alexander R. A. Anderson. Turnover modulates the need for a cost of resistance in adaptive therapy. Cancer Research, 81(4):1135–1147, 2021.
[46] Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 23–30. IEEE, 2017.
[47] Cédric Villani. Optimal Transport: Old and New, volume 338 of Grundlehren der mathematischen Wissenschaften. Springer, Berlin, Heidelberg, 2009.
[48] Wolfram Wiesemann, Daniel Kuhn, and Berç Rustem. Robust Markov decision processes. Mathematics of Operations Research, 38(1):153–183, 2013.
[49] Haotian Ye, Xiaoyu Chen, Liwei Wang, and Simon Shaolei Du. On the power of pre-training for generalization in RL: Provable benefits and hardness. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 39770–39800, 2023.
[50] Chao Yu, Jiming Liu, Shamim Nemati, and Guosheng Yin. Reinforcement learning in healthcare: A survey. ACM Computing Surveys, 55(1):1–36, 2023.
[51] Huan Zhang, Hongge Chen, Chaowei Xiao, Bo Li, Mingyan Liu, Duane Boning, and Cho-Jui Hsieh. Robust deep reinforcement learning against adversarial perturbations on state observations. In Advances in Neural Information Processing Systems, volume 33, pages 21024–21037. Curran Associates, Inc., 2020.
[52] Jingsong Zhang, Jessica Cunningham, Joel Brown, and Robert Gatenby. Evolution-based mathematical models significantly prolong response to abiraterone in metastatic castrate-resistant prostate cancer and identify strategies to further improve outcomes. eLife, 11:e76284, 2022.
[53] Jingsong Zhang, Jessica J. Cunningham, Joel S. Brown, and Robert A. Gatenby. Integrating evolutionary dynamics into treatment of metastatic castrate-resistant prostate cancer. Nature Communications, 8(1):1816, 2017.
A Supplementary Proofs in Section 2
To establish Theorem 2.1, we define the distance between two history-dependent policies and as
where the inner maximum is taken over all histories up to period . We first show that the expected cumulative reward is Lipschitz continuous in with respect to .
Lemma A.1. Suppose , , and are finite, and for all . Then for any and any pair of history-dependent policies we have
Proof. Let us fix , and denote by the full history up to period , which consists of the history together with the states . To evaluate along the trajectories generated by , we set and define recursively, for ,
where the conditional expectation is taken over with , and is hence identical under and . By induction, we have
In addition, since the distribution of does not depend on the policy, we have . Consequently,
where (a) follows from and , and (b) follows from conditioning on , the definitions of and , and . Hence,
where (c) follows from Hölder's inequality, and (d) follows from the definition of and . The proof is then completed.
We next control the number of policies needed to cover the class of all history-dependent policies.
Lemma A.2. Suppose and are finite. Then for any , there exist history-dependent policies such that
Proof. Let us denote by the probability simplex over , and take a maximal subset satisfying for all distinct . By the maximality of , we have
To control , let us denote by the -ball of radius around within the affine hull of , which has dimension . Since for all , for any fixed , we have
By comparing the volumes in the above inclusion, we obtain
Let be the set of policies satisfying for any history , in which case . For any history-dependent policy , by choosing with for any , we obtain from (A.1). The proof is then completed.
Proof of Theorem 2.1. Let us set and , and let be the policies given by Lemma A.2, with . Let us first fix . Since are drawn independently from and , the values are independent random variables taking values in with mean . By Hoeffding's inequality [20], we obtain
for any s > 0. Let us take the union bound over and choose
Then with probability at least , we have
Let us now fix and some with . Whenever (A.2) holds, we have
(A.3)
where (a) follows from (A.2) and Lemma A.1 with . Since (A.3) holds for any , we obtain
where (b) and (d) follow from (A.3), and (c) follows from the definition of . In addition, we have and, since ,
The desired claim then follows by taking the supremum over .
Proof of Theorem 2.2. Let denote the empirical distribution of , which satisfies . To compare with , we use the 1-Wasserstein distance [47] between distributions and on , given by
where denotes the set of couplings of and . Let us first fix . For any , we have
where the inequality follows from (2.3). Taking the infimum over and then the supremum over , we obtain
Consequently, for any ,
where (a) and (c) follow from (A.4), and (b) follows from the definition of . Taking the supremum over , we obtain
It remains to control with high probability. Since whenever , and is invariant under a common translation of both distributions, without loss of generality, let us assume and , in which case . By Theorem 1 of [14] with transport cost and moment of order 3, there exists a constant depending only on such that
where the logarithmic factor is needed only for , and the additional term of order in [14] is absorbed into . In addition, let denote the empirical distribution obtained by replacing with some . By coupling every unchanged sample with itself and with , we have
Hence it follows from McDiarmid's inequality [36] that
for any . Let us choose . Then with probability at least , we have
The desired claim then follows by combining (A.5) and (A.6).
Proof of Proposition 2.1. Let us fix and , and denote by the full history up to period as in the proof of Lemma A.1. Since , we have under both and . For , we set and define recursively, for ,
By induction, we have and . In addition, for any distributions and and any measurable taking values in , we have
Let us denote . Then for any ,
where (a) follows from the conditions on and in Proposition 2.1, the definition of , and (A.7) with and . Taking the supremum over and summing up the resulting relation over , we obtain from that
Consequently,
where (b) follows from the condition on in Proposition 2.1 and (A.7) with and . The proof is then completed.
B Implementation Details
B.1 Patient Model
In the public code and data of [52], the PSA records and the fitted initial cell numbers are available for 32 patients, namely 17 patients of the pilot clinical trial and 15 patients of the contemporaneous cohort who received continuous treatment with abiraterone as the standard of care. Since the records of 25 patients begin before the first dose of abiraterone, we follow the public code to reconstruct the daily treatment indicator of each patient from the recorded treatment history, integrate (2.4) with from the fitted initial cell numbers along the reconstructed indicator, and take the cell numbers on the day of the first dose as the fitted initial state . Throughout, we integrate (2.4) by the classical fourth-order Runge-Kutta method with step size 1 in , and truncate and to after every step, as in the public code. For all 32 patients, we reproduce the trajectories computed by the public code up to a relative error below .
B.2 Training Populations
For , we select one of the 32 fitted initial states uniformly at random, multiply and by independent lognormal factors with log-standard deviation 0.2, and set . For , we draw , , , and the initial resistant fraction log-uniformly on . The range of extends from the value assumed in the earlier model of [53] to above the fitted value 6, and the range of lies within 25% of the fitted value 8. We take the ranges of and from the priors of [5], with the upper end of lowered from to to keep the progression threshold below the carrying capacity, and with drawn log-uniformly to adequately represent patients with few resistant cells. The virtual test population is drawn from with a fixed seed.
B.3 Generating Kernels
We take as the distribution of with and independent and truncated at two standard deviations. Under , the competitive effect at ranges approximately over [2, 18], whose lower end corresponds to the value assumed in the earlier model of [53] and whose upper end remains within the range of competition coefficients reported among species in nature [52]. We draw the training kernels and the held-out kernels of Section 3.4 independently from with different random seeds.
B.4 Policy Network and Training
The input of the policy network at visit consists of six features of , namely , the previous action, the elapsed time, the fraction of treated months, the time since the last change of action, and an indicator of forced treatment. We map these features through a linear layer with 64 units and tanh activation to a GRU with 64 hidden units, followed by linear heads for the action logits and the value. At visits with forced treatment, we exclude the action by masking its logit. The loss of PPO combines the clipped surrogate objective with clipping parameter 0.2, the value loss with coefficient 0.5, and the entropy bonus with coefficient 0.01, where the advantages are computed by generalized advantage estimation with parameter 0.95. In each update, we minimize the loss by the Adam optimizer with learning rate over four epochs with four minibatches, clip the gradient norm at 0.5, and stop the update once the approximate Kullback-Leibler divergence between the new and old policies exceeds 0.03. In training, we divide the reward of Section 2.2 by . For every combination of policy type, training radius, and training population, we train three policies with the random seeds 11, 23, and 37, and report each policy after the final update, without selecting checkpoints on test data.
B.5 Kernel Adversary
We parameterize the kernel adversary by a network of the same architecture as the policy network, and train it by PPO with the same hyperparameters, using the negative of the reward of the controller. In solving (2.8), we alternate between four adversary updates with the policy fixed and one policy update with the adversary fixed. The adversary selects the generating kernel of month t before observing , based on the observation , the previous action , the elapsed time , and the one-hot encoding of the kernel it proposed in the previous month. We use its output head to parameterize a categorical distribution over the generating kernels. In accordance with (2.9), the patient evolves under the proposed kernel with probability and under a uniformly drawn generating kernel with probability , and the adversary does not observe which of the two occurs. We initialize the output head of the adversary at zero, and hence the adversary proposes the kernels uniformly at random at initialization.
B.6 Evaluation
At evaluation, the learned policies select their most likely action at every visit. All methods are evaluated on the same test patients with the same random numbers, and on the fitted patients, each patient is evaluated under 50 independent replicates of the random perturbations. For every policy and evaluation radius , we estimate the robust value of by training a new best-response adversary against , held fixed, for 2,000 PPO updates, on patients drawn from the calibrated population for the virtual test population and on the fitted patients for the fitted test population, and average the performance of the policy against this adversary, which samples its actions, over 32 independent repetitions. It should be noted that the best-response adversary is computed numerically, and the value attained against it hence provides an upper estimate of the exact robust value. AT50 and continuous treatment are evaluated against their own best-response adversaries. Under shifts in the dynamics, we compute under the same adversary, held fixed, acting on the continuous-treatment trajectory, with common random numbers.
C Complete Numerical Results
To complement Section 3, we report the complete values underlying its findings. The comparison across levels of initial resistance in Section 3.2 extends to both test populations, on which nominal RL improves on AT50 in every tertile of the initial resistant fraction, while the harm rate of AT50 is highest among patients with few resistant cells (Table 6). The per-seed values of the learned policies under the conditions of Table 5 agree closely for nominal RL, random-perturbation RL, and kernel-robust RL in the nominal model and at (Table 7), and on the fitted patients, the three seeds of nominal RL attain 48.31, 48.66, and 48.31 months in the nominal model. The harm rates discussed in Section 3.6 for the policies trained on the broad population are given in Table 8, together with their mean progression-free times under shifts in the patient dynamics on the fitted patients.
Table 4: Mean progression-free time (months) on the virtual test population in the nominal model and under random perturbations of PSA with , with harm rates (%) in parentheses.
| Method | Nominal model | |
|---|---|---|
| Continuous treatment | 15.81 | 15.81 |
| AT50 | 29.58 (28.4) | 16.46 (43.8) |
| Nominal RL | 50.35 (0.2) | 32.96 (14.4) |
| Random-perturbation RL | 45.94 (0.1) | 44.49 (2.0) |
Table 5: Cross-evaluation on the virtual test population (mean progression-free time in months). The columns denote evaluation radii on the training kernels, and the column denotes random perturbations of PSA.
| Method | Nominal model | Shifts in the dynamics | Errors in PSA | ||
|---|---|---|---|---|---|
| Continuous treatment | 15.81 | 16.11 | 15.68 | 12.72 | 15.81 |
| AT50 | 29.58 | 19.04 | 17.92 | 11.65 | 16.46 |
| Nominal RL | 50.35 | 45.74 | 39.12 | 17.46 | 32.96 |
| Random-perturbation RL | 45.94 | 47.15 | 40.91 | 18.80 | 44.49 |
| Kernel-robust RL, | 48.77 | 53.31 | 46.57 | 23.26 | 38.65 |
Table 6: Mean progression-free time (months) by tertile of the initial resistant fraction in the nominal model, with harm rates (%) in parentheses. Tertiles are computed separately for each test population.
| Initial resistant fraction | Nominal RL | AT50 | Continuous treatment |
|---|---|---|---|
| Virtual test population | |||
| Low | 60.81 (0.4) | 37.28 (39.9) | 23.92 |
| Middle | 54.70 (0.1) | 31.56 (34.5) | 15.89 |
| High | 35.57 (0.0) | 19.93 (10.8) | 7.63 |
| Fitted patients | |||
| Low | 62.30 (0.0) | 31.40 (50.0) | 22.50 |
| Middle | 54.55 (0.0) | 28.91 (27.3) | 14.27 |
| High | 29.70 (0.0) | 16.27 (9.1) | 7.91 |
Table 7: Per-seed mean progression-free time (months) on the virtual test population for the conditions of Table 5.
| Method | Seed | Nominal model | ||||
|---|---|---|---|---|---|---|
| Nominal RL | 11 | 50.33 | 46.00 | 39.91 | 14.87 | 34.66 |
| 23 | 50.32 | 46.25 | 39.56 | 15.97 | 31.85 | |
| 37 | 50.40 | 44.96 | 37.89 | 21.53 | 32.38 | |
| Random-perturbation RL | 11 | 45.76 | 47.58 | 41.47 | 17.11 | 44.50 |
| 23 | 46.12 | 47.35 | 41.51 | 18.99 | 44.46 | |
| 37 | 45.95 | 46.52 | 39.75 | 20.29 | 44.51 | |
| Kernel-robust RL, | 11 | 47.95 | 53.58 | 46.15 | 20.43 | 38.86 |
| 23 | 48.57 | 53.45 | 46.73 | 25.28 | 36.31 | |
| 37 | 47.88 | 53.30 | 46.58 | 24.42 | 39.72 | |
| Kernel-robust RL, | 11 | 48.71 | 53.48 | 46.61 | 23.12 | 38.15 |
| 23 | 48.34 | 53.54 | 46.57 | 25.19 | 38.11 |
| Method | Seed | Nominal model | ||||
|---|---|---|---|---|---|---|
| 37 | 49.25 | 52.90 | 46.54 | 21.48 | 39.67 | |
| Kernel-robust RL, | 11 | 48.66 | 53.02 | 46.11 | 24.66 | 38.27 |
| 23 | 48.13 | 53.19 | 46.93 | 25.77 | 36.10 | |
| 37 | 48.56 | 52.98 | 46.48 | 24.79 | 36.38 |
Table 8: Shifts in the patient dynamics on the 32 fitted patients, policies trained on the broad population. Notation as in Table 2.
| Condition | Nominal RL | Kernel-robust RL | AT50 | Continuous treatment | ||
|---|---|---|---|---|---|---|
| Nominal model | 48.59 (0.0) | 45.58 (0.0) | 46.03 (0.0) | 45.77 (0.0) | 25.34 (28.1) | 14.66 |
| Training kernels | ||||||
| 46.14 (7.1) | 53.34 (0.7) | 52.84 (0.9) | 53.31 (0.9) | 17.82 (45.4) | 14.97 | |
| 42.08 (10.3) | 50.15 (0.9) | 50.03 (1.1) | 50.19 (1.4) | 17.72 (46.1) | 14.83 | |
| 33.99 (15.3) | 44.32 (1.3) | 43.31 (2.9) | 44.59 (2.0) | 16.91 (48.3) | 14.37 | |
| 24.40 (24.2) | 34.51 (5.8) | 33.13 (8.4) | 34.81 (6.2) | 14.18 (53.9) | 12.85 | |
| 13.64 (47.3) | 20.03 (16.7) | 20.79 (12.3) | 21.18 (8.4) | 10.07 (79.3) | 10.90 | |
| Held-out kernels | ||||||
| 47.29 (8.5) | 56.35 (0.9) | 55.82 (1.1) | 55.95 (1.3) | 18.38 (47.9) | 15.65 | |
| 43.77 (10.7) | 52.59 (1.0) | 51.99 (1.3) | 52.25 (1.5) | 18.52 (46.9) | 15.46 | |
| 34.36 (16.7) | 45.20 (1.3) | 43.99 (2.4) | 45.22 (1.5) | 17.24 (50.5) | 14.91 | |
| 24.90 (25.8) | 33.93 (4.1) | 33.11 (4.7) | 34.60 (3.2) | 14.92 (56.3) | 13.76 | |
| 18.79 (13.3) | 20.86 (0.0) | 20.68 (0.0) | 20.74 (0.0) | 10.89 (63.6) | 11.64 | |
D Alternative Definition of Progression
To justify the definition of progression in Section 2.2, we compare it with an alternative definition, under which progression is declared only when the tumor grows under treatment as in [5]. Specifically, we declare progression at the first visit with , , and , i.e., when the tumor exceeds the threshold during treatment and is still growing. Growth during a treatment break is then never penalized, and the forced restart at occurs below the threshold . We report the results in the nominal model under this definition in Table 9, together with the forced-only rule, which withholds treatment whenever permitted, i.e., sets if and only if or . All three seeds of nominal RL, trained under this definition, attain 53.79 months on the virtual test population and 53.75 months on the fitted patients, which coincide with the values of the forced-only rule, while AT50 attains 52.60 and 53.06 months. Consequently, under the alternative definition, the benefit of adapting the treatment to PSA beyond the forced-treatment rule cannot be assessed.
Table 9: Mean progression-free time (months) under the alternative definition of progression in the nominal model. Forced only denotes the rule that treats only when forced.
| Population | Continuous | AT50 | Forced only | Nominal RL | Seeds 11 / 23 / 37 |
|---|---|---|---|---|---|
| Virtual | 15.81 | 52.60 | 53.79 | 53.79 | 53.79 / 53.79 / 53.79 |
| Fitted patients | 14.66 | 53.06 | 53.75 | 53.75 | 53.75 / 53.75 / 53.75 |