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