Lecture 1��Introduction to Reinforcement Learning
1
Instructor: Ercan Atam
Institute for Data Science & Artificial Intelligence
Course: DSAI 542-Reinforcement Learning
2
List of contents for this lecture
3
Relevant readings for this lecture
4
Topics to be covered in this course
We will cover the first 10 chapters of the textbook:
5
Textbook
Our main book to follow
Richard S. Sutton and Andrew G. Barto, "Reinforcement learning: An introduction", Second Edition, MIT Press, 2019
6
Reference books (1)
Dimitri Bertsekas, “A Course on Reinforcement Learning”, Athena Scientific, 2023.
7
Reference books (2)
Dimitri P. Bertsekas, "Reinforcement learning and Optimal Control", First Edition, Athena Scientific, 2019
8
Reference books (3)
Lucian Busoniu, Robert Babuska, Bart De Schutter, Damien Ernst, “Reinforcement Learning and Dynamic
Programming Using Function Approximators”, CRC Press, 2010.
9
Reference books (4)
Shengbo Eben Li, “Reinforcement Learning for Sequential Decision and Optimal Control”, Springer, 2023.
10
Reference books (5)
Stefano V. Albrecht, Filippos Christianos, Lukas Schäfer, “Multi-Agent Reinforcement Learning:
Foundations and Modern Approaches”, MIT Press, 2024.
11
Reference books (6)
Laura Graesser and Wah Loon Keng, “Foundations of Deep Reinforcement Learning: Theory and Practice in Python”, Addison-Wesley Professional, 2019.
12
Some good reinforcement learning courses at other institutions (1)
Introduction to Reinforcement Learning with David Silver
Introduction to Reinforcement Learning with David Silver:
https://www.deepmind.com/learning-resources/introduction-to-reinforcement-learning-with-david-silver
🡺 Both lecture videos and slides are available
13
Some good reinforcement learning courses at other institutions (2)
Introduction to Reinforcement Learning with David Silver
Reinforcement Learning at Paderborn University:
https://github.com/upb-lea/reinforcement_learning_course_materials
🡺 Both lecture videos and slides are available
14
Some good reinforcement learning courses at other institutions (3)
Introduction to Reinforcement Learning with David Silver
Reinforcement learning lecture series by DeepMind :
https://www.deepmind.com/learning-resources/reinforcement-learning-lecture-series-2021
🡺 Both lecture videos and slides are available
15
Some good reinforcement learning courses at other institutions (4)
Introduction to Reinforcement Learning with David Silver
Reinforcement Learning by by Emma Brunskill at Stanford University :
https://web.stanford.edu/class/cs234/
🡺 Both lecture videos and slides are available
16
Do not forget “Stackexchange” as another online source
17
Prerequisites for this course
18
Branches of machine learning
19
What is reinforcement learning? (1)
The learner is not told which actions to take, but instead must discover which actions yield the most reward by trying them.
Reinforcement learning is the training of machine learning models to make a sequence of decisions in
order to maximize a reward metric through interaction with environment :
20
What is reinforcement learning? (2)
21
Key characteristics of reinforcement learning
What makes reinforcement learning different from other machine learning paradigms?
22
Context around reinforcement learning
Figure: Disciplines of machine learning and the context around reinforcement learning.
(source, W. Kirchgässner, M. Schenke, O. Wallscheid and D. Weber, RL Course Material, Paderborn University, 2020)
Oliver
23
Many faces of reinforcement learning
Figure: Reinforcement learning and its related domains (source: D. Silver, Reinforcement Learning, 2016)
24
Methodical origins of reinforcement learning
Ivan Pavlov (1849-1936)
Andrei Markov (1856-1922)
Richard Bellman (1920-1984)
formalism
Figure: Big scientists establishing the methodical foundations of reinforcement learning .
(source, derivative of W. Kirchgässner, M. Schenke, O. Wallscheid and D. Weber, RL Course Material, Paderborn University, 2020)
25
History of reinforcement learning
RL is a huge and very rich field with many interconnections to other areas. For historical development of this amazing field the interested readers are referred to:
26
Application examples of reinforcement learning
27
Reinforcement learning vocabulary (1)
RL includes the use of the following vocabulary:
28
Reinforcement learning vocabulary (2)
In the next slides, some of these vocabulary will be defined mainly “verbally” and their mathematical
definitions will be given in next lectures.
29
State (1)
30
State (2)
31
Action
32
State space & action space
State space: The state space is the set of all possible states.
Action space: The set of all possible actions the learning agent can take in the environment.
33
Remark on state and action spaces
Evaluation of the nature of state space and action space (e.g., finite vs infinite, discrete vs
continuous) of a given RL problem should always be one of the the first steps in order to choose
the appropriate solution strategies.
34
Reward
Definition
A reward signal defines the goal of a reinforcement learning problem. On each time
step, the environment sends to the reinforcement learning agent a single number called
the reward.
pleasure or pain.
35
Examples of rewards
36
Some remarks on reward
37
Return (1)
Episodic tasks
38
Return (2)
39
Some remarks on discounted rewards
(*)
40
Policy
Definition
41
Deterministic policy example
(Source: derivative of https://medium.com/@mohannadrateb84/reinforcement-learning-deterministic-policy-vs-stochastic-policy-eabae430916b)
42
Stochastic policy example
(Source: derivative of https://medium.com/@mohannadrateb84/reinforcement-learning-deterministic-policy-vs-stochastic-policy-eabae430916b)
43
State-value function
Definition
specifies what is good in the long run.
because it is regularly followed by other states that yield high rewards.
Note: A value function is used to evaluate the goodness/badness of states.
44
State-action-value (action-value) function
Definition
45
Rewards versus values
achieve more accumulated reward.
decisions.
actions obtain the greatest amount of reward for us over the long run.
46
Model (1)
Definition
A model predicts what the environment will do for a given input.
Examples (of models for probabilistic transitions):
Note: Both of the above forms will be used in the lectures.
Data-based model fitting is a learning problem of its own called “system identification”.
47
Model (2)
actually experienced (simulated experience) .
high-level, deliberative planning.
48
Time to see a practical example
Next, we will show an example solved by different RL algorithms...
49
Maze example
Objective: Move from “Start” to “Goal” in minimum time
(Source: D. Silver, Reinforcement Learning, 2016)
Note: The problem is a deterministic problem.
Fig: maze setup for RL problem
50
Maze example: policy-based solution
Fig: policy-based solution for the maze problem
(Source: D. Silver, Reinforcement Learning, 2016)
Key characteristics:
51
Maze example: value function-based solution
Fig: value function-based solution for the maze problem
(Source: D. Silver, Reinforcement Learning, 2016)
Key characteristics:
52
Maze example: model evaluation-based solution
Key characteristics:
Fig: model evaluation-based solution for the maze problem.
(Source: D. Silver, Reinforcement Learning, 2016)
53
More general framework of reinforcement learning
54
Fully/partially observable environments
Example: A poker playing agent only observes public cards.
55
Exploration and exploitation
(if we have no perfect model of it)
a split between both strategies!
(source, W. Kirchgässner, M. Schenke,
O. Wallscheid and D. Weber, RL Course Material,
Paderborn University, 2020)
Fig: The exploration- exploitation dilemma
56
Examples of exploration and exploitation
57
Categorizing reinforcement learning agents (1)
58
Categorizing reinforcement learning agents (2)
59
Reinforcement agent taxonomy
Fig: RL categories (source, D. Silver, Reinforcement Learning, 2016)
References �(utilized for preparation of lecture notes or Matlab code)
60