Unit 10 of 12 · about 4 hours · measure

Matched interaction and compute budgets, tuning budgets and final-evaluation isolation

Unequal tuning or hidden compute decides more comparisons than ideas do. Matched budgets plus isolated finals separate the algorithm from the effort behind it.

You'll be able to

  • Fix matched environment-step, update, wall-time and compute budgets before comparing two methods.
  • Give every method the same tuning budget and keep final evaluation isolated from tuning.
  • Explain why code-level choices such as normalization can beat algorithm choice under sloppy protocols.

Covers

Matched environment-step, update, wall-time and compute budgetsHyperparameter tuning budget and final-evaluation isolation
1

Read

In this order, only the parts listed

0 of 3 done

  1. What Matters in On-Policy RL: budgets and code-level choicesWhat Matters in On-Policy Reinforcement Learning? A Large-Scale Empirical Study

    arXiv:2006.05990v1 Sections 2 to 3 with Appendix B: numbered design choices C1 and following, observation and value normalization with clipping, advantage estimation and training setup sweeps. Section 2 scores each configuration by the median of 3 seeds and compares choices by the 95th percentile over sampled configurations, roughly a random search over 20 configurations; use it to fix one tuning budget for every method

  2. Precipice paper: isolation and per-run retentionDeep Reinforcement Learning at the Edge of the Statistical Precipice

    arXiv:2108.13264v4 Appendix A.4 on non-standard maximum-based protocols and Section 4 recommendations: isolate final evaluation from selection and retain per-run data behind every aggregate

  3. SB3 tips: zoo hyperparameters and tuning practiceStable-Baselines3 RL Tips and Tricks

    General advice: take tuned hyperparameters from the RL zoo, run automatic hyperparameter optimization for new problems, raise the training budget for better performance, and expect seed variance across several runs (page read 2026-10-14)

2

Focus on

  • A budget has four counters: environment steps, gradient updates, wall time and compute; matching one while freeing the others still rigs the race.
  • Tuning budget covers configs tried, seeds per config and selection rule; the final number comes from held-out seeds after selection, never from the tuning table.
  • Normalization and setup choices move results as much as algorithm swaps: observation normalization is close to mandatory, value normalization helps on some tasks and hurts on Walker2d, and per-minibatch advantage normalization barely matters.
  • Score each config by its median over seeds, as What Matters does over 3 seeds, and compare choices under one fixed tuning budget; a single best cell measures search luck plus method.
Common mistakes · 3
  • Tuning the new method and borrowing defaults for the baseline. What Matters finds settings such as and value normalization need per-environment tuning, so each side gets the same search or the comparison is void.
  • Reporting tuned wall time against untuned sample counts. Faster code with more updates is a compute win, not an algorithmic one, unless updates and time are both matched.
  • Peeking at the test seeds during tuning. Selection on final seeds leaks them into training; lock tuning seeds, then evaluate once on fresh ones.
3

Try it yourself

Closed-book, before checking anything

Closed-book, write a four-counter budget table for a two-method comparison with a fixed tuning allowance per method and an isolated final seed set. Explain why scoring each config by its median over seeds under a fixed tuning budget beats scoring by the best cell.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Method A uses 1M steps and 100 updates while B uses 1M steps and 1000 updates. Matched?Answer

    No. Environment steps match but updates, wall time and compute do not. Match all four counters or label the difference as the treatment.

  2. 2.You try 20 configs for your method and 1 for the baseline, then compare best cells. What is wrong?Answer

    Search effort differs and best-cell scoring rewards luck. Fix one config budget per method, score each config by its median over seeds, and evaluate the picked configs on fresh seeds.

  3. 3.Observation normalization lifts both methods equally. Keep it or drop it for fairness?Answer

    Keep it matched on both sides and record it. Fairness means identical setup budgets, not removing a shared win.

  4. 4.When may final seeds be inspected?Answer

    Once, after all tuning and selection freeze. Any earlier look turns them into tuning seeds and a new isolated set is needed.

You're done when

Your comparison sheet shows four matched counters, one tuning budget per method, median-over-seeds scoring and a fresh final seed set with no peeking.

Only when you can do this without notes.

Leads to

Notes

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

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

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

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

  • 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/chapterNN folders 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.