← Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: ucb

UCB1 (Upper Confidence Bound)

UCB1 乐观估计
🎯Core Definition
UCB1 is a frequentist optimistic exploration algorithm: each round picks the arm with the largest confidence upper bound at=arg⁡max⁡a[μ^a+2ln⁡tna]a_t = \arg\max_a \left[ \hat{\mu}_a + \sqrt{\frac{2\ln t}{n_a}} \right], where μ^a\hat{\mu}_a is the empirical mean of arm aa, nan_a its play count, and tt the total rounds. The exploration bonus 2ln⁡t/na\sqrt{2\ln t / n_a}, derived from Hoeffding's inequality, shrinks with nan_a and grows with tt: 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(ln⁡T)O(\ln T) 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(ln⁡T)O(\ln T) regret (same order as Thompson sampling) with no Bayesian prior — fully frequentist and ready to deploy.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of UCB1 (Upper Confidence Bound).
Use Cases
In production engineering, what are the primary use cases for UCB1 (Upper Confidence Bound) and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Meaning of each term in UCB1? Why is 2ln⁡t/na\sqrt{2\ln t / n_a} the optimal exploration bonus (Hoeffding)?
2
Numerical: at t=100t=100, 3 arms with (na,μ^a)(n_a, \hat{\mu}_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(ln⁡T)O(\ln T) regret proof: why is each bad arm's play count bounded by O(ln⁡T)O(\ln T)?
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?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "UCB1 (Upper Confidence Bound)"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice ➔
← Previous CardMulti-Armed Bandit (MAB)Next Card →Thompson Sampling

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticBehavioral CloningContextual BanditCoT & Reasoning RL