Why does this matter? InRL, an agent must learn through interaction. Unlike supervised learning where all training data is given upfront, an RL agent must actively gather its own training data by taking actions. The sequence of actions determines what the agent learns.
Imagine you have 10tospendatafairwithmanygamebooths.Youplaythefirstgameandwin3—pretty good! Now you have a choice:
Exploitation: Keep playing the same game. You know it pays $3, so you'll definitely make money. Safe and steady.
Exploration: Try a different game. Maybe it pays 5(awesome!),ormaybeonly1(ops). It's risky, but you might find something better.
If you ONLY stick to the first game (exploit), you'll make 3everytime...butwhatifthere′sagamethatpays5 right next door? You'd never know!
If you try EVERY game randomly (explore), you'll find the best one... but you'll waste lots of money on bad games while searching.
The smart strategy: Try a few different games to find which ones are good. Once you find the best game, play it most of the time, but occasionally try others just in case something changed or you missed something.
This is exactly what computers learning to play video games do! They try different moves (explore) to learn what works, then mostly use the best moves they found (exploit), but occasionally try something new just in case.
The exploration-exploitation tradeoff is the fundamental challenge of reinforcement learning: balance using current knowledge (exploitation) with gathering new information (exploration). Pure exploitation gets stuck on suboptimal actions; pure exploration wastes reward on bad actions. Optimal strategies like epsilon-greedy, UCB, and Thompson sampling balance both by:
Exploring more when uncertain (early or for under-sampled actions)
Exploiting more when confident (after sufficient data)
Decaying exploration over time (as estimates improve)
The tradeoff has rigorous mathematical foundations in regret analysis, where optimal algorithms achieve O(logT) regret vs. O(T) for naive approaches.
#flashcards/ai-ml
What is exploitation inRL? :: Choosing actions that maximize reward based on current knowledge/estimates
What is exploration in RL? :: Trying actions with uncertain outcomes to gain new information about the environment
What happens if anRL agent only exploits?
Gets stuck on suboptimal actions because early estimates may be wrong; regret grows linearly O(T)
What happens if an RL agent only explores?
Learns accurate value estimates but never uses the knowledge; regret still grows linearly O(T)
What is regret in the multi-armed bandit problem?
The cumulative difference between the optimal action's reward and the agent's actual reward: Regret(T) = T·μ* - Σ E[r_t]
What is the epsilon-greedy policy?
With probability ε, choose a random action (explore); with probability 1-ε, choose the gredy action (exploit)
Why decay epsilon over time in epsilon-greedy?
Early in learning, high exploration helps discover good actions; later, lower exploration avoids wasting experience on known-bad actions
What is the UCB (Upper Confidence Bound) formula?
a_t = argmax_a [Q_t(a) + c·sqrt(ln(t)/N_t(a))], selecting actions with high estimated value OR high uncertainty
Why does the UCB exploration bonus include sqrt(ln(t)/N_t(a))?
The bonus is large for under-sampled actions (small N_t(a)) and shrinks with more data; ln(t) increases confidence threshold over time
What is Thompson Sampling?
Maintain a probability distribution over each action's reward, sample from each distribution, pick the action with highest sample
What is the key insight of Thompson Sampling?
Probability of picking an action equals the probability that action is optimal, naturally balancing exploration and exploitation
Why does gredy action selection fail in RL?
Creates a chicken-egg problem: need to explore actions to get accurate estimates, but gredy stops trying actions that seem slightly worse early on
What is the value of information in exploration?
Information gained from exploration enables better future decisions, so explore when expected future gain exceds immediate reward loss
What is curiosity-driven exploration?
Giving agents intrinsic reward bonuses for visiting novel or surprising states, helping in sparse-reward environments
What regret bound can optimal exploration strategies achieve?
O(log T) regret, which is sublinear—grows much slower than the linear O(T) regret of naive strategies
Exploration vs exploitation ek fundamental dilemma hai reinforcement learning mein. Socho tum ek nayi city mein ho aur 10 restaurants hain. Pehla restaurant try kiya, bahut acha laga. Ab tum kya karoge? Wahi restaurant bar-bar jaoge (exploitation) ya naye try karoge (exploration) maybe kuch better mil jaye? Agar sirf wahi restaurant jaoge, toh best restaurant miss ho sakta hai. Agar har baar nayi jagah try karoge, toh bahut sare bekaar meals waste honge. Yahi tradeoff hai—jo pata hai usse use karo ya naya discover karo?
RL mein agent khud seekhta hai actions leke. Gredy approach (hamesha best lagta action choose karo) problem create karta hai kyunki shuru mein estimates galat hote hain—ek baar koi action acha laga toh usse chipak jaoge, better option kabhi try nahi karoge. Pure exploration (random actions) bhi bekar hai kyunki seekh toh rahe ho par use nahi kar rahe. Smart strategies jaise epsilon-greedy (90% best action, 10% random), UCB (uncertain actions ko bonus points), aur Thompson Sampling (probability matching) dono balance karti hain. Shuru mein zyada explore karo (jab kuch pata nahi), bad mein exploit karo (jab confident ho). Mathematical analysis se prove hota hai optimal strategy O(log T) regret achieve karti hai, matlab time ke sath bahut slow regret growth—yahi efficient learning hai!