Lecture Videos
Lectures
Here, you can find the recordings of the lecture videos.
-
Lecture 1: RL Framework
Introduction: We start with the multi-armed bandit problem, and see how optimally or randomly playing could change the collected reward. We look at a mix strategy, first explore the environment for some limited time and then exploit this exploration in the real-time. We see that we could get very close to the optimal reward if we play for a long enough time. We then formulate the RL setting for a general interactive problem. We get to know what the agent is, what the environment is, and how the interactions between them is formulated. We look into a few sample environment, namely Tic-Tac-Toe, Cart-Pole, and Trading examples. For each, we formulate the State, Action, and Reward. Finally, we introduce Gymnasium.
[link]
Lecture Notes:
Further Reads:
- Intro to RL: Chapter 1 - Sections 1.1 and 1.2 of [SB]
- k-armed Bandit: Chapter 2 - Section 2.1 of [SB]
- Robbins’ Paper: Paper Some aspects of the sequential design of experiments by H. Robbins published in the Bulletin of the American Mathematical Society in 1952 formulating multi-armed bandit as we know it nowadays
- RL Setting: Chapter 3 - Sections 3.1 to 3.3 of [SB]
-
Lecture 2: MDPs and Bellman
Model-based RL - Part I: We define mathematically the notions of policy, value, action-value, and optimal policy. This formulates concretely the main objective in RL. We then start with model-based RL, where the environment is modeled as a known MDP. We can evaluate a given policy simply using statistical analysis. We derive the Bellman equation for the value and action-value functions. These equations enable us to compute the values or action-values from a set of fixed-point equations without needing to take nested expectations.
[link]
-
Lecture 3: Policy and Value Iteration
Model-based RL - Part II: We derive the Bellman Optimality equation. This equation enables us to compute the optimal value function without needing to know the optimal policy. This further let us derive the optimal policy for an environment with known MDP. We then use dynamic programming to find the solution to the Bellman equation. We can do this in two different ways. (i) We could start with a policy, evaluate it with DP and then improve the policy iteratively. This will lead to policy iteration algorithm. (ii) Alternatively, we can iterate to find the optimal values and then specify the optimal policy out of it. This is value iteration. We look at both algorithms and also merge them into the unified generalized policy iteration scheme.
[link]
Lecture Notes:
Further Reads:
-
Lecture 4: Generalized Policy Iteration via Monte-Carlo and Temporal Difference
Model-Free RL - Part I: We start with model-free approaches for RL. We see that using Monte-Carlo estimate, we can estimate the values needed in a Generalized Policy Iteration algorithm. We hence develop a model-free GPI loop, where we use Monte-Carlo to estimate all required values directly from sample trajectories. We then use Bellman equation to estimate the values using bootstraping. This approach is called Temporal Difference (TD). We develop a GPI loop using TD, as well.
[link]
-
Lecture 5: Deep Bootstraping and epsilon-Greedy Improvement
Model-Free RL - Part II: We study deep bootstraping. This enables us to extend the TD idea to TD-n. We then use this idea to find a sample efficient estimator of values, i.e., TD-lambda. The idea is though not online. We address this issue by doing Eligibility Tracing back in time. This leads to an online and efficient evaluation scheme. We then use these ideas to perform online control. We see that greedy improvement can lead to poor control, due to lack of exploration. To address this issue, we design the epsilon-greedy improvement, which let us explore and exploit at the same time.
[link]
Lecture Notes:
Further Reads:
- TD-n: Chapter 7 of [SB]
- TD-lambda and Eligibility Tracing: Chapter 12 of [SB]
- MC Control: Chapter 5 of [SB]
- ε-Greedy: Chapter 2 of [SB]
-
Lecture 6: SARSA Algorithms and Q-Learning
SARSA: We build a control loop using TD estimation. This enables us to learn the optimal policy while we are playing with it. The final algorithm is called State-Action Reward State-Action or simply SARSA. SARSA is the most used form of on-policy RL. We then discuss off-policy RL, and its specific form Q-learning. Here, we play epsilon-greedy, but we learn the value of the greedy policy. This leads to a simple control loop, often called the Q-Learning Algorithm. We discuss the requirements for both algorithms to converge. This is consistent with the notion of GLIE algorithms.
[link]
Further Reads:
- Online Q-Learning Article On-Line Q-Learning Using Connectionist Systems published in 1994 by G. Rummery and M. Niranjan proposing SARSA as an online version of Q-Learning
- Sarsa: Chapters 6, 10, and 12 of [SB]
- Q-Learning: Chapters 6 and 12 of [SB]
- Q-Learning Paper Paper Q-learning published in 1992 by C Watkins and P. Dayan_proposing the off-policy learning as in Q-learning algorithm *Convergence Paper _The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning published in 2000 by V. Borkar and S. Meyn studying convergence of Q-Learning and SARSA
-
Lecture 7: Policy Evaluation with Function Approximation
Deep RL: In this lecture, we learn RL with function approximation. In this approach we estimate the values using a parameterized model, e.g., a NN. We look into the evaluation problem and develop training loops based on Monte Carlo and Temporal Difference to train a model for estimation of action-values of a policy. This leads to introduction of Value and Q-Networks. We show that by setting the state representation to one-hot and using a linear model, our training algorithms return to Tabular RL counterparts.
[link]
Further Reads:
- Prediction with FA: Chapter 3 of [CS]
- Neuro-dynamic Programming Paper Neuro-dynamic programming: an overview published in 1995 by D. Bertsekas and J. Tsitsiklis discussing function approximation for value learning
- FA vs Tabular Paper Analyzing feature generation for value-function approximation published in 2008 by R. Parr et al. discussing connections of RL with FA to tabular RL
- TD with FA Paper Analysis of Temporal-Diffference Learning with Function Approximation published in 1996 by J. Tsitsiklis and B. Roy analyzing Prediction with parameterized models
- RL with FA Paper Residual Algorithms: Reinforcement Learning with Function Approximation published in 1995 by L. BAird giving some critics to RL with FA
-
Lecture 8: Deep SARSA and Deep Q-Learning
DQL: We now use the developed training loop to train a Q-network a control process. We look into both on-policy and off-policy cases, and conclude the vanilla form of the Deep Q-Learning algorithm. The fact that we are doing off-policy control in DQL enables us to boost the sample efficiency. We can use the same samples multiple times. This is what is known as experience replay and is a key component of DQL.
[link]
Further Reads:
- Control with FA: Chapter 4 of [CS]
- Deep Q-Learning Paper Human-level control through deep reinforcement learning published in 2015 by V. Mnih et al. proposing the legendary idea of Deep Q-Learning
- DQL Paper I Paper Playing Atari with Deep Reinforcement Learning published in 2013 by V. Mnih et al. describing DQL details
- DQL Paper II Paper Deep Reinforcement Learning with Double Q-learning published in 2015 by H. Haasselt et al. proposing Double DQL
- DQL Paper III Paper Dueling Network Architectures for Deep Reinforcement Learning published in 2016 by Z. Wang et al. proposing Dueling DQL
- DQL Paper IV Paper Prioritized Experience Replay published in 2016 by T. Schaul et al. proposing a prioritizing experience replay scheme
- Gorila Paper Massively Parallel Methods for Deep Reinforcement Learning published in 2015 by A. Nair et al. proposing Gorila
-
Lecture 09: Policy Gradient Theorem and PGMs
PGMs: We learn policy gradient theorem. This enables us to train a policy net to learn the optimal policy. Policy gradient theorem shows that we can use the gradient of state's log likelihood to train a policy net. Using the theorem, we can develop efficient algorithm for training of a policy network via SGD. This leads to the class of policy gradient methods (PGMs). We see that vanilla PGMs are sensitive to reward shift. We hence extend it to baseline PGMs and introduce the Advantage PGM algorithm.
[link]
Further Reads:
- REINFORCE Paper Simple statistical gradient-following algorithms for connectionist reinforcement learning published by R. Williams in 1992 introducing REINFORCE algorithm
- PGM Theorem Paper Policy Gradient Methods for Reinforcement Learning with Function Approximation published by R. Sutton et al. in 1999 developing the Policy Gradient Theorem
- Baseline Paper Policy invariance under reward transformations: Theory and application to reward shaping published by A. Ng et al. in 1999
-
Lecture 10: PGM with Trust Region
TRPO and PPO: Vanilla and baseline PGM still suffer from instability. We see that we can interpret PGM update as sequential surrogate function optimization. This reveals us that the key challenge is unrestricted update in each iteration. This motivates us to study trust-region PGM approaches. We find the natural PGM as the approximate solution. While closed-form, it is computationally expensive. We study TRPO and PPO to implement it approximately, but with feasible complexity.
[link]
Further Reads:
- Nat PGM Paper A Natural Policy Gradient published by S. Kakade in 2001 proposing a basic natural PGM
- TRPO Paper Trust Region Policy Optimization published by J. Schulman et al. in 2015 proposing TRPO
- PPO Paper Proximal Policy Optimization Algorithms published by J. Schulman et al. in 2017 proposing PPO
-
Lecture 11: Actor-Critic Approaches in RL
AC: We discuss actor-critic approaches. In these approaches we deal with two networks, a policy network that acts and a value network that estimates the value. We see that all PGM approaches can be extended to AC by adding a value network and see how we could train both networks simultaneously. We look back on TRPO and PPO as AC approaches. We discuss some details of implementation, and wee how we could add sample efficiency to these approaches via importance sampling. We look at DPG approaches as an alternative AC approach. In these approaches, the policy net directly returns the action, not the distribution. This enables us to work off-policy, improving the sample efficiency.
[link]
Further Reads:
- AC Paper Neuronlike adaptive elements that can solve difficult learning control problems published by A. Barto, R. Sutton, and C. Anderson in 1980 coining the term AC approaches
- AC Paper Actor-Critic Algorithms published by V. Konda and J. Tsitsiklis in 2000 formulating AC more generally
- DPGs Paper Deterministic Policy Gradient Algorithms published by D. Silver et al. in 2014 developing DPGs
- DDPG Paper Continuous Control with Deep Reinforcement Learning published by T. Lillicrap et al. in 2015 proposing Deep DPG
- TD3 Paper Addressing Function Approximation Error in Actor-Critic Methods published by S. Fujimoto et al. in 2018 proposing TD3
-
Lecture 12: Bibliographical Notes and Advances
SAC: We give a quick introduction to SAC. After that, we go over a short story of RL development and some advances in the last few years. This lecture wraps up the course in this year.
[link]
Further Reads:
- SAC Paper Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor published by T. Haarnoja et al. in 2018 proposing SAC
- AlphaGo Paper Mastering the game of Go with deep neural networks and tree search published by D. Silver et al. in 2016 Proposing AlphaGo
- Max Entropy Inverse RL Paper Maximum Entropy Inverse Reinforcement Learning published by B. Ziebart et al. in 2008 Proposing Max Entropy approach for Inverse RL
- RLHF Paper Deep Reinforcement Learning from Human Preferences published by P. Christiano et al. in 2017 discusses RLHF
