A map of sequential decision methods, from bandits to RLHF

Summary

All of these methods run the same loop (model the history, act, observe, update) and differ on four things: the objective (cumulative regret, final value, information, policy value, or a valid estimate), whether the state is only the learner’s belief or a physical state that actions change, whether data are gathered online by the algorithm or logged offline by someone else, and whether the reward is observed, delayed, or itself estimated. Bandits, BO and BED keep a fixed world and an epistemic state; dynamic treatment regimes and switchbacks exist because actions carry over; RLHF is a one-step contextual bandit whose reward is a fitted preference model. The first question for any media problem is therefore “does today’s action change tomorrow’s outcomes?”, and the second is “who chose the actions in my data?“.

Answer

The earlier Q&A Q - BED vs Bayesian Optimization vs Bandits for Media Experimentation established the three-way rule learn → BED, optimize → BO, earn while learning → bandit on a shared Bayesian surrogate. This note keeps that and adds the rows it lacked: dynamic treatment regimes, switchbacks and always-valid tests, delayed-feedback bandits, and RLHF.

1. The map

MethodOptimizesStateHorizonFeedback assumed
Multi-armed bandit (TS, UCB)Cumulative regret , Bayesian or at fixed None: “fixed over time”; only the posterior evolvesLong, many cheap pullsImmediate reward of the played arm only
Contextual / linear banditSame regret, per contextExogenous context , “independent random”, absorbed by augmenting the actionLongImmediate; shared transfers across arms
Delayed / censored banditRegret, discounted by NoneLongConversion arrives after delay with known CDF; lost after window
Bayesian optimisationValue loss (EI, KG) or entropy of / (ES, PES, MES)None: fixed; belief = GP posteriorShort, expensive evaluationsNoisy evaluation of
Sequential BEDIncremental EIG about ; no reward termBelief steps, greedyOutcome from the assumed model
Deep adaptive designTotal EIG incremental EIGRaw history fed to a policy network steps, non-myopicSimulated in training, real at deployment
DTR: Q- and A-learningPolicy value over a regime class Physical: , with caused by past treatment stages, smallOne final ; logged trajectories
G-computationNothing: evaluates fixed sequences Time-varying confounders periodsLogged; final
SwitchbackMinimax variance of , the lag- effect of sustained treatmentLast assignments (carryover) coin flipsOutcome each period; design-based
A/B test with mSPRT / confidence sequenceValid inference at any stopping timeNoneOpenPer-unit outcome; the only action is stop or continue
RLHF (PPO-ptx) plus a pre-training termPrompt ; “bandit environment”, episode ends after one responseOne stepLearned reward from pairwise human rankings
LLM agent loop / PSRLTask success / episodic returnGrowing context ; MDP stateEpisodeTool observations; rewards and transitions
MethodExploration mechanismData regimeCausal / structural assumptions
BanditsPosterior sampling (probability matching) or optimism ; -dithering is the wasteful baselineOnline, algorithm sets actionsStationarity; no carryover between pulls; a coherent prior (misspecified TS is measurably worse)
Delayed banditOptimism widened by while pulls are pendingOnlineDelay CDF known and shared across arms
BOAcquisition: PI EI UCB in explorativeness; entropy search is purely exploratoryOnline, myopicGP surrogate; loss held fixed throughout
BED / DADEverything is explorationBED online with inference each step; DAD trained offline on the simulatorModel correct: BED “uses the model both to fit data and to choose new data”
DTRNone: no exploration term at allOffline batch, SMART or observationalConsistency, SUTVA, sequential randomization, positivity; Q: every correct; A: contrast correct plus propensity or nuisance
SwitchbackNone by design: fair coins, flip once per Online but non-adaptiveNon-anticipation, -carryover, bounded outcomes; no outcome model
RLHFOn-policy sampling at temperature 1; the KL leash limits explorationOffline comparisons, then online rollouts against the proxyBradley–Terry choice model; labelers are the target population

2. What is genuinely the same idea

One Bellman recursion, two kinds of state. Optimal Regime via Dynamic Programming defines and by backward induction. Value Loss and Entropy Search says the non-myopic BO acquisition is “a sequential decision problem solvable in principle by dynamic programming (Bellman equation), but with cost exponential in the horizon”. From Designs to Policies (Deep Adaptive Design) calls adaptive design “a Bayes-adaptive Markov decision process with the incremental EIG as reward”, and the Gittins index is the exact solution of the discounted independent-arm bandit. Synthesis: it is one recursion, but in bandits, BO and BED the state is epistemic (a posterior over a fixed world), while in DTRs it is physical (covariates that treatment changes). This is why DTRs can be solved from logged data with regressions, whereas belief-state problems fall back on myopia (EI, greedy EIG), randomisation (TS) or amortisation (DAD).

Optimism is one construction. Bandit UCB and GP-UCB are “the identical optimistic-score idea” (UCB and Greedy Algorithms for Bandits); the delayed-feedback index is the same score with an inflated width; a UCB index is a one-sided confidence sequence. TS regret bounds need only that some valid exists.

Information per unit of regret. The information ratio in ^def-info-ratio puts bandits and BED on one axis: BED is the limit where the numerator is ignored, greedy the limit where the denominator is, and entropy search targets information about rather than all of .

Myopia and its two fixes. EI is “empirically under-exploratory”; greedy BAD ignores future steps; per-timestep resampling in an MDP needs episodes on a chain. The fixes rhyme: DAD optimises the total EIG, and PSRL samples once and commits for the whole episode.

The algorithm’s own log is a SMART. Synthesis: when the algorithm chooses actions from observed history, sequential randomization holds by construction with known propensities, which is the design condition Dynamic Treatment Regimes Framework calls the gold standard. What erodes is positivity: TS plays a hopeless arm with probability , and the adaptive-assignment result in Confidence Sequences needs . Switchbacks sit at the other extreme, where fair coins are provably optimal and no adaptation is allowed.

Double robustness is the single-stage idea repeated per stage. A-learning’s factor times the residual is consistent if the propensity or the nuisance is right, the same structure as AIPW (^ex-double-robustness).

3. What only looks similar

  • “Q-learning”. In DTRs it is offline, finite-horizon, backward regression with no exploration, and it is inconsistent if any is misspecified because is a nonlinear response. Only the name and the recursion are shared with Watkins’ online algorithm.
  • “Regret”. Murphy’s advantage is a per-stage function of state estimated from data. Bandit regret is a cumulative performance metric of an algorithm.
  • Context vs state. A contextual bandit’s is exogenous. A DTR’s is caused by , and conditioning on it naively opens the collider path that Time-Varying Treatments and G-computation warns about.
  • RLHF is a contextual bandit in name only. ^def-bandit-env says so explicitly, yet there is no posterior over the reward, no regret and no exploration bonus. The Gibbs-form optimum resembles a prior-times-likelihood update, but it is regularisation toward a reference policy.
  • Observed vs elicited reward. Every other row observes its reward. RLHF estimates it, and the reward model predicts held-out labelers at against an agreement ceiling of 73–77%. The specific failure is over-optimisation: a policy pushed outside the region where was fitted. The note’s marketing analogue is conjoint: “do not optimise far outside the design region of the choice experiment without a regulariser”.
  • Switchback vs two-arm bandit. Both alternate treatments over time, but the switchback holds propensities at and discards post-switch windows to estimate a sustained effect; a bandit would chase the transient.

Practical Implications

A routing checklist for media work:

  1. Does the action change future outcomes? Adstock, frequency fatigue and customer state are carryover. If yes, the bandit’s ” fixed, no state” row is violated. For measurement use a switchback with set from the adstock half-life (weekly pulsing under three-week carryover “estimates a badly attenuated effect”). For optimising a sequence (CRM contact cadence, retargeting escalation) the problem is a DTR. If no (creative rotation, bid rules), stay with bandits.
  2. Who chose the actions in the data? If the algorithm did, propensities are known. If planners did (historical MMM data), you are in the DTR/g-computation rows and owe sequential ignorability and positivity. Budget set in response to demand is the textbook violation.
  3. What is the deliverable? Revenue during learning → TS. Best allocation in expensive geo tests → BO. Parameters for the MMM → BED/DAD. A decision rule over customer histories → Q-/A-learning. A claim with an error rate → fixed allocation plus a confidence sequence.
  4. Is the reward observed, delayed or a proxy? Delay with eventual observation costs only an additive and leaves the Lai–Robbins rate intact. A hard attribution window of length rescales the problem to and makes it strictly harder, so lengthen the window before tuning the algorithm, and use the delay-corrected estimator rather than discarding pending pulls. If the reward is a proxy (clicks for incremental sales, a propensity score for CLV), apply the RLHF lessons: keep a leash to the incumbent policy, re-collect labels on-policy, and measure the proxy’s ceiling.
  5. Misspecification cost rises down the map. A bandit with a wrong prior learns slower. BED with a wrong model can get “stuck” querying uninformative designs. Q-learning with a wrong is inconsistent. Prefer A-learning-style contrasts when the response surface is complex but the decision boundary is simple.
  6. Agent-based models as the simulator. DAD and iDAD need only a simulator, so an ABM can train a geo-test design policy offline and stress-test a bandit under carryover before it touches spend.

Source Notes

NoteRelevance
Multi-Armed Bandits and Thompson Sampling - Overview · Bernoulli Bandit and Thompson Sampling AlgorithmProblem definition ( fixed), TS as probability matching
UCB and Greedy Algorithms for BanditsOptimism, GP-UCB identity, Gittins index, knowledge gradient
Regret Bounds for Thompson SamplingBayesian vs conditional regret, information ratio, TS failure modes
Contextual and Linear Bandits · Approximate Thompson Sampling and Practical ExtensionsExogenous context, coherent vs misspecified TS, nonstationarity, PSRL
Bandit Models with Delayed and Censored FeedbackDelay vs censoring, lower bounds, delay-corrected indices
Bayesian Optimisation · Acquisition Functions · Value Loss and Entropy SearchLosses, myopia, Bellman look-ahead
Sequential and Adaptive BED · From Designs to Policies (Deep Adaptive Design)Incremental and total EIG, offline-trained policies
Dynamic Treatment Regimes Framework · Optimal Regime via Dynamic Programming · Q-learning · A-learning and RobustnessEstimand, assumptions, backward induction, robustness trade-off
Time-Varying Treatments and G-computationPolicy evaluation under sequential ignorability
Switchback Experiment Design and Analysis · Confidence SequencesNon-adaptive design under carryover; anytime inference under adaptive assignment
RLHF and Instruction Tuning · Reward Modeling from Human PreferencesKL-regularised objective, bandit environment, learned reward
Tool Use and the Agent LoopLLM as a stationary policy with state in the context
Open Challenges and Future DirectionsBED’s sensitivity to misspecification; BAD as a Bayes-adaptive MDP
Russo et al 2018 - A Tutorial on Thompson SamplingChs. 1-8
q- and a- learningSchulte et al. 2014, Secs. 2-6
Ouyang 2022 - InstructGPT RLHFSecs. 3.5, 4

Gaps

  • Dream gap #58 (general RL and off-policy evaluation) is the hole in the middle of this map. Three clusters use RL machinery (bandits/PSRL, DTRs, RLHF) and no note defines MDPs, policy gradients or PPO. There is no note on IPS or doubly-robust OPE, which is the bridge from logged media data to the value of a new policy.
  • No online method for the physical-state rows. DTR notes are offline only; nothing covers bandits under carryover (restless or non-stationary-by-action) or SMART design for marketing.
  • Best-arm identification / pure exploration appears only as a TS failure mode.
  • Delayed feedback with context or unknown delay: Vernade et al. assume a known, shared delay CDF.
  • RLHF alternatives (direct preference optimisation, uncertainty-aware reward models that would permit principled exploration) are not covered.

Follow-Up Questions

  • How would a doubly-robust off-policy estimator value a new budget rule from historical planner-chosen spend, and how fast does positivity fail?
  • Can Thompson sampling be run over switchback blocks so that carryover is respected while allocation still adapts?
  • What does a two-stage SMART for CRM contact policies look like, and how much does A-learning buy over Q-learning on it?