5.1.7 · D5Reinforcement Learning Foundations
Question bank — Exploration vs exploitation tradeoff
Prerequisites worth having open: 5.2.03-Multi-Armed-Bandits, 5.1.08-Q-Learning, and the parent Exploration vs exploitation tradeoff.
True or false — justify
Pure exploitation always gives zero regret if our reward estimates are correct
True only if the estimates are correct — but early on they never are, so exploitation locks onto a wrong "best" arm and regret grows linearly.
Regret can be negative if we get lucky and beat the optimal arm's mean
False — regret is defined against , the mean of the best arm; expected regret is , though a single lucky run of samples can look favourable, it does not lower the expectation.
A policy that explores forever with fixed achieves logarithmic regret
False — a constant keeps taking random (often bad) actions at a fixed rate, so regret stays , i.e. linear. You need to decay for sublinear regret.
Thompson Sampling needs an explicit exploration bonus term like UCB does
False — its exploration is implicit: wide posteriors occasionally sample a high value, so under-sampled arms get chosen without any hand-added bonus.
UCB is deterministic given the counts and estimates, while -greedy and Thompson Sampling are randomized
True — UCB always picks the arm with the highest , so with identical state it makes the identical choice; the other two involve a coin flip or a sample.
In -greedy, the probability of choosing the greedy action is exactly
False — it is , because the random branch can also land on the greedy action by chance.
If two arms have the same true mean, the tradeoff disappears
Partly — regret against can be zero either way, but the agent still spends samples discovering they are equal, so there is still an information cost early on.
An agent with a perfect model of the environment still faces the exploration–exploitation tradeoff
False — with a perfect model there is no uncertainty to resolve, so pure exploitation is optimal; the tradeoff exists only because reward distributions are unknown.
Spot the error
"Only exploring gives linear regret, but only exploiting gives sublinear regret since we commit to the best arm."
Wrong — both extremes give linear regret. Pure exploitation commits to a possibly wrong arm forever, so it loses every step.
"UCB's exploration bonus grows without bound as , so it explores more and more."
The bonus grows in but the arm's own also grows roughly linearly for played arms, so the bonus of the chosen arms shrinks; only neglected arms accumulate a rising bonus, which is exactly the self-correcting behaviour we want.
"Decaying as is bad because eventually we stop exploring entirely."
The tail diverges, so every action is still tried infinitely often — exploration never truly stops, it just becomes rare enough that exploitation dominates.
"In Thompson Sampling we should pick the arm with the highest posterior mean."
No — that would be pure exploitation. Thompson Sampling picks the arm with the highest posterior sample ; the sampling step is what injects exploration.
"The term in -greedy is a bug — the greedy action should never get exploration probability."
It is intentional. During the random branch every action, greedy included, is equally likely, so the greedy action's total probability is .
"For Montezuma's Revenge, we just need a bigger so the agent explores harder."
More random actions do not help when the reward requires a long precise sequence — random walks reach it with probability . You need directed exploration such as 5.3.05-Curiosity-Driven-Exploration.
"UCB with still explores because of the term."
With the whole bonus vanishes, leaving pure greedy selection on — no exploration at all regardless of .
Why questions
Why does regret use as the best achievable growth rate rather than a constant?
Because you can never be certain an arm is optimal from finite samples; you must occasionally re-check under-sampled arms, and the minimal necessary re-checking scales like .
Why does the standard error of an arm's estimate shrink like and not ?
Averaging samples reduces variance by , and the standard error is the square root of variance, giving — this is exactly the inside UCB's bonus.
Why is exploration fundamentally an RL problem but not a supervised-learning problem?
In supervised learning the dataset is fixed and given; an RL agent must generate its own data through actions, so what it learns depends on what it chooses to try — see 5.2.03-Multi-Armed-Bandits.
Why does the "optimism in the face of uncertainty" principle in UCB actually reduce regret rather than waste samples?
Optimistically over-valuing an arm means we try it; if it is genuinely good we gain, and if it is bad its estimate quickly drops and we stop — either way uncertainty is resolved cheaply.
Why can two agents with the same -values behave differently?
Because behaviour depends on the exploration policy, not just the values — one may be greedy, another -greedy, another UCB, giving different action choices from identical estimates.
Why is over-exploration analogous to overfitting's cousin — wasting capacity on noise?
Excess exploration keeps chasing noisy estimates instead of committing, much as 4.5.07-Overfitting-and-Regularization warns against fitting noise; both trade a controllable knob to balance signal against variance.
Edge cases
An arm has been tried zero times () — what does the UCB bonus do?
The bonus is infinite, so UCB forces every untried arm to be selected first — this is a deliberate initialization rule, not a math error.
At the term in UCB — does exploration vanish?
The factor is zero only at the very first step; conventionally each arm is played once first anyway, and by the bonus is positive again, so exploration resumes immediately.
What happens to Thompson Sampling with a Beta prior on an arm we have never played?
Beta is uniform on , so its samples are spread across the whole range — maximally uncertain, so the arm is very likely to sometimes sample high and get explored.
If all arms have identical reward distributions, does any strategy beat any other?
No strategy can lower expected regret below zero because every arm is optimal; the strategies differ only in variance of outcomes, not in expected regret.
As with decaying , is every action still tried infinitely often?
No — geometric decay makes converge, so total exploration is finite and some arm may be dropped forever, risking a permanent wrong commitment; use if infinite exploration is required.
A reward distribution is deterministic (no noise) — how many samples does an arm need?
Exactly one — a single pull reveals its true value with certainty, so the standard-error argument collapses and the only remaining tradeoff is trying each arm once.
Recall Quick self-test
The single most common trap on this topic ::: Believing pure exploitation gives low regret — it does not; committing to a wrong estimate costs every single step forever.