Reinforcement Learning

Move through three explicit modules: compact classical control foundations, deeper neural policy and value learning, and an extensive language-model RL route covering feedback, preference objectives, online optimization, reasoning, agents and scalable evaluation.

12 sections · 134 units · about 542 hours

0/134
Start hereSequential decisions, contextual bandits and the agent-environment boundary
1Classical RL I: MDPs, Bellman Equations and Planning0 of 11 passed · project: Exact planning oracles for small finite MDPs
  1. Sequential decisions, contextual bandits and the agent-environment boundary3h
  2. States, observations, the Markov property, transition kernels and rewards4h
  3. Trajectories, episodes, horizons, discounting, termination and truncation4h
  4. Policies, returns, reward-to-go, values and advantages4h
  5. Bellman expectation and optimality equations4h
  6. Matrix-form and iterative policy evaluation4h
  7. Policy improvement, policy iteration and generalized policy iteration4h
  8. Value iteration and finite-horizon backward induction4h
  9. Bellman operators, contraction, fixed points and residual-aware stopping4h
  10. Synchronous and asynchronous sweeps, ties, unreachable states and terminal conventions3h
  11. Reward timing, shaping, unintended optima and MDP formulation4h
2Classical RL II: Sampling, Temporal Difference and Control0 of 13 passed · project: Tabular sampling with exact trajectory oracles
  1. Model-free prediction and first-visit and every-visit Monte Carlo4h
  2. Incremental means, constant step sizes and learning-rate conditions3h
  3. TD error, TD(0), bootstrapping and Monte Carlo versus TD bias and variance5h
  4. n-step returns, target boundaries and fixed-trajectory update oracles4h
  5. On-policy and off-policy learning with behavior and target policies3h
  6. Trajectory and per-decision importance sampling, ordinary and weighted estimators4h
  7. Support, coverage, effective sample size and visitation diagnostics3h
  8. SARSA and Expected SARSA control4h
  9. Q-learning and \(\epsilon\)-greedy exploration schedules4h
  10. SARSA versus Q-learning on risky paths, with multiple seeds and independent evaluation4h
  11. Terminal versus truncated bootstrapping and reward, action, next-state and discount alignment4h
  12. Trajectory schemas with environment, policy, seed and version identity3h
  13. Average-reward formulation for continuing tasks3h
3Deep RL I: Function Approximation and Stability0 of 10 passed · project: Stable neural value learning with frozen targets
  1. Value-function approximation, linear features and state aggregation4h
  2. Semi-gradient TD, on-policy prediction and value error versus Bellman error5h
  3. Off-policy bootstrapping, the deadly triad and Baird's counterexample5h
  4. Neural action-value functions and replay-buffer semantics4h
  5. Transition immutability, replay aliasing, replay age and policy drift3h
  6. Hard and Polyak target updates, target lag, replay ratio and update-to-data ratio4h
  7. DQN targets, action gathering, gradient detachment and fixed-batch tests4h
  8. Reward clipping, observation scaling and Q, TD-error and gradient diagnostics4h
  9. Maximization bias, double estimators and dueling networks4h
  10. Checkpointing model, optimizer, replay and RNG, and separating evaluation exploration3h
4Deep RL II: Policy Gradients, Actor-Critic, GAE and PPO0 of 11 passed · project: Actor-critic and PPO with versioned rollouts
  1. Trajectory objectives and the likelihood-ratio identity4h
  2. The policy-gradient theorem and REINFORCE4h
  3. Reward-to-go, baselines, unbiasedness and variance reduction4h
  4. Learned value baselines, critic targets and actor-critic dependencies4h
  5. n-step advantages, Generalized Advantage Estimation and the \(\gamma\)-\(\lambda\) trade-off5h
  6. Categorical, Gaussian and tanh-squashed policies and entropy regularization5h
  7. Old and new log probabilities, importance ratios and the PPO clipped surrogate5h
  8. Approximate KL, clip fraction and multiple-epoch off-policy drift4h
  9. Value loss, value clipping, loss coefficients and advantage normalization3h
  10. Vectorized rollouts, policy-version identity and fixed-trajectory tests5h
  11. Policy collapse, critic failure, stale log probabilities and multi-seed evaluation6h
5Deep RL III: Exploration, Continuous Control and Empirical Method0 of 12 passed · project: Exploration bonuses with honest multi-seed evaluation
  1. Exploration as data collection: \(\epsilon\), entropy and optimism4h
  2. Counts, pseudocounts, curiosity and intrinsic rewards versus shaping4h
  3. Sparse, delayed and deceptive rewards, success coverage and unfair comparisons4h
  4. Continuous actions, deterministic policy gradients, DDPG and TD35h
  5. Maximum-entropy RL, Soft Actor-Critic and temperature tuning5h
  6. Goal-conditioned policies, hindsight relabeling and partial observability5h
  7. Environment, wrapper and version identity, action repeat and normalization4h
  8. Evaluation policies and seeds, episodes and environments as uncertainty units3h
  9. Interquartile mean, performance profiles and stratified bootstrap intervals3h
  10. Matched interaction and compute budgets, tuning budgets and final-evaluation isolation4h
  11. Checkpoint selection, all-attempt retention and vectorized-environment throughput3h
  12. Generalization across seeds, starts, dynamics and observation shifts3h
6Deep RL IV: Imitation, Offline RL and Off-Policy Evaluation0 of 11 passed · project: Offline imitation and calibrated off-policy evaluation
  1. Demonstrations, behavior cloning and action likelihoods4h
  2. Covariate shift, compounding imitation error and DAgger4h
  3. Inverse RL, the reward-learning boundary, GAIL and occupancy matching4h
  4. Offline datasets, behavior-policy identity, coverage and quality sweeps4h
  5. Extrapolation error, pessimism and Conservative Q-Learning5h
  6. Implicit Q-Learning expectiles and advantage-weighted actor updates4h
  7. The sequence-modeling view and online fine-tuning after offline initialization4h
  8. Off-policy evaluation targets, importance sampling, weight clipping and effective sample size5h
  9. Direct, model-based, doubly robust and Fitted Q Evaluation estimators4h
  10. Unsupported actions, impossible counterfactuals and offline model selection3h
  11. Normalization consistency, abstention and fallback, and online audit of estimators4h
7Deep RL V: Model-Based RL and World Models0 of 11 passed · project: Learned dynamics with honest planning attribution
  1. Known versus learned models, system identification and data collection4h
  2. One-step and multi-step prediction, open-loop rollout and Model Predictive Control5h
  3. Random shooting and cross-entropy planning against a known-dynamics oracle4h
  4. Dyna-style imagined experience and imagined versus real accounting4h
  5. Model ensembles, epistemic and aleatoric uncertainty and pessimistic planning5h
  6. Compounding error, decision-relevant error and model exploitation4h
  7. Policy-induced shift, data aggregation and fallback replanning4h
  8. Model-Based Policy Optimization and the rollout-horizon trade-off4h
  9. Latent-state dynamics and world-model policy learning4h
  10. Monte Carlo Tree Search3h
  11. Planner, model, reward and policy error attribution with matched model-free baselines4h
8LLM RL I: Language Models as Policies0 of 10 passed · project: Token-policy rollouts with versioned trajectory contracts
  1. Prompts as initial states, tokens as actions and trajectory choices4h
  2. Bandit, token-MDP and environment-MDP formulations and hidden state3h
  3. Prompt, completion, padding and EOS masks and sequence log probabilities5h
  4. Sequence, token and step rewards, reward placement and return propagation4h
  5. Policy, reference, critic, reward and verifier roles, and SFT as initialization4h
  6. On-policy, off-policy and replayed language data, and sampling and inference policies4h
  7. Version binding, immutable rollout records and outcome classes4h
  8. Token entropy, sequence diversity, KL direction and KL estimators5h
  9. Fixed-sequence log-probability and mask oracles and prompt separation4h
  10. Rollout compute accounting and learned change versus inference-time selection4h
9LLM RL II: Preferences, Reward Models and Verifiers0 of 9 passed · project: Preference rewards, verifiers and hacking evidence
  1. Feedback types, policy-dependent collection and target-preference definition4h
  2. Preference triples, Bradley-Terry likelihood and reward identifiability4h
  3. Reward-model loss, held-out ranking accuracy, calibration and slices5h
  4. Outcome, process and generative reward models4h
  5. Executable verifiers, completeness, soundness and verifier error tests5h
  6. Length and style shortcuts, reward shift and overoptimization4h
  7. Active collection, AI feedback and constitutions, and judge bias4h
  8. Multiple reward components, scalarization and version lineage3h
  9. Independent evaluation, adversarial tests and reward governance4h
10LLM RL III: Direct Preference Optimization0 of 11 passed · project: Direct preference optimization with controlled comparisons
  1. The KL-regularized objective and its optimal policy4h
  2. Implicit rewards from policy ratios and the DPO derivation4h
  3. Chosen and rejected log probabilities, reference log-ratio margins and the DPO loss5h
  4. DPO gradient weighting and chosen-rejected order invariants4h
  5. Completion masks, length normalization and chat-template consistency4h
  6. Reference identity and drift, and preference-data support mismatch3h
  7. Offline versus online objectives, and SFT and no-reference baselines3h
  8. IPO, label smoothing, conservative DPO and unpaired-feedback variants5h
  9. DPO margin, reward, KL and length diagnostics and fixed-batch tests4h
  10. Preference accuracy versus behavior, overoptimization and held-out slices4h
  11. Compute-matched rejection and SFT controls and external evaluation3h
11LLM RL IV: Online Policy Optimization0 of 12 passed · project: Online policy optimization with versioned rollouts
  1. On-policy generation and the sequence policy gradient4h
  2. Terminal rewards, per-token loss assignment and token-space REINFORCE4h
  3. PPO-style RLHF with a value critic, and critic cost versus group sampling5h
  4. Leave-one-out baselines and RLOO3h
  5. Grouped sampling, group-relative advantages, GRPO and degenerate groups5h
  6. Within-prompt and batch normalization, reward scaling and comparability3h
  7. Token log probabilities, importance ratios, clipping and loss aggregation5h
  8. Reference KL penalties, masks, truncated completions and length incentives4h
  9. Multiple gradient steps, off-policy drift, rollout freshness and policy lag4h
  10. Entropy collapse, KL spikes, invalid outputs, zero-signal groups and prompt balancing4h
  11. Fixed-rollout estimator, ratio, clipping and gradient tests3h
  12. SFT, DPO, rejection and best-of-N controls, matched budgets and training traces6h
12LLM RL V: Reasoning, Agents and Scalable Training0 of 13 passed · project: Reasoning agents, rollout systems and reproduction
  1. Reinforcement learning with verifiable rewards and math, code and structured tasks4h
  2. Verifier isolation, hidden tests and sparse outcome credit4h
  3. Process rewards, step credit and reasoning traces versus observable answers4h
  4. Inference-time search, self-consistency and train-time versus test-time compute4h
  5. Rejection fine-tuning, rollout and on-policy distillation and reasoning-length control5h
  6. Multi-turn agent state, tool-call actions, transitions and delayed credit5h
  7. Sandboxes, deterministic replay and tool-error, timeout and retry semantics4h
  8. Actor, rollout, verifier and learner roles, synchronous and asynchronous loops and staleness5h
  9. Colocated versus disaggregated generation, batching, backpressure and starvation4h
  10. Checkpoint and sampler recovery, retry deduplication and failed-rollout accounting4h
  11. Prompt curricula, rollout and verifier throughput and total compute accounting4h
  12. Independent reasoning, capability, safety and agent evaluation, and reward hacking4h
  13. Clean reproduction and a prespecified objective, reward or system extension4h

Final project: Sequential Learning and Language-Policy Laboratory

Carry one evidence schema from an exact finite MDP through neural value and policy optimization into a small language or tool environment, preserving objectives, sampled data, policy versions, failures, budgets and independent evaluation at every transition.

  • A classical-control core with an explicit MDP, exact planning oracles, Monte Carlo and TD control, fixed-trajectory tests, termination and truncation semantics, visitation and support diagnostics, and one minimized reward or bootstrap failure.
  • A deep-RL laboratory with DQN or Double DQN, actor-critic and PPO, one exploration or continuous-control study, one offline or model-based study, complete replay and rollout state, robust multi-seed reporting, matched sample and compute budgets, ablations and retained unstable runs.
  • A small LLM-RL evidence pack with immutable model, policy, reference, reward, verifier and trajectory versions; scratch preference and online-policy objectives; SFT, DPO or rejection and search controls; reasoning or tool-use integration; reward-hacking attacks; policy-lag and system metrics; independent capability and safety evaluation; clean reproduction; and one prespecified extension with an honest negative regime.
How it's graded · about 30 to 45 hours

Classical-control core

Pass: Explicit MDP with exact planning oracles, Monte Carlo and TD control passing fixed-trajectory tests, termination and truncation semantics, visitation and support diagnostics, and one minimized reward or bootstrap failure with postmortem.

Great: Sampled control matches the exact planning oracle within a stated tolerance across seeds, and seeded defects fail before the fix and pass after.

Deep-RL laboratory

Pass: DQN or Double DQN with actor-critic and PPO, one exploration or continuous-control study, one offline or model-based study, complete replay and rollout state, robust multi-seed reporting, matched sample and compute budgets, ablations and retained unstable runs.

Great: Every update matches fixed-batch oracles, ablations isolate one mechanism each, and losing regimes bound the claims.

LLM-RL evidence pack

Pass: Immutable model, policy, reference, reward, verifier and trajectory versions, scratch preference and online-policy objectives, SFT, DPO or rejection and search controls, reasoning or tool-use integration, reward-hacking attacks, policy-lag and system metrics, and independent capability and safety evaluation.

Great: Every objective matches fixed-rollout oracles before any online run, and attacks, policy-lag and safety slices bound the learned-change claim.

Reproducibility and judgment

Pass: A clean checkout reproduces the reasoning-agents baseline and rebuilds every table from raw per-run records, the prespecified extension keeps its honest negative regime, and claims state seed, budget and hardware scope.

Great: An independent operator reproduces the dossier, every failure injection has a regression test, and the defense names what to remove if the benefit is weak.