Explore-Then-Commit and the Upper Confidence Bound Algorithms
The core finite-armed stochastic bandit algorithms in order of sophistication. Explore-Then-Commit (ETC) and its regret bound; tuning the commitment time; worst-case versus gap-dependent bounds; anytime algorithms, the doubling trick, ε-greedy and phased elimination. The optimism principle and UCB(δ), the random-sample-size subtlety, the good-event proof of the O(Σ log n/Δᵢ) and O(√(nk log n)) bounds. Asymptotically optimal UCB with confidence level f(t) = 1 + t log²t and the optimal constant 2/Δᵢ. MOSS, Doob's maximal inequality, the peeling device and the O(√(kn)) minimax bound, and MOSS's two weaknesses (suboptimality relative to UCB, instability of the regret distribution). Bernoulli concentration through the relative entropy d(p,q), Pinsker's inequality, the Chernoff bound and KL confidence intervals; KL-UCB and its asymptotic regret Σ Δᵢ/d(μᵢ,μ*). Extensions to known per-arm scales, empirical Bernstein (UCB-V), median-of-means and bounded rewards.
Corresponds to Lattimore & Szepesvári, Chapters 6–10.
Motivation: one problem, five increasingly sharp answers
Every algorithm here attacks the same problem: arms with unknown means, rounds, minimize regret. By the regret decomposition, , so the whole game is to pull each suboptimal arm as few times as possible while still being sure it is suboptimal. The algorithms differ in how they decide when they’ve seen enough.
| Algorithm | Exploration rule | Needs to know | Gap-dependent regret | Worst case |
|---|---|---|---|---|
| ETC (Ch. 6) | fixed budget per arm, then commit | and , for tuning | () | tuned; untuned |
| UCB() (Ch. 7) | optimism with | |||
| Asymptotically optimal UCB (Ch. 8) | optimism with | nothing (anytime) | , optimal | |
| MOSS (Ch. 9) | per-arm confidence | , optimal | ||
| KL-UCB (Ch. 10) | KL confidence intervals | nothing | (see notes) |
ConventionStanding assumption for Chapters 6–9
Every bandit is in : each arm’s reward noise is 1-subgaussian (definition). Other known constants follow by scaling rewards (Lemma 5.4). Two points this hides:
- every algorithm here relies on knowing ;
- arms may have different subgaussian constants: easy if they’re known (Exercise 7.2), harder if not (Exercise 7.7).
Chapter 10 replaces subgaussianity with Bernoulli or rewards.
ConventionNotation
is the number of pulls of arm after round , and is its empirical mean. is the mean of arm ‘s first samples, in the reward-stack model where each arm has a pre-drawn stack. Arm 1 is optimal without loss of generality.
Explore-then-commit (Chapter 6)
AlgorithmExplore-then-commit, ETC()
Input: the number of exploration pulls per arm, .
Ties in the argmax are broken arbitrarily.
TheoremTheorem 6.1 — Regret of ETC
On any 1-subgaussian bandit with ,
ProofDecompose; exploration is deterministic; commitment errors are subgaussian tails
Step 1: Decomposition. .
Step 2: Count pulls. Exploration pulls each arm exactly times. After that, arm is played in every remaining round iff it was the empirical winner:
Step 3: Being beaten by arm means a gap-sized deviation. The winner must at least beat arm 1:
Step 4: Subgaussian calculus. Each of and is an average of independent 1-subgaussian terms, so each is -subgaussian, and their difference is -subgaussian (rigorous version: Exercise 6.1). By Theorem 5.3 the probability is at most .
∎
IntuitionThe exploration–exploitation trade-off, in one formula
The first term is the price of exploring (every arm pulled times, needed or not). The second is the price of committing wrongly (with probability about , losing per round for the rest of the game). A larger shrinks the second term and grows the first.
Tuning the commitment time ()
With , the bound becomes
FormulaOptimal and the resulting bound
TheoremWorst-case bound (Exercise 6.2)
(6.6) implies for a universal constant , so when .
DerivationMaximize the gap-dependent term over
If , then . Otherwise set , so and :
The derivative vanishes where , i.e. , giving maximum value . So the term is at most , and works. (Constant worked here.)
DefinitionWorst-case versus gap-dependent bounds
- Worst-case (problem-free, problem-independent, gap-free): depends only on and the environment class, as in (6.7).
- Gap- (problem-, distribution-, instance-) dependent: depends on the specific instance through the gaps, as in (6.6).
WarningWorst-case bounds need bounded rewards
Without a bound such as , the worst-case regret of ETC, and of every reasonable algorithm that tries each arm at least once, is infinite: an adversary makes the bad arm arbitrarily bad. “Worst-case” always means “over a class with bounded reward range”.
WarningThe tuning cheats
(6.5) uses , which is never known. The horizon is sometimes known; the gap almost never is.
- Horizon-only tuning: gives for all instances, but no constant gives (Exercise 6.5a).
- Data-dependent commitment: alternate arms until a confidence-interval test separates them, which achieves and hence . A sharper stopping test achieves and hence (Exercise 6.5b–e).
ExampleExperiment 6.1 — Theory versus practice
Gaussian arms with means and , , ETC tuned by (6.5), averaged over runs. The bound (6.6) tracks the true expected regret closely as ranges over . The regret peaks at intermediate : small gaps cost little per mistake, and large gaps are found quickly. ETC’s immediate expected regret is also monotonically non-increasing in , though not smoothly.
WarningExpected regret hides a bimodal distribution (Exercise 6.9)
With and , both the expected regret and the standard deviation of the pseudo-regret depend sharply on . ETC’s regret is nearly two-valued: about if it commits correctly, and about if it commits wrongly. A standard deviation is a poor summary of such a distribution.
Variants and notes
DefinitionAnytime algorithm and the doubling trick
An algorithm is anytime if it needs no advance knowledge of . ETC isn’t. The doubling trick restarts a horizon- algorithm on epochs of lengths (without resetting the global clock). If the base algorithm has regret at most up to horizon , the restarted algorithm has (Exercise 6.6).
- with : . The geometric sum is dominated by its last term.
- with : , because every epoch pays a log. Faster-growing epochs such as recover .
- Cons: restarts throw away data, the transient behaviour is poor, and it is wasteful in practice. Natively anytime algorithms are preferable. (Nothing here uses stochasticity, so it also applies to adversarial and contextual settings.)
Algorithmε-greedy (Exercise 6.7)
Play each arm once. Then in round , play the empirical best with probability , and otherwise a uniformly random arm.
- A constant gives linear regret: .
- gives , but that requires knowing .
AlgorithmPhased elimination (Exercise 6.8; Auer–Ortner)
Keep an active set , starting from all arms. In phase , pull every active arm times, using only that phase’s samples for the means , and keep
Phase aims to eliminate every arm with . With suitable :
- the optimal arm is wrongly eliminated in a phase with probability at most ;
- ;
- the worst case is .
RemarkHistory
Robbins (1952) used “certainty equivalence with forcing”: play the empirical best, except on prescribed exploration times. Anscombe (1963) largely solved the Gaussian clinical-trial version. Later relatives include epoch-greedy (contextual bandits) and forced exploration / PEGE (linear bandits). Garivier et al. (2016) showed that all explore-then-commit and elimination policies are asymptotically suboptimal (Chapter 16).
The upper confidence bound algorithm (Chapter 7)
The optimism principle
IntuitionOptimism in the face of uncertainty
Act as if the environment is as nice as plausibly possible. In a new country, choosing between the unknown local cuisine and a familiar chain, optimism says: the local food might be amazing, so try it. After a few visits the statistics settle the question. Pessimism never tries it and may miss something wonderful forever.
ImportantWhy optimism gives sublinear regret
Give each arm an upper confidence bound that overestimates its mean with high probability. Then:
- the optimal arm’s index is at least (with high probability);
- a suboptimal arm is played only if its index beats the optimal arm’s, hence only if its index is at least ;
- every play of that arm shrinks its confidence width, so its index soon falls below .
Optimism is self-correcting: overestimates attract plays, and plays remove overestimates.
DefinitionUCB index (7.2)
From (5.6), . So
The added term is the exploration bonus (confidence width). An algorithm that plays the arm maximizing such a per-arm score is an index algorithm.
| Component | Detail |
|---|---|
| Inputs | Arm ‘s empirical mean and pull count; the confidence level . |
| Output | A plausible optimistic value for . |
| Large when | The arm looks good ( large) or is under-explored ( small). |
AlgorithmUCB() — Algorithm 3
For : play , observe , and update.
IntuitionWhy this particular form
If arm 1 has been played far more often, then , and to keep playing it the algorithm should be confident that every other arm is worse:
Two questions remain: whether the width can be made much narrower (the lower bounds say not for subgaussian noise), and how to choose . If is too large, the optimal arm’s index may drop below and it gets abandoned, at a cost of linear regret. If is too small, suboptimal arms get over-explored. A first guess is ; the analysis below needs .
WarningThe sample size inside the index is random (Exercise 7.1)
(5.6) holds for a fixed number of samples, but depends on the data.
- If is independent of the samples, the bound still holds.
- If is a stopping time, it can fail with probability 1: by the law of the iterated logarithm, , so the running mean eventually exceeds any fixed-level bound. Stop then.
- Fix: pay a union-bound penalty, . almost suffices (Garivier 2013; Chapter 20).
The proofs below avoid this by union-bounding over all possible sample counts .
Regret analysis
TheoremTheorem 7.1 — Gap-dependent regret of UCB
With , on any -armed 1-subgaussian bandit,
ProofThe good-event argument
Fix a suboptimal arm and a constant (chosen later).
Step 1: The good event.
The optimal arm is never under-estimated, and after samples, arm ‘s index is already below .
Step 2: On , arm is pulled at most times. Suppose not. Then some round has and . But
so arm isn’t the argmax, which is a contradiction. Since always,
Step 3: The optimal arm fails rarely. Union bound over its possible sample counts:
Step 4: Arm ‘s index falls by samples. Choose so that for some . Then
Step 5: Combine and tune. With the smallest valid and ,
The last term is polynomial in unless . Taking makes it at most 1, and gives . Multiply by and sum.
∎
IntuitionThe template for every optimistic analysis
Split “arm was played” into (a) the optimal arm’s index failed (rare by concentration and a union bound) or (b) arm ‘s index is still high (can only last about pulls). Every UCB-style proof in the book is a refinement of this split.
TheoremTheorem 7.2 — Worst-case regret of UCB
With , on any ,
ProofSplit arms at a threshold gap
The small-gap arms together get at most pulls. Then choose .
∎
IntuitionSmall gaps are cheap, large gaps are found fast
Arms with tiny gaps cost little per pull even if pulled often. Arms with big gaps are pulled rarely. The worst case sits in between, at . The same balancing argument converts any bound into .
RemarkHow good is this?
- The additive is unavoidable: every reasonable algorithm must try every arm once.
- No algorithm beats in the worst case (lower-bounds-for-finite-armed-bandits, Chapter 15). MOSS removes the .
ExampleExperiment 7.1 — UCB versus ETC
, Gaussian arms, . ETC with the gap-optimal (which requires knowing ) beats parameter-free UCB, but only slightly. ETC with any fixed (25, 50, 75 or 100) loses badly for some range of : a bump, a dip, then linear growth as committing wrongly becomes costly. A variant of UCB from Chapter 8 even beats optimally tuned ETC.
Notes and extensions
RemarkTwo problems with
A slightly smaller improves both regret and empirical performance, and depending on means the algorithm isn’t anytime. Chapter 8 fixes both by making the confidence level depend on .
RemarkIndependence can be relaxed
All results hold if, with the history,
i.e. conditionally centred, conditionally subgaussian noise. The proofs then use martingale concentration (Chapter 20).
WarningOptimism isn’t universal
It works well when (i) playing an action reveals that action’s quality and (ii) actions reveal nothing about other actions. If (i) fails, even sublinear regret can be lost. If (ii) fails, optimism may skip a low-reward, high-information action whose information would pay off. An example comes with linear bandits (Chapter 25).
RemarkOptimism bias
Psychologists document an “optimism bias” in humans and animals, among the most robust biases known. The authors note that its mathematical justification as a driver of exploration seems to have escaped notice in those fields.
TheoremKnown per-arm scales (Exercise 7.2)
If arm is -subgaussian with known , scale its bonus to . The regret becomes , independent of the optimal arms’ : an optimal arm’s noise only matters through its lower deviations, which the union bound handles cheaply.
TheoremAdapting to the variance: UCB-V (Exercise 7.6)
For rewards in , the empirical Bernstein inequality gives
with the empirical variance. An index built on it achieves
This replaces UCB’s with , a big gain for low-variance arms, and essentially unimprovable (Exercise 16.7). See Bernstein.
TheoremHeavy tails: median of means (Exercise 7.7)
Split samples into blocks and take the median of the block means. With only a finite variance,
A UCB built on it gets on . Subgaussianity is relaxed to a finite variance at the cost of constants. Alternatives include truncation with empirical Bernstein (which needs to know roughly where the mean is), Catoni’s estimator, and Huber loss. Bubeck et al. (2013) handle even infinite variance, with worse regret.
RemarkLazy updates (Exercises 7.4–7.5)
Phased UCB recomputes the argmax only at phase boundaries (lengths ), or keeps playing the chosen arm until its count grows by a factor . The regret degrades only mildly. This matters with delayed or batched feedback, communication costs, or expensive index computations.
Asymptotically optimal UCB (Chapter 8)
AlgorithmAlgorithm 6
Play each arm once, then
It is anytime: the confidence level depends on , not .
TheoremTheorem 8.1 — Finite-time and asymptotic regret
On any 1-subgaussian bandit,
With , , so , and the usual argument gives the worst case .
ImportantWhy the messier bound
(8.3) has the right order but the wrong constant: dividing by gives . Only the version (8.2) achieves , which Lai and Robbins showed no reasonable policy can beat on any instance (lower-bounds-for-finite-armed-bandits, Chapters 15–16).
LemmaLemma 8.2 — How long an index stays high
Let be independent and 1-subgaussian with mean 0, , , and . Then
ProofCount the first rounds for free, then integrate the subgaussian tail
Substituting evaluates the integral to , and supplies the remaining term.
∎
IntuitionThe right order
The index can’t drop below before , because the bonus alone exceeds until then. The lemma says it doesn’t stay up much longer.
ProofProof of Theorem 8.1: allow the optimal index to dip by ε
Step 1: Split.
Step 2: The optimal arm dips rarely. Union bound over its sample count :
using . The function was chosen so that converges (Exercise 8.1: the geometric sum is at most , and is at most about ).
Step 3: Arm ‘s index. Replace by (which only makes the event larger), index by arm ‘s own sample count (each count occurs in at most one round with ), and apply Lemma 8.2 with and gap .
Step 4: Asymptotics. Choose and let .
∎
ImportantThe trick
Chapter 7 needed the optimal arm’s index to stay above , which forced and a doubled . Here it only needs to stay above , and occasional dips are allowed as long as their total expected number is bounded (). That permits a narrower confidence width, , and recovers the optimal constant 2.
RemarkNotes
- Any with works, with messier algebra. For Gaussian rewards, or even slightly less suffices.
- Asymptotics can mislead: lower-order terms can dominate in every practical regime.
- History: Lai–Robbins (1985) proved (8.2) is optimal and achievable; Lai (1987), Katehakis–Robbins (1995) and Agrawal (1995) gave UCB-type asymptotic analyses; finite-time versions came later.
ExampleOne-armed bandits (Exercises 8.2–8.3)
Arm 2 pays a known mean 0, and arm 1 is . Standard UCB wastes optimism on arm 2. Use the index against the fixed value 0. Then is 0 if and if . Optimism is for uncertainty; don’t spend it on what you know.
MOSS: minimax optimality (Chapter 9)
The problem. UCB’s worst case is , and phased elimination gets . The lower bound is . Removing the log requires a confidence level that depends on each arm’s own count.
AlgorithmMOSS — Algorithm 7
Input . Play each arm once, then
(“Minimax Optimal Strategy in the Stochastic case”, Audibert–Bubeck 2009.)
IntuitionStop being optimistic about well-explored arms
Once , the bonus is zero: an arm that has received its “fair share” of the budget gets no exploration help. Arms pulled rarely get a bonus of order , which is smaller than UCB’s . MOSS explores less and saves the factor.
TheoremTheorem 9.1 — Minimax regret of MOSS
TheoremTheorem 9.2 — Maximal Hoeffding inequality
If are independent and -subgaussian and , then
This is the same bound as for alone, but now uniform over all .
ProofDoob’s submartingale inequality applied to
is a nonnegative submartingale (Exercise 9.1, by Jensen). Doob’s maximal inequality for submartingales gives
Then take .
∎
LemmaLemma 9.3 — The peeling device
For independent 1-subgaussian with mean 0, and ,
ProofUnion bound over a geometric grid of times
Step 1: Peel. Split into blocks . Within block , make the event larger by replacing with the block’s endpoints, then apply the maximal inequality (9.1) on :
Step 2: Algebra. Using , each term is at most . The terms are unimodal in , so the sum is at most the largest term () plus an integral. Both are , and the total is at most .
∎
IntuitionPeeling
A union bound over every time would cost a factor . A union bound over geometrically growing blocks costs only the number of blocks, about , and the maximal inequality handles each block at the price of its endpoint. This device also proves the law of the iterated logarithm.
ProofProof of Theorem 9.1: control the expected optimism deficit
Step 1: The deficit. Define
This is how far the optimal arm’s index ever drops below its mean. Arms with gaps above are rarely played. Arms with gaps below may be played often, but is small on average.
Step 2: Split the regret. .
Step 3: The deficit is small on average. By the tail-integral formula and Lemma 9.3 (with ), .
Step 4: Large-gap arms. For , the optimal index stays above , so , the number of samples at which arm ‘s index exceeds . Lemma 8.2 gives when . Summing over at most arms gives .
Total: .
∎
ImportantOptimism in expectation, not with high probability
UCB’s analysis needed the optimal arm to be optimistic with high probability. MOSS’s bonus is too small for that. Instead the proof bounds the expected amount of pessimism, and lets the arms it harms (those with gaps below ) be ones that cost little anyway.
Two problems with MOSS
WarningMOSS can be much worse than UCB
Take Gaussian arms with , , , and for . Then
Minimax and asymptotic optimality both hide this. Only fully finite-time, instance-dependent bounds reveal it.
WarningPushing expected regret down makes the regret unstable
With two arms and a well-tuned algorithm, the pseudo-regret is roughly bimodal:
- Minimizing the mean () gives , but on the failure event the second moment .
- A slightly smaller () barely raises the mean, to , while .
The last log factor of expected regret is bought with heavy tails.
Notes
RemarkFixes and refinements
- Asymptotics: MOSS has . Replacing the 4 with 2 and peeling on finer grids (Garivier 2013) recovers the optimal constant. For Gaussian noise, Brownian-motion boundary-crossing bounds avoid peeling altogether (Exercise 9.4: the Bachelier–Lévy formula via the method of images, and tangent bounds for concave boundaries).
- UCB*: the index (no ) is never worse than UCB, and has worst case (Exercise 9.3). “Improved UCB” (phased elimination) is the same idea in disguise.
- Best of both: optimally confident UCB, , and AdaUCB, with confidence level , are minimax optimal and never worse than UCB. AdaUCB is also asymptotically optimal.
- Anytime MOSS: Degenne–Perchet (2016).
Bernoulli rewards and KL-UCB (Chapter 10)
The problem. Bernoulli rewards (clicks, conversions) are -subgaussian for every mean, so UCB already applies. But a Bernoulli arm’s variance depends on its mean, and near 0 or 1 the empirical mean concentrates much faster than the worst case. Confidence intervals should shrink accordingly.
Concentration for sums of Bernoulli random variables
DefinitionRelative entropy between Bernoullis (Def. 10.1)
with limits at the boundary: , , and , equal 0 if and otherwise. This is the relative entropy , and it is the large-deviation rate of a Bernoulli average.
| Component | Detail |
|---|---|
| Signature | |
| First argument | The observed (or hypothesized) frequency. |
| Second argument | The true (or reference) mean. |
| Asymmetric | in general. |
LemmaLemma 10.2 — Properties of
For :
- and are convex, with unique minimizers at and respectively.
- Pinsker: .
- If , then .
ProofConvexity from the binary entropy; Pinsker by calculus; (3) by linearity in
(1) is the negative binary entropy , with , plus a linear function of . is plus the convex functions and . And unless .
(2) has ; show by differentiation that it is minimized there on (Exercise 10.1).
(3) is linear and increasing in , so for it is at most its value at , namely . Then apply Pinsker.
∎
LemmaLemma 10.3 — Chernoff’s bound
For i.i.d. Bernoulli() with sample mean :
ProofCramér–Chernoff with the exact Bernoulli MGF
For ,
The minimizing makes the bracket equal . The lower tail is symmetric.
∎
RemarkCredit
Chernoff attributed the bound to his friend Herman Rubin, but the name stuck.
IntuitionChernoff versus Hoeffding
By Pinsker, , which recovers Hoeffding. The two agree near . Near 0 or 1, Chernoff is far stronger, because the true deviation rate is much larger than there.
CorollaryCorollary 10.4 — KL confidence intervals
For , , and likewise for . Define
Then and . With , these are upper and lower confidence bounds.
ProofMonotonicity of on each side of
Lower deviations: is decreasing on , so , where solves . Apply (10.2).
Upper confidence bound: and is strictly increasing on with , so . Use the first part.
∎
RemarkComputing the bounds
and have no closed form, but is convex in its second argument, so Newton’s method solves quickly.
ExampleExample 10.5 — An asymmetric interval
, , 90% confidence: . The interval is highly asymmetric: it extends further below than above. Hoeffding’s half-width, , gives a similar lower bound but a vacuous upper bound (). KL intervals automatically respect and tighten as or 1.
The KL-UCB algorithm
AlgorithmKL-UCB — Algorithm 8
Play each arm once, then
The index is the largest mean that is still statistically plausible in KL terms.
TheoremTheorem 10.6 — Regret of KL-UCB
If , then
ImportantNever worse than UCB, much better near the edges
UCB tuned for -subgaussian rewards has asymptotic constant . By Pinsker, , so : KL-UCB is never worse asymptotically. When , a Taylor expansion gives
The worst-case scale is replaced by the arm’s actual variance , which helps a lot when means are near 0 or 1 (rare clicks).
WarningThis is not a CLT effect
(10.5) looks like “Bernoulli behaves like a Gaussian with matched variance”, but that approximation’s quality doesn’t improve with . As the confidence level must drive failure probabilities below , where the CLT says nothing (why the CLT fails for tails). The KL rate is the true large-deviation rate.
LemmaLemma 10.7 — The optimal arm’s index rarely dips
With , i.i.d. Bernoulli() samples, and
After time , the KL index built from any sample count is at least .
ProofShift the reference by ε, then Chernoff, then integrate the tail
using Lemma 10.2(3). By Corollary 10.4 this is at most . Integrating, .
∎
LemmaLemma 10.8 — A suboptimal arm’s index stays high only briefly
For i.i.d. Bernoulli(), , and ,
ProofEither the mean overshoots or is still small
Since is decreasing on , with . So , by Chernoff and then Pinsker.
∎
ProofProof of Theorem 10.6
Fix a suboptimal arm and with . Before (Lemma 10.7 applied to arm 1 with ), count every round. After , arm 1’s index is at least , so arm is played only when its own index reaches , i.e. when . That is the count of Lemma 10.8 with and :
Multiply by and sum. For the asymptotics, let slowly with (Exercise 10.2).
∎
Notes and extensions
RemarkBernoulli is the worst case on
For any with mean , convexity of gives , the Bernoulli MGF (Garivier–Cappé). So Chernoff’s bound, and KL-UCB’s guarantee , hold for any -valued rewards. They even hold for adapted sequences with deterministic conditional means (Exercise 10.3), though the bound degrades toward Hoeffding when the means are spread between 0 and 1.
RemarkNot quite tight for general bounded rewards
The optimal asymptotic constant over -supported distributions uses , a KL projection onto distributions with a better mean. This is never smaller than , and is achieved by DMED and IMED (Honda–Takemura).
RemarkExponential families (Exercises 10.4–10.5)
For a one-parameter exponential family arm, replace by the family’s KL divergence to get (Cappé et al. 2013). For non-canonical families, ties must be broken toward the most-played arm, and the lower-order term may dominate in practice.
RemarkHistory
Lai (1987) gave the first asymptotic version. Finite-time KL-UCB was proved simultaneously by Garivier–Cappé (2011) and Maillard et al. (2011). KL-UCB-type asymptotic optimality is also known for Thompson sampling (Kaufmann et al.; Korda et al.) and BayesUCB. Ménard–Garivier (2017) combined MOSS and KL-UCB to be minimax and asymptotically optimal for exponential families.
ExampleKL-UCB versus UCB (Exercise 10.6)
With and , compare , (where the two should be similar, since the variance is near its maximum) with or (where KL-UCB should win clearly, since its intervals shrink near the boundary).
Quick reference
| Object | Statement | Note |
|---|---|---|
| ETC regret | difference of means is -subgaussian | |
| ETC tuned () | ; | needs |
| ETC worst case | tuned; untuned | |
| Doubling trick | preserved; needs faster growth | |
| UCB index | optimism | |
| UCB, | good-event proof | |
| UCB worst case | split at | |
| Asymptotically optimal UCB | , ; | Lai–Robbins optimal |
| Lemma 8.2 | ||
| Maximal Hoeffding | Doob | |
| Peeling | union bound over | Lemma 9.3: |
| MOSS | bonus ; | minimax optimal |
| MOSS failure | instance: versus UCB’s | |
| Bernoulli KL | Pinsker: | |
| Chernoff | valid for any rewards | |
| KL interval | asymmetric, respects | |
| KL-UCB | never worse than UCB | |
| UCB-V | empirical Bernstein | |
| Median of means | finite variance suffices | constants grow |
Facts to keep to hand
- Every analysis is “pulls of each bad arm”. Bound by splitting into “the optimal arm’s index failed” (rare: concentration plus a union bound over sample counts) and “arm ‘s index is still high” (lasts about pulls). Then convert into a worst-case bound by splitting at a threshold gap.
- ETC’s weakness is its fixed budget. It is nearly optimal when tuned with and , but is unknown. Adaptive stopping, elimination and optimism all fix this by letting the data decide when exploration is done.
- The confidence level is the whole design. (simple proof) leads to (anytime, optimal constant 2) and then to per-arm (minimax, no log factor). Each refinement trades high-probability optimism for optimism in expectation, and pays in instance-dependent behaviour or regret tails.
- Optimism must match the noise model. Subgaussian widths are worst-case. KL widths for Bernoulli or bounded rewards, variance-adaptive widths (UCB-V), and robust estimators (median of means) all win by modelling the noise more faithfully.
- No single criterion tells the whole story. Minimax optimality (MOSS), asymptotic optimality (Lai–Robbins), finite-time instance behaviour (UCB beats MOSS on some instances), and regret tails (instability) can disagree.
References
- Lattimore & Szepesvári, Bandit Algorithms — Chapters 6–10
Mentioned in
- Bayesian Bandits
- Concentration of Measure for Bandits
- Contextual Bandits
- Lower Bounds for Finite-Armed Bandits
- Lower Bounds for Stochastic Linear Bandits
- Markov Decision Processes — From Bandits to Reinforcement Learning
- Non-Stationary Bandits
- Pure Exploration and Best-Arm Identification
- Ranking Bandits
- Stochastic Linear Bandits
- Stochastic Processes, Markov Chains, and Stochastic Bandits
- The Exp3 and Exp3-IX Algorithms
- Thompson Sampling