UCB1 is a frequentist optimistic exploration algorithm: each round picks the arm with the largest confidence upper bound at=argmaxa[μ^a+na2lnt], where μ^a is the empirical mean of arm a, na its play count, and t the total rounds. The exploration bonus 2lnt/na, derived from Hoeffding's inequality, shrinks with na and grows with t: well-explored arms have bounds near their means (exploitation), neglected arms get high bounds (exploration), balancing exploration-exploitation automatically.
💡Use Cases
recsys/ads cold-start, multi-arm experiments, any online decision needing a parameter-free, simple, provably near-optimal algorithm; interviews love "compute which arm UCB picks" and the O(lnT) regret proof.
⚡Key Problems Solved
ε-greedy explores blindly at a fixed rate, wasting samples; UCB concentrates exploration on arms that might be optimal via confidence bounds, achieving the optimal O(lnT) regret (same order as Thompson sampling) with no Bayesian prior — fully frequentist and ready to deploy.
🎯5 High-Frequency Exam Points
1
Meaning of each term in UCB1? Why is 2lnt/na the optimal exploration bonus (Hoeffding)?
2
Numerical: at t=100, 3 arms with (na,μ^a): arm1 (60, 0.6), arm2 (30, 0.5), arm3 (10, 0.4) — compute each UCB value and pick the arm.
3
Sketch the O(lnT) regret proof: why is each bad arm's play count bounded by O(lnT)?
4
How does UCB's exploration fundamentally differ from Thompson sampling and ε-greedy?
5
Limitations and extensions of UCB1: non-stationary environments, reward assumptions, UCB1-tuned / sliding-window UCB?