Why Greedy Allocation Can Get Stuck
Adaptive allocation uses observed outcomes to decide who receives each treatment next. A purely greedy rule makes this decision using the empirical rewards observed so far: it assigns the next patient to whichever treatment currently has the larger sample mean. This can look sensible when the sample means are reliable. Early in a trial, however, a small number of outcomes can be unusually favorable or unfavorable. If the rule then stops assigning patients to one treatment, it cannot collect the evidence that might correct its initial impression.
This tutorial isolates that risk. The key point is not that a greedy rule always chooses the inferior treatment, or that every early error is permanent. Rather, certain early histories create an absorbing allocation pattern: the treatment that appears better continues to be selected, and the neglected treatment’s estimate never changes. The distinction between a treatment’s true response probability and its observed mean is essential.
Model and Definition
Consider a trial with two treatments, \(A\) and \(B\), and a fixed horizon of \(T\) patients. Let \(Y_t\) be the binary reward observed for the patient assigned at time \(t\), where 1 denotes a favorable outcome and 0 an unfavorable outcome. Assume that each treatment \(i\) has a stationary response probability \(\mu_i=P(Y_t=1\mid\text{treatment }i)\). Conditional on the assignments, outcomes are independent Bernoulli observations with the response probability of the assigned treatment. Assume also that each outcome is observed before the next assignment, and that one patient’s treatment does not change another patient’s potential outcome.
These assumptions make the sample mean for a treatment a natural estimate of its response probability. They are substantive: changing patient mix over time, delayed outcome feedback, or treatment effects that vary with calendar time can make a simple stationary two-arm model inadequate. The examples below are hypothetical illustrations, not reports of a real trial.
An initial allocation to both treatments is necessary because an empirical mean is undefined before a treatment has been sampled. Pure greedy allocation describes what happens after this initialization. The number and order of initial assignments, as well as tie-breaking, are part of the policy and can affect its behavior.
A Simple Lock-In Mechanism
With Bernoulli rewards, one especially clear trap occurs when the apparently leading treatment has at least one observed success, while the neglected treatment’s observed mean is zero. If the greedy rule keeps assigning patients to the leading treatment, its sample mean remains strictly positive: the original success stays in the data, even if later outcomes are failures. The neglected treatment’s estimate stays at zero because it receives no further assignments. Thus the leading treatment remains strictly ahead at every subsequent decision.
Here \(S_A(t)\) is the number of successes observed on \(A\). This is a sufficient condition for permanent lock-in, not a claim that every greedy allocation error is permanent. If the neglected treatment has a positive empirical mean, enough new failures on the selected treatment can bring its mean below the neglected estimate and cause a switch. A greedy rule can therefore escape some bad starts, but it has no general guarantee of doing so promptly.
Worked Example: One Early Success Creates an Absorbing Pattern
Suppose treatment \(A\) has true response probability \(\mu_A=0.40\), while treatment \(B\) has \(\mu_B=0.60\). The trial first assigns one patient to each treatment. The hypothetical outcomes are \(Y_A=1\) and \(Y_B=0\). Calculate the estimates and determine the next assignments under the pure greedy rule.
After initialization, \(\hat{\mu}_A=1/1=1\) and \(\hat{\mu}_B=0/1=0\). Greedy allocation therefore assigns patient 3 to \(A\). Suppose the next outcome on \(A\) is 0. Then \(A\)'s mean becomes \((1+0)/2=0.5\), still greater than \(B\)'s unchanged mean of 0, so patient 4 is again assigned to \(A\).
After \(k\) additional assignments to \(A\), even if all \(k\) outcomes are failures, \(\hat{\mu}_A=1/(1+k)>0\), whereas \(\hat{\mu}_B=0\). Therefore the rule continues to assign every remaining patient to \(A\). Treatment \(B\) is truly better by \(0.60-0.40=0.20\), but its response probability is not learned from any further observations. The lock-in is a consequence of the allocation rule and the observed history, not evidence that \(A\) has the higher true response probability.
How Often Can This History Occur?
The lock-in condition can be translated into a probability under the model. If each treatment receives one initial patient, the two initial outcomes are independent Bernoulli variables. The particular history “success on inferior \(A\), failure on superior \(B\)” has probability \(\mu_A(1-\mu_B)\). On this history, the preceding argument shows that all later patients are assigned to \(A\).
Worked Example: Probability and Regret Contribution
Use the response probabilities from the previous example, \(\mu_A=0.40\) and \(\mu_B=0.60\), and suppose \(T=102\), with one initial assignment to each treatment. Find the probability of the specified lock-in history and its contribution to expected pseudo-regret.
The probability of success on \(A\) and failure on \(B\) during initialization is \(\mu_A(1-\mu_B)=0.40(1-0.60)=0.40(0.40)=0.16\). Thus this particular history occurs with probability 0.16 under the stated model.
For two treatments, the gap between the best response probability and that of \(A\) is \(\Delta_A=\mu_B-\mu_A=0.20\). Pseudo-regret sums the expected response-probability loss from each allocation relative to assigning every patient to the best treatment. On the specified history, the first two assignments include one assignment to each treatment; each of the remaining 100 assignments goes to \(A\). The history’s pseudo-regret is therefore \(100(0.20)=20\) expected favorable outcomes relative to those assignments being made to \(B\).
This event contributes \(0.16(20)=3.20\) to expected pseudo-regret. Other histories have nonnegative pseudo-regret, so the policy’s total expected pseudo-regret is at least 3.20 for this horizon. This is a lower bound from one event, not a calculation of the policy’s complete expected regret. It also does not mean that 3.20 particular patients were harmed; it is an expectation on the reward scale used in the model.
Lock-In Is Possible, Not Inevitable
A greedy rule does not invariably remain with its first choice. If both initial empirical means are positive, continued outcomes on the selected treatment can eventually reduce its mean below the other treatment’s unchanged mean. The allocation then switches. The amount of evidence needed depends on the initial counts and outcomes. The following example makes the distinction concrete.
Worked Example: A Greedy Rule Can Switch Treatments
Suppose the inferior treatment \(A\) has \(\mu_A=0.40\) and the better treatment \(B\) has \(\mu_B=0.60\). After a larger initial allocation, assume the observed data are hypothetical: \(A\) has 4 successes among 5 patients, and \(B\) has 3 successes among 5 patients. Greedy allocation initially chooses \(A\), because \(4/5=0.80\) exceeds \(3/5=0.60\). Suppose the next outcomes assigned to \(A\) are failures.
After the first additional failure, \(A\)'s mean is \(4/6\approx0.667\), still above \(B\)'s \(0.600\), so the rule assigns another patient to \(A\). After the second additional failure, \(A\)'s mean is \(4/7\approx0.571\), which is below \(B\)'s unchanged mean of \(3/5=0.600\). The rule now switches to \(B\). This history does not establish that greedy allocation will identify the better treatment reliably; it only shows that a poor initial leader need not create permanent lock-in when the neglected estimate is positive.
The contrast also explains why “irreversible” should be interpreted precisely. Once a treatment is no longer assigned, its estimate cannot improve or deteriorate; however, the selected treatment’s estimate can move. Permanent lock-in follows when the selected estimate is guaranteed to remain above the frozen estimate, as in the zero-mean Bernoulli example. In other histories, escape is possible, but the policy does not ensure that it will occur within a useful number of assignments.
Why the Problem Matters and How to Diagnose It
An allocation policy should be assessed not only by which treatment it selects at the next step, but also by whether its observations can correct a mistaken early ranking. In a finite trial, each assignment to an inferior treatment can carry an opportunity cost, while failing to sample a genuinely better treatment can leave uncertainty unresolved. The balance between patient benefit and learning is part of the allocation objective; earlier material on cumulative reward and regret formalizes these costs.
Several features of the allocation history can signal that pure greedy allocation is behaving poorly:
- Assignment counts stop growing for one treatment. If its observed mean has not changed for a long stretch, it may be starved of information rather than convincingly shown to be inferior.
- A large allocation imbalance follows very few observations. A high sample mean based on one or two patients is much noisier than the same mean based on many patients.
- Results depend strongly on the initial outcomes or tie rule. If small changes in initialization reverse most later assignments, the apparent allocation preference is fragile.
- The model’s assumptions are doubtful. Changing response rates, patient heterogeneity, dependence, or delayed outcomes can make a running sample mean a misleading summary even apart from greedy lock-in.
These are diagnostics, not proofs that one treatment is better. In particular, a low observed mean for an under-sampled treatment may reflect chance. A trial report should distinguish treatment response estimates from allocation frequencies and make clear how much information supports each estimate.
Comparison With Other Allocation Rules
The central difference between pure greedy allocation and its main alternatives is whether the rule deliberately gives weight to uncertainty or to additional learning. The table summarizes that distinction without implying that any alternative is automatically suitable for every clinical trial.
| Rule | What informs the next assignment | Relation to lock-in |
|---|---|---|
| Pure greedy | Largest current empirical mean | Can stop sampling an arm after a misleading early lead; no uncertainty bonus. |
| Explore-then-commit | A prespecified exploration phase, then the leading estimated arm | Protects an initial learning period, but may commit to a mistaken ranking after that phase. |
| Epsilon-greedy | Usually the leading empirical mean, with some assignments reserved for random exploration | Continued exploration can provide new observations on a neglected arm; the exploration rate affects performance. |
| UCB or KL-UCB | An estimate combined with an uncertainty-sensitive index | An arm with limited data can retain a high index and be sampled again; the index is designed to account for uncertainty. |
These approaches involve different trade-offs in reward, information, and allocation balance. A rule that explores more can reduce the chance of abandoning a superior treatment early, but may allocate more patients to a treatment that is in fact inferior. The appropriate choice depends on the trial’s objective, horizon, ethical constraints, and assumptions. Pure greediness is especially difficult to defend when initial samples are tiny and the cost of a mistaken early ranking is substantial.
Derivation of the Lock-In Bound
The probability calculation above also gives a short general justification for why greedy allocation can have expected regret that grows with the horizon. Suppose \(\mu_A<\mu_B\), both are in \((0,1)\), and exactly one initial observation is taken from each treatment. Consider the event \(E\) that the initial outcome on \(A\) is 1 and that on \(B\) is 0. Independence gives \(P(E)=\mu_A(1-\mu_B)\). On \(E\), the empirical means are 1 and 0. After any number \(k\geq0\) of further assignments to \(A\), its mean is at least \(1/(k+1)>0\), while \(B\)'s stays zero. Consequently, all \(T-2\) remaining assignments go to \(A\).
The gap for each such assignment is \(\Delta_A=\mu_B-\mu_A\). Since pseudo-regret is nonnegative on every history, restricting its expectation to \(E\) yields
For the numerical probabilities \(0.40\) and \(0.60\), the coefficient of \(T-2\) is \(0.40(0.40)(0.20)=0.032\), giving \(\mathbb{E}[R_T]\geq0.032(T-2)\) under this initialization and model. The bound is not an exact regret formula and does not describe all possible histories. It establishes that this one nonzero-probability failure mode alone can contribute an amount proportional to the number of remaining patients.
Limitations and Common Mistake
The examples rely on known, stationary Bernoulli response probabilities to assess what is truly better, but a real trial does not know those probabilities. The policy only sees realized outcomes. Nor does a lock-in calculation by itself settle whether an adaptive design is ethically or scientifically appropriate: outcome definitions, safety monitoring, delayed responses, inferential validity, and practical allocation constraints require separate consideration. A reward-maximizing rule is not a substitute for those design decisions.
The practical lesson is to inspect how the allocation rule uses uncertainty, not just which treatment currently has the higher estimated response. When small early samples determine almost all later assignments, the policy can convert random variation into a persistent imbalance.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- Under what Bernoulli-outcome condition does a zero empirical mean for the neglected treatment create a permanent greedy lock-in?
- If \(\mu_A=0.30\) and \(\mu_B=0.70\), what is the probability of an initial success on \(A\) and failure on \(B\) when each is sampled once?
- For the same response probabilities and \(T=52\), what lower bound on expected pseudo-regret follows from that one lock-in event?
- Why does an initial empirical mean of \(0.80\) for one treatment not establish that its true response probability exceeds \(0.60\)?
- Name one way a greedy rule can escape a poor initial choice, and explain why this does not guarantee reliable identification.
Solutions. (1) If the neglected treatment’s empirical mean is zero and the selected treatment retains at least one observed success, its mean remains positive at every finite sample size, so it stays selected. (2) The probability is \(\mu_A(1-\mu_B)=0.30(0.30)=0.0900\). (3) The gap is \(0.70-0.30=0.40\), and 50 assignments remain after initialization, so the bound is \(0.0900(50)(0.40)=1.80\) expected rewards. (4) A sample mean is based on realized outcomes and is subject to sampling variation; it estimates, but does not reveal, the true response probability. (5) If further outcomes on the selected treatment lower its sample mean below the neglected treatment’s frozen positive mean, greedy allocation switches. That possibility does not guarantee a timely switch: it depends on the realized outcomes, and a treatment assigned rarely may remain poorly estimated.