Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: exploration-exploitation

Exploration-Exploitation

探索-利用权衡
🎯Core Definition
The exploration-exploitation dilemma is the trade-off an agent faces between trying unknown actions to gather information and exploiting the currently best action for reward — the two cannot be maximized simultaneously, and optimal exploration should be allocated by information gain. The simplest strategy is ε\varepsilon-greedy: with probability 1ε1-\varepsilon pick the greedy action and with probability ε\varepsilon explore uniformly, so the greedy action is chosen with π(as)=1ε+εA\pi(a|s) = 1 - \varepsilon + \frac{\varepsilon}{|A|} and every other action with εA\frac{\varepsilon}{|A|}; ε\varepsilon is annealed (e.g. from 1.01.0 to 0.010.01), guaranteeing infinite exploration of every action so algorithms like Q-learning can converge. A better optimistic strategy is UCB1: at=argmaxa[μ^a+2lntna]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 reward of action aa, nan_a its visit count, and tt the total steps — the confidence bound shrinks as nan_a grows, balancing exploration and exploitation through "optimism in the face of uncertainty", achieving regret RT=t=1T(μμat)R_T = \sum_{t=1}^T (\mu^* - \mu_{a_t}) of O(lnT)O(\ln T) on multi-armed bandits.
💡Use Cases
all online learning — multi-armed bandits, A/B and online decisions in recommendation/advertising, RL training (ε annealing, optimistic initialization), and RLHF sampling (needs diverse data); interviews often compare ε-greedy vs UCB vs Thompson sampling.
Key Problems Solved
pure exploitation gets stuck in local optima (untried actions are underestimated) while pure exploration wastes reward; ε\varepsilon-greedy is simple but wastes linearly (always explores with a fixed random probability), whereas UCB/Thompson sampling weight exploration by uncertainty, cutting regret to logarithmic — exploration is paying for future information, so actions with high information gain deserve exploration first.
🎯5 High-Frequency Exam Points
1
Write the ε-greedy policy formula and explain why the greedy action gets 1-ε+ε/|A|.
2
Write the UCB1 selection formula and explain each term. Why does √(2ln t/n_a) shrink with n_a?
3
Compare ε-greedy, UCB, and Thompson sampling: exploration logic, regret bounds, use cases.
4
What is regret? Why does UCB achieve O(ln T) regret on MABs?
5
Why should optimal exploration be allocated by information gain? Other exploration tricks in RL (optimistic init, count-based bonuses)?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Exploration-Exploitation"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardQ-Learning (Off-Policy)Next CardPolicy Gradient Theorem

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticBehavioral CloningContextual BanditCoT & Reasoning RL