Sketch why UCB1 has regret growing only like O(ln⁡T). For a suboptimal arm i with gap Δi=μ∗−μi, how do you show that it is pulled about 8ln⁡T/Δi2 times at most, and what does this give for Δi=0.5 and T=1000?

Reinforcement learning, Multi-armed bandits
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can combine a Hoeffding confidence bound with a counting argument to bound the number of pulls of a suboptimal arm.

Key idea

UCB1 pulls arm i only if its index μ^i+ct,ni, with ct,n=2ln⁡t/n, is at least the best arm's index. Once ni≥8ln⁡T/Δi2, the bonus is at most Δi/2, and this is impossible unless a low-probability confidence event fails.

Steps

  1. Hoeffding for rewards in [0,1]: P(μ^n≥μ+ε)≤e−2nε2. With ε=2ln⁡t/n this is ≤t−4, and the same holds for the lower tail.
  2. Define "good" events. The optimal arm's index satisfies μ^∗+c∗≥μ∗, and arm i's mean satisfies μ^i≤μi+ct,ni. Each fails with probability O(t−4) per count value.
  3. On good events, suppose arm i has been pulled ni≥ℓ=⌈8ln⁡T/Δi2⌉ times. Then ct,ni=2ln⁡t/ni≤Δi/2 for t≤T.
  4. So arm i's index is at most μi+2ct,ni≤μi+Δi=μ∗, which is at most the optimal arm's index. Arm i is not chosen (ties aside), so it is pulled at most ℓ times plus pulls on bad events.
  5. Sum the bad-event probabilities. For each round t there are at most t2 pairs of pull counts, each failing with probability O(t−4), so the failure probability is O(t−2). The series ∑tt−2 converges, which gives a constant such as 1+π2/3. So E[Ni(T)]≤8ln⁡T/Δi2+1+π2/3.
  6. Regret is ∑iΔi E[Ni(T)]≤∑i:Δi>0(8ln⁡TΔi+(1+π23)Δi), which is O(ln⁡T).
  7. Numbers: Δi=0.5, T=1000 give 8×6.908/0.25≈221 pulls at most, and regret about 0.5×221≈110 from this arm, plus a small constant. Even with 1000 rounds the logarithm gives a strong saving over the linear regret of a bad fixed choice.

Common mistakes

How long your answer should be

A page with the key steps; 8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: TRPO maximises a surrogate improvement subject to a KL bound. Linearise the objective as g⊤Δ and the constraint as 12Δ⊤FΔ≤δ, where g is the policy gradient and F is the Fisher information matrix. Derive the step Δ. For g=(1,1)⊤, F=diag(4,1) and δ=0.02, what is Δ, and how does its improvement g⊤Δ compare with a plain gradient step that uses the same KL?
Next in Reinforcement learning: A replay buffer holds N=4 transitions with absolute TD errors (4,2,1,1). Prioritised experience replay samples transition i with probability P(i)=piα/∑kpkα with pi=∣δi∣ and α=0.5. Compute the sampling probabilities and the importance-sampling weights wi=(NP(i))−β (normalised by their maximum) for β=1 and β=0.5. Why are the weights needed?