
Embark on a comprehensive deep dive into reinforcement learning, covering concepts, intuitions, proofs, algorithms, and derivations for real-world use in robotics, games, and tuning large language models.
Explore real world success stories of reinforcement learning as agents learn by trial and error from environment interactions. See RL power language models, AlphaGo, Atari games, and helicopter control.
Explore how reinforcement learning trains an agent to learn from experience by interacting with an environment without clear supervision, driven by rewards to maximize long-term cumulative reward.
Maximize long-term cumulative rewards by guiding an agent through an environment. Learn how states, actions, and transition probabilities shape deterministic and stochastic dynamics toward terminal states and episodes.
Examine how reinforcement learning handles stochastic transitions, rewards, and policy distributions. Discover when deterministic versus stochastic policies prevail and how the optimal policy seeks the highest expected reward.
Define state as the agent’s internal state plus observations of the environment, and explain partial observability and converting to fully observable formulations in reinforcement learning.
Contrast discrete and continuous state spaces in reinforcement learning by using tic-tac-toe and chess as discrete examples and robot control as continuous, showing core ideas generalize with tweaks.
Explore how reinforcement learning handles discrete and continuous actions and states, and how discrete time steps influence modeling, with guidance on when to discretize or maintain continuity.
Explore a practical model of the environment using a Markov decision process, detailing states, transitions, rewards, policy behavior, and the difference between model-based and model-free reinforcement learning.
Explore Markov property, where the future is independent of the past given the present, and see how Markovian state representations and Markov decision processes handle non-Markovian and partially observable cases.
Formalize the Markov property by defining history up to time t and a compact state representation that yields a Markov process, Markov reward process, and Markov decision process.
Explore Markov decision processes with states, actions, and rewards, and their fixed-policy transitions to Markov reward processes solvable by linear algebra, including partially observable variants.
Learn notational conventions in reinforcement learning: capital letters denote random variables (S, S', R), lowercase denote specific values (A); use expectations and transition probabilities for environment dynamics.
Define episodes as trajectories that end in a terminal state, sample episodic MDPs and their states, actions, and rewards, and contrast with continuous MDPs and time-step capping.
Explore how reinforcement learning maximizes rewards over time by defining the discounted cumulative return, using gamma to weight immediate versus future rewards, and treating returns as random variables.
Understand the state value function and the action value function in reinforcement learning, defining expected discounted returns conditioned on state, action, and policy to guide optimal decisions.
Derive the Bellman expectation equation that maps a state's value to expected values of next states under a policy, using rewards, gamma, and transition probabilities.
Convert any MDB under a fixed policy to an MRB, derive state values with a closed-form linear-algebra solution, and lay groundwork for model-based policy optimization.
Present solution for the value function in a reward process, solving V = R + gamma P V via (I - gamma P)^{-1} R, noting limits for state spaces.
Examine a six-state Markov reward process with a deterministic policy, compute V_pi via Bellman equation and (I - gamma P)^{-1} R, and handle gamma equals one with terminal states.
Derive and relate the Bellman expectation equations for state and action value functions, introducing V_pi and Q_pi and their use with policy pi and environment dynamics.
Review the big picture of reinforcement learning, covering the MDP structure, states and actions, and the state and action value functions, plus policy evaluation, and the upcoming policy improvement.
Explore core reinforcement learning terms: policy evaluation (prediction) and the value functions V_pi and Q_pi, policy control, planning, and search across model-free and model-based approaches.
Non-stationary MDPs require enriching states to capture time-dependent dynamics or rewards, and adapting policies through persistent exploration to handle gradual environmental changes.
Balance exploration and exploitation to optimize learning through trial and error in reinforcement learning. Maintain exploration even under non-stationary dynamics to guard against imperfect models, stochastic policies, and evolving rewards.
Defines the optimal value function V*, the optimal state-action value function Q*, and explains how Q* yields a greedy, deterministic policy, with notes on model-based vs model-free policy derivation.
Introduces the Bellman optimality equations to define and compute the deterministic optimal value and action-value functions, highlighting the role of immediate rewards, environment dynamics, and action maximization.
Explore an iterative solution to the Bellman expectation equation under an arbitrary policy pi to approximate the value function through repeated state updates and probabilistic transitions.
Demonstrate a code-based numerical example of iterative policy evaluation with six states, deterministic transitions, and a gamma of 1, illustrating the Bellman equation and convergence to a value function.
Explore the Panach fixed-point theorem and its role in proving that the Bellman expectation operator is a contraction, ensuring convergence to the true value function in reinforcement learning.
Prove that the Bellman expectation operator is a contraction mapping on value functions using the infinity norm, showing convergence to a unique fixed point via the Banach fixed-point theorem.
Explore the Banach fixed point theorem, showing that a contraction on a complete metric space converges to a unique fixed point, with reinforcement learning and the Bellman operator in view.
Explore value iteration to compute the optimal value function and policy by applying the Bellman optimality equation, aided by a contraction mapping proof and a numeric grid world example.
Prove that the Bellman optimality operator is a contraction mapping under the infinity norm, ensuring value iteration converges to the unique optimal value function.
Explore policy iteration, an algorithm to obtain the optimal value function and policy by alternating policy evaluation with greedy policy improvement, converging to the optimal policy.
Explore policy iteration on a deterministic grid world with gamma equals one, using -1 move rewards; evaluate a policy to convergence and iteratively improve to the optimal policy.
Prove that policy iteration improves the policy by evaluating and then greedily acting with respect to Q_pi, converges to the optimal policy via the Bellman optimality equation.
Explore policy iteration and value iteration for reaching the optimal policy and value function, detailing policy evaluation, policy improvement, and the Bellman optimality and Bellman expectation equations.
Explore generalized policy iteration, showing how the modified policy iteration spectrum, from one policy evaluation step to convergence, aligns policy and value iteration.
Dynamic programming, coined by Bellman, is a practical framework for problems with optimal substructure and overlapping subproblems, illustrated by Fibonacci and used in MDPs with policy and value iteration.
Discuss policy evaluation without zero initialization, in-place updates, and contraction mapping, then cover prioritized sweeping, real-time dynamic programming, and choosing state value over Q-value for model-based problems.
Explore the big O complexity of value iteration, policy iteration, and policy evaluation in reinforcement learning, detailing loops over states and actions, convergence iterations, and q-value versus state-value trade-offs.
Compute how many value iterations are needed for the error to fall below theta via the Bellman contraction, using e0 <= r_max/(1-gamma) with theta=0.1 and gamma=0.9, yielding about 44 iterations.
Explore policy iteration using the Bellman expectation equation for the action-value function, perform in-place policy evaluation on a two-state MDP, and connect to model-free reinforcement learning.
Explore reinforcement learning with discrete state and action spaces, covering dynamic programming, policy evaluation, value iteration, policy iteration, and generalized policy iteration to reach the optimal policy.
explore model-free reinforcement learning with trajectories, learn why dynamic programming fails for large or unknown environments, and estimate state values through sample-based returns for policy evaluation and control.
Explore model-free policy evaluation with Monte Carlo methods for state value and action-value functions, comparing first-visit and every-visit approaches and updating returns from episodes.
Learn an efficient Monte Carlo evaluation with an online, memory-saving incremental average for state values, use of alpha learning rates, and bootstrapping concepts to speed policy evaluation.
Replace slow Monte Carlo updates with one-step temporal difference learning that bootstraps from the next state's value using TD error and gamma. Explore n-step TD for faster, biased updates.
Derive and validate the one-step td target for the value function v(s_t) as r_{t+1} plus gamma v(s_{t+1}) using sampled trajectories, and compare it with Monte Carlo methods through bootstrapping insights.
Contrast one-step temporal difference with Monte Carlo using a road-to-home example, showing TD uses V(S_{t+1}) and can converge faster while Monte Carlo relies on end-of-episode returns.
Demonstrates how finite data causes Monte Carlo to diverge from td estimates, because Monte Carlo treats states independently while td enforces Bellman relationships; td converges to Bellman-consistent values.
Explore how the alpha parameter shapes temporal-difference and Monte Carlo evaluation, showing how large alphas cause oscillations, small alphas promote stable convergence, and the role of epochs.
Compare MC and TD(0) by outlining differences: end-of-episode vs continuing tasks, Bellman structure respect, and high bias low variance vs low bias high variance, with TD(lambda) as a middle ground.
Explore how n-step returns combine td0 and monte carlo with td lambda to balance bias and variance, using weighted early rewards for robust credit assignment.
Explore td(lambda) as a weighted, normalized multi-step return with weights summing to one, bridging td0 and Monte Carlo while tuning lambda to balance bias and variance.
Explore how TD(lambda) returns collapse to the one-step return TD(0) and Monte Carlo returns at lambda values 0 and 1, with proofs for episodic and infinite horizons.
Explore the backward view of TD lambda, distributing TD errors backward in time to credit earlier states and actions, addressing continuing tasks and avoiding end-of-episode delays.
Derive the backward view of TD(lambda) from a forward-view setup, showing an incremental online algorithm that updates delta V with TD errors and lambda-weighted returns, bridging online and offline TD(lambda).
Derive and interpret eligibility traces in TD lambda and define delta_k as the TD error. Explain online backward TD lambda with accumulating vs replacing traces for policy evaluation.
Compare model-free evaluation with dynamic programming by outlining policy evaluation, Monte Carlo, and td methods, including td zero and td lambda with forward and backward views, and generalized policy iteration.
Translate model-free policy evaluation for state-value functions to action-value functions, using 2D Q tables, SARSA zero evaluation, TD0, and TD lambda with one- and multi-step returns.
Compare online learning with on-policy and off-policy learning, and online versus offline data use, through intuitive examples. Learn how to evaluate policies from trajectories and how offline data aids exploration.
Directly estimate action-value functions from trajectories and apply policy improvement with epsilon-greedy exploration. It contrasts model-free methods with model-based approaches and highlights exploration for online on-policy learning.
Explore why exploration is essential for on-policy model-free control through a numeric example, highlighting the limits of greedy policy improvement and the role of epsilon-greedy strategies.
Explore the epsilon-greedy policy in two-action and multi-action settings, derive its valid distribution, and prove it improves upon the old policy under the policy improvement theorem within generalized policy iteration.
Explore on-policy policy control with Monte Carlo evaluation inside the modified policy iteration framework, using an incremental, memory-efficient Q-table update and epsilon-greedy improvement.
Explore a td0 version of Monte Carlo policy control and how the action-value function updates across multiple policies, with alpha shaping convergence by favoring newer episodes and decaying over time.
Master the SARSA0 one-step on-policy TD control with epsilon-greedy updates to Q, then explore n-step SARSA and SARSA lambda for multi-step targets.
This lecture covers the SARSA(lambda) control algorithm, defining an action-value table and eligibility traces, using the lambda return as the TD target, and updating Q values via eligibility traces.
Explain GLIE, greedy in the limit of infinite exploration, and the Robbins-Monroe conditions on alpha, detailing epsilon decay and alpha schedules to converge to the optimal policy and values.
Explore off-policy control algorithms and their data-efficient use of past or external episodes, contrasting them with on-policy methods like Sarsa and Lambda, and examine behavior vs target policies for exploration.
Introduces q-learning, an off-policy, sample-based version of value iteration for policy control, often called Sarsamex (SARS-Amex), using a behavioral policy and bootstrapping from the maximum q-value.
Explore importance sampling to evaluate and improve policies using trajectories from a behavior policy, discuss the Monte Carlo approach, and address practical issues like zero probabilities and high variance.
Explore Monte Carlo importance sampling for evaluating a target policy from trajectories, showing how a zero-probability step halts updates for earlier states despite future discounted returns.
Explore how importance sampling scales TD(0) and n-step returns under a target versus behavior policy, compare one-step and two-step updates, and discuss practical off-policy variants for Q-learning and Sarsa.
Derive the importance sampling ratio from trajectory probabilities to reweight returns under the target policy by the product of pi(a|s)/b(a|s), enabling value estimation with behavior-generated data.
Explain that in tabular model-free reinforcement learning, prediction converges to the true value and control to the optimal value under Robbins-Monro and GLEE, proofs exist.
Learn to apply function approximators, including neural networks, to reinforcement learning problems, building on prerequisites in neural networks, machine learning, and optimization concepts like loss functions, gradient descent, and backpropagation.
Explore state representations in reinforcement learning, from tabular to feature-vector (metric) representation, enabling continuous and complex spaces to be handled by neural networks and the state value function.
Explore feature-vector representations for actions in reinforcement learning, including tile coding for mixed action types, and show how to combine state and action into phi(S,A) for neural or linear approximators.
Learn function approximators to estimate state and action value functions for continuous states or actions, using parameterized models like neural networks trained by gradient methods for policy evaluation and improvement.
Explore how shared weights in neural networks generalize across states yet risk destabilizing value estimates, with examples from continuous state spaces and one-hot linear approximators that mimic tabular updates.
This lecture explains policy evaluation with neural networks, using stochastic gradient descent to minimize the squared error between true and estimated values via Monte Carlo returns and weight gradients.
Differentiate the loss function graph from the value function graph in reinforcement learning, showing how weight changes shape the loss surface and the estimated value function.
Apply Monte Carlo returns to update weights in linear function approximators, using delta w = alpha times (G_T minus V_hat) times the feature vector, with feature normalization, including one-hot cases.
Explore the transitions from Monte Carlo to td(0) bootstrapping for value estimation with neural networks, using semi-gradient updates toward a one-step target and addressing stability.
Explore n-step and lambda returns for policy evaluation with function approximation. Learn gradient-based updates using n-step targets and bootstrapping, and study the forward view of lambda returns.
Explore the backward view of TD-Lambda for function approximators and neural networks, defining eligibility traces as weight gradients and updating the weight vector with TD error.
Derive the backward view TD-Lambda update using eligibility traces for function approximators, highlighting the offline weight update and the lambda gamma powered traces.
Showcases how Monte Carlo and TD(0) differ under function approximation, even with infinite data, due to distinct Bellman/MDB targets, using a simple two-state MDP and one-weight network.
Contrast Monte Carlo evaluation with TD(0) under function approximation, showing how MC minimizes squared error between true and estimated state values and converges online to weights defining SA and SB.
Analyze td(0) with function approximation, derive the semi-gradient weight update, and compare its self-consistency and Bellman errors to Monte Carlo in a toy example.
Learn why linear function approximators offer stability and td fixed point in on-policy reinforcement learning, and how this compares to deep networks, Monte Carlo, and off-policy challenges.
Visualize how the TD zero update with function approximation reshapes the loss surface at each step, revealing instability from bootstrapping and weight sharing in both linear and nonlinear settings.
Use two neural networks, a prediction network and a fixed target network, to stabilize learning by fixing the target for several iterations before updating.
Explore the instability of off-policy evaluation with function approximators, where weights can diverge to infinity, even under Robbins-Monro conditions, shown in a two-state importance-sampling example contrasting with on-policy guarantees.
Explore Baird's counter example in off-policy learning with functional approximation, showing divergence and guiding an expanded definition of off-policy learning, while applying dynamic programming with linear function approximation.
Use dynamic programming with function approximators to update weights via delta W = alpha (target minus current estimation) phi(S), where target is the expectation over policy actions and environment dynamics.
Explore why Baird's counterexample causes divergence in off-policy evaluation with function approximation when state visitation policy differs from the target policy.
Explain the dead triad in reinforcement learning: off-policy learning, function approximation, and bootstrapping; show how breaking one leg prevents divergence and discuss implications for deep Q networks and offline RL.
We review policy evaluation for action-value functions using a neural network that outputs Q(S,A) with parameters W and updates via TD0, N-step, and lambda returns.
Explore online on-policy SARSA with function approximation, including epsilon-greedy and softmax policies, policy evaluation, and improvement, plus practical notes on deep SARSA stability.
Explore deep q-learning, an off-policy deep reinforcement learning algorithm that uses a main and target network, experience replay, and epsilon-greedy exploration to approximate Q-values via Bellman updates.
Explain how a deep q network uses four stacked frames and conv layers to predict action values, and show experience replay with fixed target networks improving Atari performance.
Explore why experience replay buffers improve data efficiency and decorrelate samples to stabilize deep reinforcement learning, and consider uniform versus prioritized replay and issues like policy oscillation.
Double q-learning uses two independent q-tables to reduce maximization bias in tabular and function-approximation reinforcement learning, improving convergence compared with standard q-learning.
Explore double deep q-network learning using an online and fixed target network to reduce maximization bias, updating online actions with target-evaluated rewards.
Explore batch and mini-batch updates for reinforcement learning with linear function approximations, including closed-form least squared policy iteration and iterative Monte Carlo or TD methods.
Derive the closed-form solution for least squares Monte Carlo in on-policy policy evaluation with a linear function approximator, yielding W = (sum_i phi_i phi_i^T)^{-1} sum_i G_i phi_i.
Derives the closed-form solution for on-policy TD(0) with linear function approximation, yielding weight W via matrix inversion of accumulated features and rewards. Notes LSTD(lambda) follows a similar backward-view approach.
Learn least squares policy iteration, using full policy evaluation with LSTD Q and policy improvement. Apply off-policy data reuse in a linear function approximation setting and note the nonlinear limitation.
Present convergence guarantees for policy and off-policy reinforcement learning across tabular, linear, and nonlinear function approximations, and explain when bootstrapping, Monte Carlo, and TD methods converge or diverge.
Understand policy gradient reinforcement learning, a key policy-based approach for continuous action spaces. Explore hybrids with other methods, and applications in robotics and language models.
Explore policy gradient methods to directly optimize the policy, bypassing the complex action value function surface, while acknowledging value estimation and actor-critic algorithms.
Explore policy-gradient methods that directly parameterize the policy with a neural network, outputting action probabilities (via logits and softmax) to enable stochastic policies, unlike greedy value-based methods.
Model a stochastic policy in continuous action space as a two-dimensional gaussian over velocity and angular velocity, with a neural network outputting the mean and standard deviation for each dimension.
Explore policy-based methods and policy gradients beyond differentiable function approximators, contrast data efficiency of value-based methods, and reveal actor-critic architectures that jointly estimate value and policy.
Explain why a stochastic optimal policy matters in multi-agent games, bluffing, partially observable and non-Markovian settings, and in state aliasing, with a grid-world example.
Derive the softmax derivative with respect to its pre-softmax inputs. Show that pi_i with respect to h_i equals pi_i(1 - pi_i), and with respect to h_j equals -pi_i pi_j.
Derive the policy gradient algorithm for a simple multi-armed bandit. Use softmax actions, gradient ascent, and the log-derivative trick to estimate gradients from model-free samples, then generalize to larger MDBs.
Demonstrates how stochastic gradient ascent updates a softmax policy for a three-armed bandit, deriving delta theta from the gradient of log pi and reward.
Introduces the baseline, the advantage, and the critic in policy gradient methods using a two-action multi-armed bandit case, and shows how subtracting the baseline speeds convergence by reducing variance.
Prove that subtracting a baseline does not change the gradient direction in policy gradient and MAB, yielding identical expectations and reduced variance.
Contextual bandits add multiple states to a single-agent decision problem, using actions across different users or slot machines and advancing toward functional approximations with weight sharing for the full MDB.
Derive the policy improvement theorem for contextual bandits, defining J(theta) as the expected reward over states and actions. Apply gradient ascent with the log-derivative, noting on-policy sampling and baselines.
Derive the policy improvement theorem for episodic full MDPs, exploring the objective J(theta) over start-state returns, trajectory probabilities, and the log-trick for policy gradients.
Derivation II introduces the full MDP, deriving the theta update rule for policy gradients, replacing Monte Carlo returns with Q estimates, and using baselines to reduce variance.
Explore how a state-based baseline reduces variance in policy gradient updates while preserving the objective. Derive the advantage Q(s,a) - V(s) and implement with neural networks.
Explore the reinforce algorithm, a basic policy-gradient method using Monte Carlo returns, with or without advantage, and learn how baselines and TD error guide updates.
Explore the q-actor critic with bootstrapping and the advantage actor critic. Two networks update policy and value via td error, using the bellman equation for q and v estimates.
Explains asynchronous advantage actor-critic (A3C) and how multiple parallel workers de-correlate data, synchronizing local updates into a global network using n-step returns, advantage, and a value baseline.
Explore entropy regularization to keep policies stochastic early in training, enabling exploration in policy gradient methods such as actor-critic. Learn to balance stochasticity and return with a beta parameter.
Explore the deterministic policy gradient algorithm for continuous action control, highlighting its actor-critic structure, off-policy learning with replay buffers, fixed target networks, and the four neural networks involved.
Train the actor by maximizing the critic's Q value, assuming a perfect critic. Use the chain rule to compute gradients: dQ/dμ times dμ/dθ, with PyTorch backprop and replay-buffer rewards.
Learn how ddpg trains the critic with experience replay, semi-gradient updates, and fixed target networks, while the actor and critic update together in off-policy learning to refine Q estimates.
Initialize the critic and actor with random weights and fixed targets; fill a replay buffer by adding noise to actions; train the critic and actor, then softly update fixed networks.
Examine the soft actor critic (SAC) for continuous action control, featuring entropy regularization, double-q training, a stochastic policy with mean and std, reparameterization, fixed target networks, and experience replay.
Explore the actor objective in SAC, combining critic guidance with entropy to promote exploration, and derive its gradient via the total-derivative law accounting for two gradient paths.
Explore how the soft actor-critic trains the critic using off-policy data, an entropy term in the target, and a two Q-network minimum to reduce overestimation.
Initialize a soft actor-critic with an actor, two critics and fixed targets, and a replay buffer; update critics and actor online off-policy with entropy regularization.
Explore trust region policy optimization, an on-policy algorithm that promotes small, stable policy updates. Learn the intuition behind maintaining a reference policy and training stability to prevent policy collapse.
Maximize the advantage under a hard KL divergence constraint from the old policy, using importance sampling to weight updates and near on-policy data for stable TRPO optimization.
Discover the KL divergence equation for discrete and continuous cases, comparing reference and target policies via probability ratios and log terms, and why it outperforms L2 distance for distribution differences.
Derive the generalized advantage estimation (GAE) and its recursive form for PPO, connecting TD error, lambda, gamma, and GT lambda returns.
Explore truncated lambda in generalized advantage estimation. Learn how per-step lambda acts as a time-dependent knob to control n-step returns and bootstrapping.
Explore Proximal Policy Optimization, including the soft penalty version and the clip variant, as an on-policy actor-critic method that uses rollout buffers, advantage estimates, and KL regularization.
Explore PPO, a clip-based proximal policy optimization, using a trust region defined by the importance sampling ratio to keep old and new policies close while leveraging advantage, entropy, and returns.
Visualize the PPO-clip objective, showing how rho_t and the clipped rho times advantage determine updates, with positive and negative advantages, trust region clipping, and importance sampling.
Explore GRBO, a PPO-based group relative policy optimization method for large language models in reinforcement learning, emphasizing memory efficiency and better mathematical reasoning without a critic.
This checkpoint reviews reinforcement learning concepts, from policy evaluation to deep Q-networks and policy gradients, and previews a case study on large language models using human feedback and verifiable rewards.
Explore how reinforcement learning tunes large language models across preference tuning, reasoning, and formatting, using verifiable reward for math, coding, and safe responses in a practical case study.
Explore how large language models use transformer architectures to generate next tokens autoregressively, covering pre-training, tuning, token vocabularies, and reinforcement learning.
Model the llm as a reinforcement learning agent, with state as the prompt plus generated text, action as the next token, and a softmax policy guided by rewards.
Explore how large language models learn language structure through self-supervised next-token prediction during pre-training with vast data, using cross-entropy loss and teacher forcing.
Learn how supervised instruction fine tuning (sft) uses a curated data set to train large language models to follow instructions, predict the next token, and improve alignment.
Explore AI alignment and preference tuning, comparing prompt engineering with RLHF. Learn how reward models and ranking data train LLMs to favor safe, accurate, and useful responses using PPO.
Train a reward model with RLHF or RLAIF using a dataset of prompts and winning versus losing responses; apply the Bradley Terry objective during training.
Explore reward hacking in reinforcement learning for LLMs, and learn how KL divergence to a reference SFT model moderates rewards in PPO, with GRBO and DBO approaches.
Apply PPO for RLHF in large language models using a rollout buffer of prompts. Compute rewards with a frozen reward model and include KL penalties and log probabilities.
Explore GRBO for reinforcement learning from human feedback, generating G completions per prompt, using group statistics to compute advantages and a KL-divergence based loss with a frozen reference model.
Explore direct preference optimization (DBO), an offline supervised method that tunes LLMs from a preference dataset without reinforcement learning, potentially matching RL with human feedback under ideal conditions.
Explore direct preference optimization loss, which maximizes the expected win over a dataset of winning and losing samples using probability ratios against a reference sft model and kl divergence constraint.
Explore how large language models use chain-of-thought and reinforcement learning from verifiable rewards to produce correct answers, with orchestration, tree search, and tool calls enabling reliable reasoning.
Describe the typical training procedure for an llm, from pre-training on internet data to instruction and reasoning supervised fine-tuning, then reinforcement learning from verifiable rewards.
This is a comprehensive deep dive into reinforcement learning course. It is university-level deep.
The course starts from the very basics of RL in constrained simple problems and progresses with complexity step by step until the introduction of algorithms capable of solving complex real world problems for discrete actions (e.g.: LLMs) and continuous (e.g.: Robotics).
The course is also highly mathematical. It introduces a lot of algorithms, proofs, and derivations. However, it is still highly intuitive as well. Lots of intuitive examples to explain every concept or idea are provided.
While there are some code examples, I don't view this as the main goal of the course. The course focuses much more on concepts, intuitions, and derivations. Coding is used mainly for illustration.
The course covers a lot of traditional and SOTA algorithms in rich & satisfying detail. Some algorithms covered in this course are: Iterative Policy Evaluation (PE), Value Iteration (VI), Policy Iteration (PI), Monte-Carlo evaluation, TD(0), TD(lambda), Backward TD(lambda) with eligibility traces, SARSA, Q-Learning, Double Q-Learning, Expected SARSA, Deep SARSA, Deep Q-Learning, Deep Double Q-Learning, REINFORCE, A2C, A3C, DDPG, SAC, TRPO, PPO, GRPO, DPO.
Finally, the course has a sizeable case study section on: RL with LLMs. It covers how large language models and chatting agents are trained using reinforcement learning to have better alignment with human preferences, produce chains of thought, and to be better at math & coding. Algorithms for RLHF & RLVR are covered in deep detail.