Unit 3 of 12 · about 4 hours · measure

Sparse, delayed and deceptive rewards, success coverage and unfair comparisons

Hard tasks punish the wrong measurement. An agent can improve reward while never covering the goal, and a comparison can favor the method that secretly saw more.

You'll be able to

  • Distinguish sparse, delayed and deceptive rewards and predict which one misleads a shaped-reward fix.
  • Measure state-action visitation and success coverage with an explicit distance or threshold rule.
  • Spot unfair exploration comparisons that hide extra interactions, privileged state or tuned bonuses.

Covers

Sparse, delayed and deceptive reward environmentsState-action visitation and success coveragePrivileged information and unfair exploration comparisons
1

Read

In this order, only the parts listed

0 of 3 done

  1. Hands-on Modern RL 12.1 Section 1: why sparse rewards need intrinsic motivationHands-on Modern RL - DDPG, TD3, SAC and Intrinsic Motivation

    Section 1: hard-exploration games, the total-reward mix with , and the computable plus exhaustible requirements for an intrinsic reward (page read 2026-10-14)

    Concepts only. Treat the Montezuma probability claim as illustration; your evidence comes from measured visitation, not the quoted number.

  2. HER: sparse binary rewards and the shaped-reward failureHindsight Experience Replay

    arXiv:1707.01495v3 Sections 4.2 to 4.4 with Figures 3 to 5: DDPG with and without HER on pushing, sliding and pick-and-place over 5 seeds with the 7 cm and 20 cm success rule, and the failure of every shaped reward tried

  3. CS234 Lecture 12: PAC, MBIE-EB and generalizationStanford CS234 Winter 2026 - Bandits and Exploration

    Lecture 12: PAC framework for MDPs, MBIE-EB with its exploration bonus, and the generalization slides where raw counts fail when each state appears once and bonus terms are computed at visit time

2

Focus on

  • HER uses binary sparse reward : 0 within a fixed tolerance and -1 elsewhere. Its reported success rule is a separate explicit distance at the end of the episode, such as 7 cm for pushing.
  • Deceptive means the shaped signal points away from the goal: HER Section 4.4 shows shaped rewards failing everywhere while sparse plus relabeling succeeds.
  • Coverage is measured over visited states and achieved goals, not over reward collected; a high-reward run can still cover almost nothing.
  • Fair comparisons match interactions, updates, information access and tuning: HER reports 5 seeds with standard-deviation bands and tunes its count-based baseline over a stated grid.
Common mistakes · 3
  • Replacing coverage with return. An agent can raise return by exploiting a nearby reward while the goal region stays unvisited.
  • Accepting a tuned baseline at face value. HER footnote 6 tunes its count baseline over and grids; an untuned baseline comparison proves nothing.
  • Calling a task sparse when it is deceptive. Sparse needs more visits; deceptive needs a different signal, and extra visits to the wrong region make things worse.
3

Try it yourself

Closed-book, before checking anything

Closed-book, write the HER binary reward and the pushing success rule, then sketch a visitation table for a small grid that separates success rate from state coverage. Explain in two sentences why the shaped rewards in HER Section 4.4 failed: they optimize distance while success is a threshold, and they penalize the touching behavior exploration needs.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.An agent doubles its episode return but visits the same 5 percent of states. Has exploration improved?Answer

    Not shown. Return measures exploitation of visited regions; exploration needs visitation or success-coverage numbers over the state or goal space.

  2. 2.Why did shaped distance rewards fail on the HER manipulation tasks while sparse binary rewards with HER succeeded?Answer

    The shaped rewards optimize distance while success is a radius threshold, and they penalize imprecise touching, which teaches the agent not to touch the box. Sparse reward plus relabeling keeps the true objective and densifies signal honestly.

  3. 3.Method A beats method B but used twice the environment steps and a tuned bonus. What do you demand before accepting the win?Answer

    A rematch with matched steps, updates, information access and tuning budgets, plus per-run records and coverage numbers, not just mean return.

  4. 4.Each state appears once in a large task. Why do raw counts stop helping?Answer

    Every count stays near zero so every bonus looks the same. Novelty then needs generalization through densities, features or predictor error, with the representation dependence stated.

You're done when

You report visitation and thresholded success separately from return, and you can reject an exploration win that hides extra steps, state or tuning.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 11 more in the section
  • 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.

  • 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.

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

Also in this 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.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 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.

  • 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.

  • 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.