Unit 1 of 12 · about 4 hours · explain
Exploration as data collection: \(\epsilon\), entropy and optimism
Every deep RL update eats data the current policy collected. If collection never visits the good regions, no update rule can recover them.
You'll be able to
- Explain exploration as a data-collection choice and contrast directed optimism with undirected -greedy and entropy noise.
- State the UCB selection rule and the regret criterion, and predict when -greedy suffers linear regret.
- Name what an exploration bonus adds to a value target and what has to be tuned about it.
Covers
Read
In this order, only the parts listed
0 of 3 done
- CS234 Lectures 9 and 10: bandits, regret and UCBStanford CS234 Winter 2026 - Bandits and Exploration
Lecture 9: bandit setting, regret as opportunity loss with counts and gaps, and the optimism-under-uncertainty versus Thompson-sampling approaches
- CS234 Lecture 10: UCB regret boundStanford CS234 Winter 2026 - Bandits and Exploration
Lecture 10 post-class: UCB1 algorithm, the regret-bound sketch around Theorem 7.1, and the move to Thompson sampling and Bayesian regret
- Berkeley CS 285 Lecture 19: the exploration problem and optimistic deep RLBerkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - Exploration and Off-Policy Actor-Critic
Lecture 19, Part 1: the exploration problem with Montezuma's Revenge and the exploitation-versus-exploration definitions; Part 2: optimistic exploration in deep RL with the UCB exploration bonus and bonus-weight tuning
Focus on
- Regret is cumulative opportunity loss written through gaps and visit counts, so minimizing regret and maximizing reward are the same objective stated two ways.
- UCB picks : the second term is uncertainty, not noise, and it shrinks as grows.
- An -greedy policy explores indiscriminately while optimism prefers actions that are nearly greedy or highly uncertain; that is why fixed can keep paying linear regret.
- In deep RL the bonus is added to the reward or value target, which makes the bonus weight a tuning parameter that changes the learned policy.
Common mistakes · 3
- Reading UCB as mean plus noise. The bonus is a deterministic function of and ; the randomness sits in the estimated means.
- Assuming more exploration is always safer. A fixed bonus weight can drown the task reward, so the weight is part of the comparison, not a free setting.
- Judging exploration by one training curve. Regret and coverage statements need counts and seeds, not a single run that happened to stumble onto reward.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Two arms have means 0.9 and 0.8 with counts 100 and 2 after 102 pulls and c = 1. Which arm does UCB pick and why?Answer
Arm 2. Its UCB is about 2.321 against about 1.115 for arm 1, so uncertainty outweighs the lower mean.
2.Why can -greedy with fixed have linear regret while UCB has sublinear regret?Answer
Fixed keeps pulling suboptimal arms a constant fraction of the time, so regret grows with t. UCB shrinks exploration of an arm as its count grows, so suboptimal pulls grow sublinearly.
3.What does the bonus weight control when a UCB-style bonus is added to a deep RL target?Answer
How much the update prefers uncertain states over high-value states. Too large and the agent chases novelty instead of the task; too small and the bonus changes nothing.
4.An agent scores highly once after random play. Does that show its exploration method works?Answer
No. One lucky trajectory shows reachability, not a method. Compare visit counts, success rates and regret across seeds under matched budgets.
You're done when
You compute the UCB pick by hand, explain the linear-regret case for fixed , and state what a bonus weight changes in a deep RL target.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 12 more in the section
- Berkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - Exploration and Off-Policy Actor-CriticUC Berkeley · primary
Slides are public at https://rail.eecs.berkeley.edu/deeprlcourse/static/slides/lec-N.pdf; current videos are not, and the public Fall 2023 playlist numbers lectures differently. Study Lecture 19 (exploration) and Lecture 23 (advanced exploration), and the SAC part of Homework 3 (
src/agents/sac_agent.pyon InvertedPendulum and Hopper; HalfCheetah needs hours on a GPU). The homework pinsgym==0.25.2, which fails on NumPy 2, so port it to Gymnasium (terminatedandtruncated) or pinnumpy<2in its own environment, and turn off its forced WandB logging. - Stanford CS234 Winter 2026 - Bandits and ExplorationStanford University · required
Study Lectures 9 to 12 (bandits, optimism and upper confidence bounds, exploration in MDPs). Rebuild one exploration comparison with matched information, interaction, update and tuning budgets.
Also in this section
- Stanford CS224R Spring 2026 - Off-Policy and Goal-Conditioned RLStanford University · required
Study Lecture 05 (off-policy actor-critic) and Lecture 12 (multi-task and goal-conditioned RL) and their DDPG and HER readings. Implement one goal relabeling test on a small task.
- Soft Actor-Critic Algorithms and ApplicationsBerkeley AI Research · required
Read the maximum-entropy objective, the soft policy iteration and the actor and critic targets, then the automatic temperature adjustment (this version adds it; the first SAC paper used a fixed temperature). Implement or audit a compact SAC path and compare sample efficiency and wall time with PPO under a matched protocol.
- Addressing Function Approximation Error in Actor-Critic Methods (TD3)Fujimoto, van Hoof and Meger (ICML 2018) · required
Read the overestimation analysis for actor-critic methods, clipped double Q-learning, delayed policy updates and target policy smoothing. Ablate one of the three changes on a small continuous task with matched seeds.
- Hindsight Experience ReplayAndrychowicz et al. (NeurIPS 2017) · required
Read the goal-conditioned setup and the relabeling strategies (final, future, episode). Implement relabeling on a sparse-reward bit-flipping or goal task and test that relabeled transitions carry the substituted goal and its recomputed reward.
- Exploration by Random Network DistillationBurda et al. (ICLR 2019) · support
Read the prediction-error bonus, the separate intrinsic and extrinsic value heads and the non-episodic intrinsic return. Use it to explain why a novelty bonus depends on the representation and how it can reward noise.
- Unifying Count-Based Exploration and Intrinsic MotivationBellemare et al. (NeurIPS 2016) · support
Read the pseudocount derivation from a density model and the exploration bonus built on it. Compare a tabular count bonus with its pseudocount form on a small grid.
- Deep Reinforcement Learning at the Edge of the Statistical PrecipiceDeepMind and Google Research · required
Study the failure of common point estimates and small-seed comparisons. Report interval estimates, aggregate-score sensitivity and performance profiles with the underlying per-run data retained.
- What Matters in On-Policy Reinforcement Learning? A Large-Scale Empirical StudyAndrychowicz et al. (2020) · support
Read the experimental protocol and the recommendations on normalization, initialization and hyperparameter sensitivity. Use it to set a tuning budget that is the same for every method you compare.
- rliableGoogle Research · support
Use the official repository to compute interquartile means, stratified bootstrap intervals and performance profiles for the track experiments. Verify the input run and task axes and keep plots reproducible from raw run records; check the pandas version it needs in your environment.
- Hands-on Modern RL - DDPG, TD3, SAC and Intrinsic MotivationWalking Labs · support
Use the DDPG and TD3 and SAC pages for vocabulary and the intrinsic-motivation page for concepts only. Its displayed TD3 target omits the terminal mask (the code has it), its SAC chart is author-reported, and its multi-agent demo does not learn; do not use those as practice. Pin commit 9231bab of walkinglabs/hands-on-modern-rl; its
code/chapterNNfolders do not follow the site chapter numbers. - Gymnasium documentation: API, time limits, vector envs and wrappersFarama Foundation · reference
Use the Env API page for the reset and step contract, the handling-time-limits tutorial for termination versus truncation bootstrapping, the vector env pages for SyncVectorEnv and AsyncVectorEnv autoreset modes, and the wrappers table for RecordEpisodeStatistics, ClipAction, NormalizeObservation and TimeLimit.
- Stable-Baselines3 RL Tips and TricksStable-Baselines3 · reference
Use How to evaluate an RL algorithm for separate test envs, EvalCallback and deterministic eval; Which algorithm should I use for the discrete/continuous/goal picker and HER pointer; the custom-environment section for Markov, normalization and TimeLimit handling; and the seed-variance and RL-zoo tuning advice. Treat SOTA and speedup claims as pointers, not targets.