Reinforcement Learning
How an agent learns to make sequential decisions through trial and reward: from Markov processes and multi-armed bandit exploration to Q-learning, DQN, policy gradients, PPO and learning from human preferences.
- 12 lessons
- 3 levels
- about 2.7 hours
- 5 quizzes
About the track
Reinforcement learning is the third paradigm of machine learning alongside supervised and unsupervised learning. There are no ready-made correct answers, only a delayed and noisy reward signal from which the agent must learn a good policy. The track starts from the mathematical formulation, goes through tabular algorithms, and ends with modern deep methods and their applications in aligning language models.
Formulation and Concepts
Beginner · 53 minutes · 4 lessons
The mathematical language of reinforcement learning: Markov decision processes, the discounted return, policies, value functions and the exploration-exploitation dilemma.
Learning objectives
- Define the agent, environment, state, action and reward
- Formulate the problem as an MDP
- Understand the return, value functions and the Bellman equation
Prerequisites
- Complete the Machine Learning track or equivalent
- Agent, Environment and Reward 12 minutes
- Markov Decision Processes 14 minutes
- Multi-Armed Bandits and Exploration 12 minutes
- Policies, Value Functions and the Bellman Equation 15 minutes
Tabular Methods and Approximation
Intermediate · 53 minutes · 4 lessons
Algorithms that work when there are few enough states for a table, then moving to value function approximation when the state space grows.
Learning objectives
- Apply dynamic programming when the model is known
- Learn from experience with Monte Carlo and temporal-difference methods
- Apply Q-learning and SARSA
- Move on to function approximation
Prerequisites
- Complete the beginner level
- Dynamic Programming: Value and Policy Iteration 13 minutes
- Learning from Experience: Monte Carlo and Temporal Difference 14 minutes
- Q-learning and SARSA 14 minutes
- Function Approximation in RL 12 minutes
Deep Reinforcement Learning
Advanced · 56 minutes · 4 lessons
Neural networks as approximators of value and policy, and the algorithms behind video games, robotics and the alignment of large language models.
Learning objectives
- Understand DQN and its key tricks
- Derive the policy gradient and actor-critic methods
- Understand PPO and why it is so widely used
- Understand RLHF, DPO and the risks of reward hacking
Prerequisites
- Complete the two previous levels
- Basics of deep learning
- Deep Q-Networks 14 minutes
- Policy Gradients and Actor-Critic Methods 15 minutes
- Proximal Policy Optimization 13 minutes
- Reinforcement Learning from Human Feedback 14 minutes
Final quiz: Reinforcement Learning
15 questions from all the levels of the track · passing score 70% · passing it unlocks the exam certificate.
