Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
College-Level Reinforcement Learning : A Comprehensive Dive!
Rating: 4.6 out of 5(10 ratings)
96 students

College-Level Reinforcement Learning : A Comprehensive Dive!

Learn Deep Reinforcement Learning from the ground up. With a special case study on RLHF & RLVR for LLM tuning
Last updated 2/2026
English
English [Auto],

What you'll learn

  • Understand reinforcement learning (RL) from the ground up (Including relevant proofs and derivations)
  • Understand model-based & model-free RL techniques
  • Understand value-based and policy-gradient RL optimization techniques
  • Understand how to use deep learning in combination with reinforcement learning
  • Understand RL techniques for discrete and continuous action control
  • Understand Reinforcement Learning From Human Feedback (RLHF) & From Verifiable Rewards (RLVR)
  • Understand how LLMs learn to reason and provide chains of thought
  • Understand how LLMs get trained to call other tools and collaborate with other LLMs/Agents

Course content

8 sections170 lectures29h 10m total length
  • Introduction to the course!2:31

    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.

  • Success stories of RL5:53

    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.

  • Prerequisites & The reference book0:22
  • What is an RL agent ?10:58

    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.

  • What is a state ?14:57

    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.

  • What is a policy ?7:13

    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.

  • Partial Observability13:18

    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.

  • Discrete & continuous states7:43

    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.

  • Continuous actions and continuous time3:51

    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.

  • The model of the environment15:10

    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.

  • The Markov property5:26

    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.

  • Formalization of the Markov Property6:24

    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.

  • MDPs, MRPs, and POMDPs6:52

    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.

  • Notation conventions14:38

    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.

  • Episodes6:05

    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.

  • The discounted cumulative return G11:27

    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.

  • Notes on the return G3:10
  • The state and action value functions13:15

    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.

  • Derivation of the Bellman expectation equation17:47

    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.

  • Converting an MDP into an MRP22:48

    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.

  • A closed-form solution to the MRP10:24

    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.

  • A numerical example for the closed form solution of an MRP22:39

    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.

  • The Bellman expectation equation for action value functions14:39

    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.

  • Checkpoint! What have we covered so far ?2:29

    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.

  • Terminology: Evaluation, Control, Planning, and Search12:17

    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 MDPs4:41

    Non-stationary MDPs require enriching states to capture time-dependent dynamics or rewards, and adapting policies through persistent exploration to handle gradual environmental changes.

  • Exploration and Exploitation3:55

    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.

  • The optimal policy & The optimal value functions14:53

    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.

  • The Bellman optimality equations10:51

    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.

Requirements

  • Basic probability & statistics understanding (e.g. : distributions, mean, variance, expectation)
  • Basic linear algebra and calculus
  • Good knowledge of neural networks and deep learning (e.g. : gradient descent, back-propagation)

Description

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


Who this course is for:

  • University students taking a serious reinforcement learning course
  • Machine learning engineering looking to get a deeper understanding of reinforcement learning
  • LLM engineers looking to understand the inner workings of RLHF and RLVR