Back to Courses
AI029 Postgraduate

Reinforcement Learning: An Introduction

A comprehensive foundational textbook on reinforcement learning, covering key algorithms such as Q-learning, Sarsa, and TD-learning, while bridging the gap between tabular methods and function approximation.

4.7
30.0h
1179 students
0 likes
Artificial Intelligence
Start Learning

Lessons

Lesson

This lesson introduces reinforcement learning as a goal-directed, trial-and-error approach to learning through interaction with an environment. Students will learn to distinguish this selectional paradigm from supervised learning and identify the core components of an RL system, including the agent-environment interface, rewards, and the exploration-exploitation trade-off.

This lesson introduces the multi-armed bandit problem as a fundamental framework for understanding the exploration-exploitation trade-off in reinforcement learning. Students will learn to implement action-value estimation methods, such as sample averages and epsilon-greedy strategies, to optimize decision-making under uncertainty.

AI029: Finite Markov Decision Processes (Lesson 3) This lesson introduces the agent-environment interface and the Finite Markov Decision Process (MDP) framework, which serves as the mathematical foundation for reinforcement learning. Students will learn to define environment dynamics using the four-argument probability function and explore how the Markov property enables agents to make optimal decisions based on current states.

This lesson introduces Dynamic Programming as a foundational method for solving Markov Decision Processes by leveraging environment models to perform full backups and bootstrapping. Students will learn to implement iterative policy evaluation and value iteration, focusing on how value information propagates through state spaces to achieve optimal solutions.

This lesson introduces Monte Carlo methods as a model-free alternative to dynamic programming, focusing on learning from sampled experience rather than transition probabilities. Students will learn to estimate state-value and action-value functions through first-visit and every-visit methods, while exploring policy iteration and the importance of avoiding bootstrapping to achieve optimal control.

This lesson introduces Temporal-Difference (TD) learning, a model-free approach that bridges the gap between Monte Carlo methods and Dynamic Programming by using bootstrapping to update value estimates incrementally. Students will learn the mechanics of the TD(0) update rule and explore how TD methods enable online learning in continuing tasks by leveraging immediate transitions rather than waiting for final outcomes.

This lesson explores n-step bootstrapping as a method to bridge the gap between 1-step TD and Monte Carlo methods, balancing the bias-variance tradeoff to improve learning efficiency. Students will learn to implement TD(lambda) and understand how the lambda parameter creates a composite return that optimizes information propagation in reinforcement learning tasks.

This lesson introduces the Dyna architecture, a unified framework that integrates direct reinforcement learning with model-based planning by using a shared internal model to simulate experiences. Students will learn how to differentiate between model-based and model-free methods and understand how the same backup algorithms can be applied to both real and simulated data to improve sample efficiency.

This lesson explores the transition from tabular reinforcement learning to function approximation, explaining how parameterized models overcome the curse of dimensionality by generalizing across state spaces. It also introduces the Mean Squared Value Error objective, which uses the on-policy distribution to prioritize learning accuracy in frequently visited states.

This lesson explores the mathematical parallels between biological learning processes and reinforcement learning, specifically focusing on how animal conditioning models and dopaminergic pathways in the brain inform modern temporal-difference (TD) learning. Students will analyze the isomorphism between biological reward prediction errors and computational algorithms to understand how these principles enhance AI agent efficiency and decision-making.

Course Overview

📚 Content Summary

A comprehensive foundational textbook on reinforcement learning, covering key algorithms such as Q-learning, Sarsa, and TD-learning, while bridging the gap between tabular methods and function approximation.

Master the definitive science of goal-directed learning from interaction.

Author: Richard S. Sutton and Andrew G. Barto

Acknowledgments: Supported by the Air Force Office of Scientific Research, the National Science Foundation, and GTE Laboratories.

🎯 Learning Objectives

  1. Define Reinforcement Learning and distinguish between immediate rewards and long-term value functions.
  2. Identify and describe the four sub-elements of a reinforcement learning system.
  3. Apply the Temporal-Difference (TD) update rule to a state-value lookup table.
  4. Implement incremental update rules for both stationary and nonstationary reward distributions.
  5. Evaluate the effectiveness of Optimistic Initial Values and Upper-Confidence-Bound (UCB) action selection in promoting exploration.
  6. Explain the mechanics of Gradient Bandit algorithms using numerical preferences and softmax distributions.
  7. Define the agent–environment interface and model complex tasks using the MDP framework.
  8. Calculate expected returns for both episodic and continuing tasks using discounting and unified notation.
  9. Distinguish between state-value (v_\pi) and action-value (q_\pi) functions and derive them using Bellman equations.
  10. Perform Policy Evaluation to compute state-value functions for arbitrary policies using iterative methods.

Lessons