Deep RL III: Exploration, Continuous Control and Empirical Method

RL results change with exploration, environment wrappers, tuning effort and random seeds. This stage adds continuous-control and goal-conditioned mechanisms while building an evaluation protocol that can separate algorithmic gains from extra information, samples or compute.

Section 5 of 12 · 12 units · about 47 hours

0/12

By the end you can Run one continuous-control and one exploration-sensitive comparison under matched samples, compute and tuning, then defend the conclusion with raw multi-seed records, robust aggregates, visitation evidence and a retained losing or unstable regime.

Units

Build it

Mini project · about 12 to 16 hours

Exploration bonuses with honest multi-seed evaluation

Extend policylab with exploration bonuses and a hardened evaluation harness over small bandit, grid and sparse-goal tasks. Compare optimistic, count-based and predictor-error methods under matched budgets with robust aggregates. Every claim keeps per-run records, tuning isolation and a shift battery behind it.

  1. 1Build small bandit and grid tasks in envs/ with an oracles/ regret reference, then compare -greedy against UCB under matched interaction budgets, reporting counts, gaps and regret across seeds.
  2. 2Add a tabular count bonus and its pseudocount form plus an RND-style predictor-error bonus in deep/, checking each against a hand-derived reward mix and scoring extrinsic reward only with a noisy distractor cell present.
  3. 3Log visitation and success coverage on a sparse task in eval/, compare shaped against sparse rewards with the success rule fixed, and complete a fairness checklist covering interaction counts, information access and tuning effort.
  4. 4Test goal relabeling on a small sparse-reward task with substituted goals and recomputed rewards across final and future strategies, and add a history-stacking baseline on a delayed-observation variant.
  5. 5Record a versioned environment and wrapper manifest in envs/, prove termination-versus-truncation bootstrapping with a dedicated test, and keep a wrapper-difference control that flips a ranking.
  6. 6Build a versioned eval/ harness with separate seed streams and deterministic plus stochastic modes, retain every attempt under a fixed checkpoint rule, mask vector autoreset steps, write a throughput note naming hardware and versions, and pass the rliable tests before reporting robust aggregates.
  7. 7Compare two methods under a written four-counter budget in ledger/ with one tuning allowance each, median-over-seeds scoring and an isolated final seed set, then run a four-factor shift battery with failures retained and a deployment boundary naming retraining triggers.
What you hand in
  • Bonus and relabeling suite in envs/, deep/ and oracles/ with manifests and bootstrap tests.
  • Versioned eval/ harness with per-run records, rliable aggregates and the throughput note.
  • Matched-budget comparison, shift battery and deployment boundary with all failures retained.
How to check it
How it's graded

Optimism comparison

Pass: -greedy and UCB runs share matched budgets with counts, gaps and regret across seeds, and manifests rebuild the tasks.

Great: A wrapper-difference control flips a ranking, and the bootstrap test separates termination from truncation.

Bonus discipline

Pass: Count, pseudocount and predictor-error bonuses match hand-derived mixes, and task scores use extrinsic reward only.

Great: A noisy distractor cell shows the bonus decaying with visits while extrinsic success stays reported apart.

Coverage honesty

Pass: Visitation and success coverage sit beside return, the shaped-versus-sparse run fixes its success rule, and relabeling recomputes rewards.

Great: Future and final relabeling are ranked from evidence, and the history baseline names what recurrence would still add.

Robust reporting

Pass: The harness keeps per-run records with isolated finals, rliable aggregates carry intervals, and every attempt is retained.

Great: Profiles with bands plus a shift battery defend the boundary, with retraining triggers written down.

Resources

  • Berkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - Exploration and Off-Policy Actor-CriticUC Berkeley

    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.py on InvertedPendulum and Hopper; HalfCheetah needs hours on a GPU). The homework pins gym==0.25.2, which fails on NumPy 2, so port it to Gymnasium (terminated and truncated) or pin numpy<2 in its own environment, and turn off its forced WandB logging.

  • Stanford CS234 Winter 2026 - Bandits and ExplorationStanford University

    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.

  • Stanford CS224R Spring 2026 - Off-Policy and Goal-Conditioned RLStanford University

    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

    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)

    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)

    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.

  • Deep Reinforcement Learning at the Edge of the Statistical PrecipiceDeepMind and Google Research

    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.

  • Exploration by Random Network DistillationBurda et al. (ICLR 2019)

    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)

    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.

  • What Matters in On-Policy Reinforcement Learning? A Large-Scale Empirical StudyAndrychowicz et al. (2020)

    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

    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

    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/chapterNN folders do not follow the site chapter numbers.

  • Gymnasium documentation: API, time limits, vector envs and wrappersFarama Foundation

    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

    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.