arXiv:2611.00395stat.MLOct 2026

Manuscript Offprint

arXiv:2611.00395

Transformer-Based Reinforcement Learning for Phase I Dose Allocation

Shijie Yuan

Abstract

Phase I dose-finding trials must learn from sparse toxicity observations while limiting exposure to overly toxic doses. We develop a single reinforcement-learning policy for trials with different numbers of ordered dose levels. Each dose is represented as a token containing its normalized position, accumulated patient count, observed dose-limiting toxicities (DLTs), and current-dose indicator. A Transformer encoder summarizes the dose tokens, trial-conditioned cross-attention produces a fixed-dimensional trial representation, and a three-action policy chooses de-escalation, staying, or escalation. The final maximum tolerated dose (MTD) decision is deliberately kept outside the learned policy: after the planned sample size, weighted isotonic regression and a prespecified safety cap select the dose closest to the target toxicity probability. In the simulations, toxicity-penalized policies reduce DLT burden while unpenalized policies improve selection accuracy at the cost of greater toxicity. These results demonstrate a controllable safety-accuracy trade-off but do not establish superiority over conventional dose-finding designs.

1 Introduction

Phase I oncology trials must learn an acceptable dose from limited patient cohorts while protecting participants from excessive toxicity. The operational decision is sequential: after each cohort, the trial must decide whether to escalate, remain at the current dose, or de-escalate. The statistical target is usually expressed through a dose-limiting toxicity (DLT) probability ϕ\phi, but the evidence available at each decision is sparse and unevenly distributed across dose levels.

For example, consider a trial with six ordered dose levels, d1<⋯<d6d_1 < \cdots < d_6, and a target DLT probability of ϕ=0.25\phi = 0.25. The trial may begin at d1d_1 and observe no DLTs in the first cohort, supporting escalation to d2d_2. If subsequent cohorts at d2d_2 and d3d_3 continue to show little toxicity, the allocation rule may move upward to gather information near the target. Conversely, if two DLTs are observed among three patients at d3d_3, the next decision should become more conservative: the trial may remain at d3d_3, de-escalate to d2d_2, or stop if the evidence indicates that even the lowest dose is unsafe. The same observed DLT count can imply different actions depending on the current dose, the number of patients already treated, the remaining sample-size budget, and the information collected at neighboring doses. This context dependence is the central sequential-allocation problem addressed here.

Conventional Phase I designs provide important safety and interpretability properties. Algorithmic and model-assisted approaches such as BOIN, i3+3, and mTPI-2 use prespecified decision boundaries or interval-based rules (Liu and Yuan, 2015; Liu et al., 2020; Guo et al., 2017). Model-based approaches such as CRM impose a dose-toxicity model (O'Quigley et al., 1990; Cheung, 2011), while isotonic approaches provide an alternative way to enforce monotonicity when estimating a dose close to the target (Ivanova and Flournoy, 2009). These conventional dose-finding designs are strong reference methods, but their allocation rules are generally specified for a fixed dose grid and do not learn a shared representation across trials with different numbers of dose levels.

Deep reinforcement learning has recently been explored for Phase I dose escalation (Matsuura et al., 2023), creating an opportunity to optimize sequential allocation directly against trial-level objectives. In the reported formulation, the escalation rule is learned through simulated trials, as is typical for model development in this setting. Consequently, its operating characteristics are tied to the prespecified state, action, reward, and scenario-generating distributions, and the extent to which the learned rule transfers to alternative dose grids or clinical settings remains an empirical question. The multidimensional policy may also require additional tools for interpretation, and coupling allocation with final MTD recommendation can make it less direct to separate sequential-allocation error from final-dose-estimation error.

These considerations motivate a framework with a shared representation across variable numbers of dose levels and an explicitly prespecified final selection rule. The proposed approach retains the flexibility of learned sequential allocation while keeping the final clinical recommendation transparent and separately evaluable.

The challenge is to obtain the flexibility of a learned policy without sacrificing transparency or allowing a training reward to define the final clinical recommendation implicitly. We therefore separate allocation from final selection. During the trial, a policy learns only the next-cohort action. At planned completion, a prespecified weighted isotonic-regression rule selects the MTD from observed data. This separation also makes safety-accuracy trade-offs visible: a policy can be evaluated by DLT burden, incorrect early stopping, and MTD-selection accuracy rather than by a single reward alone.

We present a Transformer-based reinforcement-learning framework in which dose levels are represented as a variable-length token sequence and trial-level context supplies a query for cross-attention. The resulting representation supports a fixed three-action policy for trials with different dose counts. The study asks whether this representation can improve sequential allocation while retaining a transparent final selector, and how the answer changes when the reward penalizes DLTs.

This paper makes three contributions. First, it formulates variable-dose Phase I allocation as a trial-conditioned representation-learning problem with a fixed action space. Second, it evaluates the resulting policy under a prespecified final MTD-selection rule and matched benchmark designs. Third, it characterizes the resulting safety-accuracy trade-off across dose counts, reward penalties, learning rates, and random seeds. Taken together, these contributions provide an empirical framework for studying flexible allocation under explicit safety criteria, rather than a claim that the current policy dominates conventional dose-finding designs.