CS 598 Statistical Reinforcement Learning. Nan Jiang

Size: px
Start display at page:

Download "CS 598 Statistical Reinforcement Learning. Nan Jiang"

Transcription

1 CS 598 Statistical Reinforcement Learning Nan Jiang

2 Overview

3 What s this course about? A grad-level seminar course on theory of RL 3

4 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses 3

5 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses all about proofs, some perspectives, 0 implementation 3

6 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses all about proofs, some perspectives, 0 implementation Seminar course can be anywhere between students presenting papers and a rigorous course 3

7 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses all about proofs, some perspectives, 0 implementation Seminar course can be anywhere between students presenting papers and a rigorous course In this course I will deliver most (or all) of the lectures 3

8 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses all about proofs, some perspectives, 0 implementation Seminar course can be anywhere between students presenting papers and a rigorous course In this course I will deliver most (or all) of the lectures No text book; material is created by myself (course notes) 3

9 What s this course about? A grad-level seminar course on theory of RL with focus on sample complexity analyses all about proofs, some perspectives, 0 implementation Seminar course can be anywhere between students presenting papers and a rigorous course In this course I will deliver most (or all) of the lectures No text book; material is created by myself (course notes) will share slides/notes on course website 3

10 Who should take this course? This course will be a good fit for you if you 4

11 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically 4

12 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically want to do research in theory of RL or related area 4

13 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically want to do research in theory of RL or related area want to work with me 4

14 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically want to do research in theory of RL or related area want to work with me are comfortable with maths 4

15 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically want to do research in theory of RL or related area want to work with me are comfortable with maths This course will not be a good fit if you 4

16 Who should take this course? This course will be a good fit for you if you are interested in understanding RL mathematically want to do research in theory of RL or related area want to work with me are comfortable with maths This course will not be a good fit if you are mostly interested in implementing RL algorithms and making things to work we won t cover any engineering tricks (which are essential to e.g., Deep RL); check other RL courses offered across the campus 4

17 Prerequisites Maths 5

18 Prerequisites Maths Linear algebra, probability & statistics, basic calculus 5

19 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains 5

20 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains Optional: stochastic processes, numerical analysis 5

21 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains Optional: stochastic processes, numerical analysis Useful for research: TCS background, empirical processes and statistical learning theory, optimization, online learning 5

22 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains Optional: stochastic processes, numerical analysis Useful for research: TCS background, empirical processes and statistical learning theory, optimization, online learning Exposure to ML 5

23 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains Optional: stochastic processes, numerical analysis Useful for research: TCS background, empirical processes and statistical learning theory, optimization, online learning Exposure to ML e.g., CS 446 Machine Learning 5

24 Prerequisites Maths Linear algebra, probability & statistics, basic calculus Markov chains Optional: stochastic processes, numerical analysis Useful for research: TCS background, empirical processes and statistical learning theory, optimization, online learning Exposure to ML e.g., CS 446 Machine Learning Experience with RL 5

25 Coursework Some readings after/before class 6

26 Coursework Some readings after/before class Ad hoc homework to help digest particular material. Deadline will be lenient & TBA at the time of assignment 6

27 Coursework Some readings after/before class Ad hoc homework to help digest particular material. Deadline will be lenient & TBA at the time of assignment Main assignment: course project (work on your own) 6

28 Coursework Some readings after/before class Ad hoc homework to help digest particular material. Deadline will be lenient & TBA at the time of assignment Main assignment: course project (work on your own) Baseline: reproduce theoretical analysis in existing papers 6

29 Coursework Some readings after/before class Ad hoc homework to help digest particular material. Deadline will be lenient & TBA at the time of assignment Main assignment: course project (work on your own) Baseline: reproduce theoretical analysis in existing papers Advanced: identify an interesting/challenging extension to the paper and explore the novel research question yourself 6

30 Coursework Some readings after/before class Ad hoc homework to help digest particular material. Deadline will be lenient & TBA at the time of assignment Main assignment: course project (work on your own) Baseline: reproduce theoretical analysis in existing papers Advanced: identify an interesting/challenging extension to the paper and explore the novel research question yourself Or, just work on a novel research question (must have a significant theoretical component; need to discuss with me) 6

31 Course project (cont.) See list of references and potential topics on website 7

32 Course project (cont.) See list of references and potential topics on website You will need to submit: 7

33 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb 7

34 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb what s the topic and what papers you plan to work on 7

35 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb what s the topic and what papers you plan to work on why you choose the topic: what interest you? 7

36 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb what s the topic and what papers you plan to work on why you choose the topic: what interest you? which aspect(s) you will focus on? 7

37 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb what s the topic and what papers you plan to work on why you choose the topic: what interest you? which aspect(s) you will focus on? Final report: clarity, precision, and brevity are greatly valued. More details to come 7

38 Course project (cont.) See list of references and potential topics on website You will need to submit: A brief proposal (~/2 page). Tentative deadline: end of Feb what s the topic and what papers you plan to work on why you choose the topic: what interest you? which aspect(s) you will focus on? Final report: clarity, precision, and brevity are greatly valued. More details to come All docs should be in pdf. Final report should be prepared using LaTeX. 7

39 Course project (cont. 2) Rule of thumb 8

40 Course project (cont. 2) Rule of thumb. learn something that interests you 8

41 Course project (cont. 2) Rule of thumb. learn something that interests you 2. teach me something! (I wouldn t learn if I could not understand your report due to lack of clarity) 8

42 Course project (cont. 2) Rule of thumb. learn something that interests you 2. teach me something! (I wouldn t learn if I could not understand your report due to lack of clarity) 3. write a report similar to (or better than!) the notes I will share with you 8

43 Contents of the course many important topics in RL will not be covered in depth (e.g., TD). read more if you want to get a more comprehensive view of RL 9

44 Contents of the course many important topics in RL will not be covered in depth (e.g., TD). read more if you want to get a more comprehensive view of RL the other opportunity to learn what s not covered in lectures is the project, as potential topics for projects are much broader than what s covered in class. 9

45 My goals Encourage you to do research in this area 0

46 My goals Encourage you to do research in this area Introduce useful mathematical tools to you 0

47 My goals Encourage you to do research in this area Introduce useful mathematical tools to you Learn from you 0

48 Logistics Course website:

49 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements

50 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements Time & Location: Tue & Thu 2:30-:45pm, 304 Siebel.

51 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements Time & Location: Tue & Thu 2:30-:45pm, 304 Siebel. TA: Jinglin Chen (jinglinc)

52 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements Time & Location: Tue & Thu 2:30-:45pm, 304 Siebel. TA: Jinglin Chen (jinglinc) Office hours: By appointment Siebel.

53 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements Time & Location: Tue & Thu 2:30-:45pm, 304 Siebel. TA: Jinglin Chen (jinglinc) Office hours: By appointment Siebel. Questions about material: ad hoc meetings after lectures subject to my availability

54 Logistics Course website: logistics, links to slides/notes (uploaded after lectures), and resources (e.g., textbooks to consult, related courses), deadlines & announcements Time & Location: Tue & Thu 2:30-:45pm, 304 Siebel. TA: Jinglin Chen (jinglinc) Office hours: By appointment Siebel. Questions about material: ad hoc meetings after lectures subject to my availability Other things about the class (e.g., project): by appointment

55 Introduction to MDPs and RL

56 Reinforcement Learning (RL) Applications 3

57 Reinforcement Learning (RL) Applications [Levine et al 6] [Ng et al 03] 3

58 Reinforcement Learning (RL) Applications [Levine et al 6] [Ng et al 03] 3 [Singh et al 02]

59 Reinforcement Learning (RL) Applications [Levine et al 6] [Ng et al 03] 3 [Singh et al 02] [Lei et al 2]

60 Reinforcement Learning (RL) Applications 3 [Levine et al 6] [Ng et al 03] [Mandel et al 6] [Singh et al 02] [Lei et al 2]

61 Reinforcement Learning (RL) Applications 3 [Levine et al 6] [Ng et al 03] [Singh et al 02] [Mandel et al 6] [Tesauro et al 07] [Lei et al 2]

62 Reinforcement Learning (RL) Applications 3 [Levine et al 6] [Ng et al 03] [Singh et al 02] [Lei et al 2] [Mandel et al 6] [Tesauro et al 07] [Mnih et al 5][Silver et al 6]

63 Shortest Path s 0 b 4 3 d 3 f g 2 c 2 e 4

64 Shortest Path state s 0 action 2 b c e d 3 f g 4

65 Shortest Path state s 0 action 2 b c e d 3 f g Greedy is suboptimal due to delayed effects Need long-term planning 4

66 Shortest Path V * (g) = 0 state s 0 action 2 b c e d 3 f V * (f) = g Greedy is suboptimal due to delayed effects Need long-term planning 4

67 Shortest Path V * (g) = 0 state s 0 action 2 b c e d 3 f V * (f) = g Bellman Equation V * (d) = min{3 + V * (g), 2 + V * (f)} Greedy is suboptimal due to delayed effects Need long-term planning 4

68 Shortest Path V * (d) = 2 V * (g) = 0 state s 0 action 2 b c e d 3 f V * (f) = g Bellman Equation V * (d) = min{3 + V * (g), 2 + V * (f)} Greedy is suboptimal due to delayed effects Need long-term planning 4

69 Shortest Path V * (b) = 5 V * (d) = 2 V * (g) = 0 V * (s 0 ) = 6 s 0 b 4 3 d 3 f g 2 c V * (c) = 4 2 e V * (e) = 2 V * (f) = Bellman Equation V * (d) = min{3 + V * (g), 2 + V * (f)} Greedy is suboptimal due to delayed effects Need long-term planning 4

70 Shortest Path V * (b) = 5 V * (d) = 2 V * (g) = 0 V * (s 0 ) = 6 s 0 b 4 3 d 3 f g 2 c V * (c) = 4 2 e V * (e) = 2 V * (f) = Bellman Equation V * (d) = min{3 + V * (g), 2 + V * (f)} Greedy is suboptimal due to delayed effects Need long-term planning 4

71 Shortest Path s 0 b 4 4 d 3 f g 2 c 2 e 5

72 Stochastic Shortest Path s 0 2 b c e d f g 6

73 Stochastic Shortest Path Markov Decision Process (MDP) state s 0 action 2 b c e d f transition distribution g 6

74 Stochastic Shortest Path s 0 2 b c e d f g Greedy is suboptimal due to delayed effects Need long-term planning 7

75 Stochastic Shortest Path s 0 2 b c e d f g Bellman Equation V * (c) = min{ V * (d) V * (e), 2 + V * (e)} 7 Greedy is suboptimal due to delayed effects Need long-term planning

76 Stochastic Shortest Path V * (g) = 0 s 0 2 b c e d f g Bellman Equation V * (c) = min{ V * (d) V * (e), 2 + V * (e)} 7 Greedy is suboptimal due to delayed effects Need long-term planning

77 Stochastic Shortest Path V * (b) = 6 V * (d) = 2 V * (g) = 0 V * (s 0 ) = 6.5 s 0 2 b c V * (c) = e d V * (e) = f V * (f) = g Bellman Equation V * (c) = min{ V * (d) V * (e), 2 + V * (e)} 7 Greedy is suboptimal due to delayed effects Need long-term planning

78 Stochastic Shortest Path V * (s 0 ) = 6.5 s 0 2 V * (b) = 6 V * (d) = 2 b c V * (c) = d e 2 V * (e) = 2.5 Bellman Equation V * (c) = min{ V * (d) V * (e), 2 + V * (e)} 3 f V * (f) = V * (g) = 0 g : optimal policy π * Greedy is suboptimal due to delayed effects Need long-term planning 7

79 Stochastic Shortest Path via trial-and-error s 0 2 b c e? d f g 8

80 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

81 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

82 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

83 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

84 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

85 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g 8

86 Stochastic Shortest Path via trial-and-error s 0 2 b c d e f g Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 9

87 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 9

88 Stochastic Shortest Path via trial-and-error s 0 b 4 4 d 3 f g 2 c 2 e Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 20

89 Stochastic Shortest Path via trial-and-error s 0 b 4 4 d 3 f g 2 c 2 e Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 20

90 Stochastic Shortest Path via trial-and-error s 0 b d 3 f g 2 c 2 e Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 20

91 Stochastic Shortest Path via trial-and-error s 0 2 b c e d f g Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 20

92 Stochastic Shortest Path via trial-and-error s 0 Model-based RL 2 b c e d f g Trajectory : s 0 c d g Trajectory 2: s 0 c e f g 20

93 Stochastic Shortest Path via trial-and-error s 0 Model-based RL 2 b c e d f g Trajectory : s 0 c d g Trajectory 2: s 0 c e f g How many trajectories do we need to compute a near-optimal policy? sample complexity 20

94 Stochastic Shortest Path via trial-and-error s 0 b 4 4 d 3 f g 2 c 2 e How many trajectories do we need to compute a near-optimal policy? Assume states & actions are visited uniformly 2

95 Stochastic Shortest Path via trial-and-error s 0 b 4 4 d 3 f g 2 c 2 e How many trajectories do we need to compute a near-optimal policy? Assume states & actions are visited uniformly #trajectories needed n (#state-action pairs) #samples needed to estimate a multinomial distribution 2

96 Stochastic Shortest Path via trial-and-error s 0 2 b c 4 2 4?? e d?? 3 f g How many trajectories do we need to compute a near-optimal policy? Assume states & actions are visited uniformly #trajectories needed n (#state-action pairs) #samples needed to estimate a multinomial distribution 2

97 Stochastic Shortest Path via trial-and-error s 0 2 b c 4 2 4?? e d?? 3 f g Nontrivial! Need exploration How many trajectories do we need to compute a near-optimal policy? Assume states & actions are visited uniformly #trajectories needed n (#state-action pairs) #samples needed to estimate a multinomial distribution 2

98 Video game playing state s t S 22

99 Video game playing reward r t = R (s t, a t ) state s t S +20 action a t A 22

100 Video game playing reward r t = R (s t, a t ) state s t S +20 action a t A e.g., random spawn of enemies transition dynamics P ( s t, a t ) (unknown) 22

101 Video game playing reward r t = R (s t, a t ) state s t S +20 e.g., random spawn of enemies policy π: S A action a t A transition dynamics P ( s t, a t ) (unknown) objective: maximize E P H t= r t (or E P t= t r t ) 22

102 Video game playing reward r t = R (s t, a t ) state s t S +20 e.g., random spawn of enemies policy π: S A action a t A transition dynamics P ( s t, a t ) (unknown) objective: maximize E P H t= r t (or E P t= t r t ) H =5 γ = H = γ =

103 23 Video game playing

104 Video game playing Need generalization 23

105 Video game playing Need generalization Value function approximation 23

106 Video game playing f (x;θ) state features x Need generalization Value function approximation 24

107 Video game playing f (x;θ) state features x state features x θ f (x;θ) Need generalization Value function approximation 24

108 Video game playing f (x;θ) 24 state features x θ f (x;θ) Find θ s.t. f (x;θ) r + γ Ex x [ f (x ;θ)] state features x Need generalization Value function approximation f ( ; θ) V *

109 Video game playing x f (x;θ) +r x 24 state features x θ f (x;θ) Find θ s.t. f (x;θ) r + γ Ex x [ f (x ;θ)] state features x Need generalization Value function approximation f ( ; θ) V *

110 Adaptive medical treatment value State: diagnosis Action: treatment Reward: progress in recovery state features x 25

111 A Machine Learning view of RL

112 Computer Science Engineering Mathematics Optimal Control Operations Research Machine Learning Reinforcement Learning Bounded Rationality Reward System Classical/Operant Conditioning Neuroscience Psychology Economics 27 slide credit: David Silver

113 Supervised Learning Given {(x (i), y (i) )}, learn f : x y 28

114 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner 28

115 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) 28

116 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) 28

117 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) 28

118 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) Want to maximize # of correct predictions 28

119 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) Want to maximize # of correct predictions e.g., classifies if an image is about a dog, a cat, a plane, etc. (multi-class classification) 28

120 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) Want to maximize # of correct predictions e.g., classifies if an image is about a dog, a cat, a plane, etc. (multi-class classification) Dataset is fixed for everyone 28

121 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) Want to maximize # of correct predictions e.g., classifies if an image is about a dog, a cat, a plane, etc. (multi-class classification) Dataset is fixed for everyone Full information setting 28

122 Supervised Learning Given {(x (i), y (i) )}, learn f : x y Online version: for round t =, 2,, the learner observes x (t) predicts y ^ (t) receives y (t) Want to maximize # of correct predictions e.g., classifies if an image is about a dog, a cat, a plane, etc. (multi-class classification) Dataset is fixed for everyone Full information setting Core challenge: generalization 28

123 Contextual bandits For round t =, 2,, the learner 29

124 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A 29

125 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) 29

126 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) Want to maximize total reward 29

127 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) Want to maximize total reward You generate your own dataset {(x (t), a (t), r (t) )}! 29

128 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) Want to maximize total reward You generate your own dataset {(x (t), a (t), r (t) )}! e.g., for an image, the learner guesses a label, and is told whether correct or not (reward = if correct and 0 otherwise). Do not know what s the true label. 29

129 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) Want to maximize total reward You generate your own dataset {(x (t), a (t), r (t) )}! e.g., for an image, the learner guesses a label, and is told whether correct or not (reward = if correct and 0 otherwise). Do not know what s the true label. e.g., for an user, the website recommends a movie, and observes whether the user likes it or not. Do not know what movies the user really want to see. 29

130 Contextual bandits For round t =, 2,, the learner Given x i, chooses from a set of actions a i A Receives reward r (t) ~ R(x (t), a (t) ) (i.e., can be random) Want to maximize total reward You generate your own dataset {(x (t), a (t), r (t) )}! e.g., for an image, the learner guesses a label, and is told whether correct or not (reward = if correct and 0 otherwise). Do not know what s the true label. e.g., for an user, the website recommends a movie, and observes whether the user likes it or not. Do not know what movies the user really want to see. Partial information setting 29

131 Contextual bandits Contextual Bandits (cont.) 30

132 Contextual bandits Contextual Bandits (cont.) Simplification: no x, Multi-Armed Bandits (MAB) 30

133 Contextual bandits Contextual Bandits (cont.) Simplification: no x, Multi-Armed Bandits (MAB) Bandit is a research area by itself. we will not do a lot of bandits but may go through some material that have important implications on general RL (e.g., lower bounds) 30

134 RL For round t =, 2,, 3

135 RL For round t =, 2,, For time step h=, 2,, H, the learner 3

136 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) 3

137 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) Chooses a h (t) 3

138 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) Chooses a h (t) Receives r h (t) ~ R(x h (t), a h (t)) 3

139 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) Chooses a h (t) Receives r h (t) ~ R(x h (t), a h (t)) Next x h+ (t) is generated as a function of x h (t) and a h (t) (or sometimes, all previous x s and a s within round t) 3

140 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) Chooses a h (t) Receives r h (t) ~ R(x h (t), a h (t)) Next x h+ (t) is generated as a function of x h (t) and a h (t) (or sometimes, all previous x s and a s within round t) Bandits + Delayed rewards/consequences 3

141 RL For round t =, 2,, For time step h=, 2,, H, the learner Observes x h (t) Chooses a h (t) Receives r h (t) ~ R(x h (t), a h (t)) Next x h+ (t) is generated as a function of x h (t) and a h (t) (or sometimes, all previous x s and a s within round t) Bandits + Delayed rewards/consequences The protocol here is for episodic RL (each t is an episode). 3

142 32 Why statistical RL?

143 Why statistical RL? Two types of scenarios in RL research 32

144 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 32

145 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics 32

146 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states 32

147 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states - Run the simulator to collect data 32

148 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states - Run the simulator to collect data 2. Solving a learning problem 32

149 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states - Run the simulator to collect data 2. Solving a learning problem - e.g., adaptive medical treatment 32

150 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states - Run the simulator to collect data 2. Solving a learning problem - e.g., adaptive medical treatment - Transition dynamics unknown (and too many states) 32

151 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach - e.g., AlphaGo, video game playing, simulated robotics - Transition dynamics (Go rules) known, but too many states - Run the simulator to collect data 2. Solving a learning problem - e.g., adaptive medical treatment - Transition dynamics unknown (and too many states) - Interact with the environment to collect data 32

152 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 2. Solving a learning problem 33

153 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 2. Solving a learning problem I am more interested in #2. More challenging in some aspects. 33

154 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 2. Solving a learning problem I am more interested in #2. More challenging in some aspects. Data (real-world interactions) is highest priority. Computation second. 33

155 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 2. Solving a learning problem I am more interested in #2. More challenging in some aspects. Data (real-world interactions) is highest priority. Computation second. Even for #, sample complexity lower-bounds computational complexity statistical-first approach is reasonable. 33

156 Why statistical RL? Two types of scenarios in RL research. Solving a large planning problem using a learning approach 2. Solving a learning problem I am more interested in #2. More challenging in some aspects. Data (real-world interactions) is highest priority. Computation second. Even for #, sample complexity lower-bounds computational complexity statistical-first approach is reasonable. caveat to this argument: you can do a lot more in a simulator; see 33

157 MDP Planning

158 35 Infinite-horizon discounted MDPs

159 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) 35

160 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. 35

161 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. 35

162 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. We will only consider discrete and finite spaces in this course. 35

163 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. We will only consider discrete and finite spaces in this course. Transition function P : S A (S). (S) is the probability simplex over S, i.e., all non-negative vectors of length S that sums up to 35

164 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. We will only consider discrete and finite spaces in this course. Transition function P : S A (S). (S) is the probability simplex over S, i.e., all non-negative vectors of length S that sums up to Reward function R: S A R. (deterministic reward function) 35

165 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. We will only consider discrete and finite spaces in this course. Transition function P : S A (S). (S) is the probability simplex over S, i.e., all non-negative vectors of length S that sums up to Reward function R: S A R. (deterministic reward function) Discount factor γ [0,) 35

166 Infinite-horizon discounted MDPs An MDP M = (S, A, P, R, γ) State space S. Action space A. We will only consider discrete and finite spaces in this course. Transition function P : S A (S). (S) is the probability simplex over S, i.e., all non-negative vectors of length S that sums up to Reward function R: S A R. (deterministic reward function) Discount factor γ [0,) The agent starts in some state s, takes action a, receives reward r 2 ~ R(s, a ), transitions to s 2 ~ P(s, a ), takes action a 2, so on so forth the process continues indefinitely 35

167 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] 36

168 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act 36

169 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: r t [0, R max ] 36

170 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: What s the range of E [? t= γt r t ] r t [0, R max ] 36

171 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: What s the range of E [? t= γt r t ] r t [0, R max ] [ 0, R max γ ] 36

172 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: What s the range of E [? t= γt r t ] A (deterministic) policy ": S A describes how the agent acts: at state s t, chooses action a t = "(s t ). r t [0, R max ] [ 0, R max γ ] 36

173 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: What s the range of E [? t= γt r t ] A (deterministic) policy ": S A describes how the agent acts: at state s t, chooses action a t = "(s t ). r t [0, R max ] [ 0, R max γ ] More generally, the agent may choose actions randomly (": S (A)), or even in a way that varies across time steps ( nonstationary policies ) 36

174 Value and policy Want to take actions in a way that maximizes value (or return): E [ t= γt r t ] This value depends on where you start and how you act Often assume boundedness of rewards: What s the range of E [? t= γt r t ] A (deterministic) policy ": S A describes how the agent acts: at state s t, chooses action a t = "(s t ). r t [0, R max ] [ 0, R max γ ] More generally, the agent may choose actions randomly (": S (A)), or even in a way that varies across time steps ( nonstationary policies ) Define V π (s) = E [ t= γt r t s = s, π ] 36

175 <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> " X V (s) =E " Bellman equation for policy evaluation t= = E r + # t r t s = s, # X t r t s = s, t=2 = R(s, (s)) + X " X P (s 0 t s, (s)) E 2 r t s = s, s 2 = s 0, s 0 2S t=2 = R(s, (s)) + X " # X P (s 0 t s, (s)) E 2 r t s 2 = s 0, s 0 2S t=2 = R(s, (s)) + X " X P (s 0 s, (s)) E s 0 2S t= = R(s, (s)) + X s 0 2S P (s 0 s, (s)) V (s 0 ) # t r t s = s 0, # = R(s, (s)) + hp ( s, (s)), V ( )i 37

176 <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> <latexit sha_base64="eoquviw3eaqrldri0wywmhhoohu=">aaafnniczvrbaxnbfj52v63xluqjlwedjse07azbxwpfexzwiv6sfjljmjuzbiboxpizfcj2+6d88xf4hcffphvn+dsjoayvqufwyfhd+fyfd85nb0/evxpxznz2ltss5evbf2txlt+4+at6vbtvoptsvmpxikwbz5rtpci9ttxgh0kkphqf2zfp3xwxpffmal4hl3vs4qnqxjefmip0cblbvsv+6mmjzxvqcbswonjamah0vpfz57nwlcjhmcvhl6md98hhk00tpaaqldmsr0jpud9dqcy58hr6a84cofhhewoyjetdvq4wrv4gwpuah/ctoxjqalgyvg6plyqab5hjyqqyuyjyn7koxqbqn40rykzc6tpksff5twovua8jqfuf8/rz5t2yrbhstcubfnh4pb7nq9+tdqqajamaoc6tjwkzitvaay2dr7lct0rpz2k554lthlowawpyuv/2ixzfnqxzpkohsa9dj9dajunmqwf7bqwijoyckyanjrirkapivv30o94ndjnymhtpkl2rfrkjlzqfvsks5qlwy4xzrnggzmnw4xhsapzrodeksajqf4q2dmjanazixbqorgk9apkyrq89juzbdc9zzpg/o23xa7qthtb2ni3fsobvohmogfzge+gf6qieotz768t6bh2xp9if7k/2t3nq5sai5g765djffwcc5qb0</latexit> " X V (s) =E " Bellman equation for policy evaluation t= = E r + # t r t s = s, # X t r t s = s, t=2 = R(s, (s)) + X " X P (s 0 t s, (s)) E 2 r t s = s, s 2 = s 0, s 0 2S t=2 = R(s, (s)) + X " # X P (s 0 t s, (s)) E 2 r t s 2 = s 0, s 0 2S t=2 = R(s, (s)) + X " X P (s 0 s, (s)) E s 0 2S t= = R(s, (s)) + X s 0 2S P (s 0 s, (s)) V (s 0 ) # t r t s = s 0, # = R(s, (s)) + hp ( s, (s)), V ( )i 37

177 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S 38

178 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S 38

179 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S P " as the matrix [P(s s, "(s))] s S, s S 38

180 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S P " as the matrix [P(s s, "(s))] s S, s S V π = R π + γp π V π 38

181 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S P " as the matrix [P(s s, "(s))] s S, s S V π = R π + γp π V π (I γp π )V π = R π 38

182 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S P " as the matrix [P(s s, "(s))] s S, s S V π = R π + γp π V π (I γp π )V π = R π V π = (I γp π ) R π 38

183 Bellman equation for policy evaluation V π (s) = R(s, π(s)) + γ P( s, π(s)), V π ( ) Matrix form: define V " as the S vector [V " (s)] s S R " as the vector [R(s, "(s))] s S P " as the matrix [P(s s, "(s))] s S, s S V π = R π + γp π V π (I γp π )V π = R π 38 V π = (I γp π ) R π This is always invertible. Proof?

184 State occupancy (I γp π ) 39

185 State occupancy (I γp π ) Each row (indexed by s) is the discounted state occupancy d s ", whose (s )-th entry is 39

186 State occupancy (I γp π ) Each row (indexed by s) is the discounted state occupancy d " s, whose (s )-th entry is ds π(s ) = E γ [ t I[s t = s ] s = s, π t= ] 39

187 State occupancy (I γp π ) Each row (indexed by s) is the discounted state occupancy d " s, whose (s )-th entry is ds π(s ) = E γ [ t I[s t = s ] s = s, π t= ] Each row is like a distribution vector except that the entries sum up to /(-γ). Let denote the normalized vector. η π s = ( γ) dπ s 39

188 State occupancy (I γp π ) Each row (indexed by s) is the discounted state occupancy d " s, whose (s )-th entry is ds π(s ) = E γ [ t I[s t = s ] s = s, π t= ] Each row is like a distribution vector except that the entries sum up to /(-γ). Let denote the normalized vector. V " (s) is the dot product between and reward vector η π s = ( γ) dπ s d π s 39

189 State occupancy (I γp π ) Each row (indexed by s) is the discounted state occupancy d " s, whose (s )-th entry is Each row is like a distribution vector except that the entries sum up to /(-γ). Let denote the normalized vector. V " (s) is the dot product between and reward vector ds π(s ) = E γ [ t I[s t = s ] s = s, π t= ] η π s = ( γ) dπ s Can also be interpreted as the value function of indicator reward function d π s 39

190 Optimality For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) 40

191 Optimality For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* 40

192 For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* Bellman Optimality Equation: Optimality V (s) = max a A (R(s, a) + γe s P(s,a) [V (s )]) 40

193 For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* Bellman Optimality Equation: Optimality V (s) = max a A (R(s, a) + γe s P(s,a) [V (s )]) If we know V*, how to get "*? 40

194 For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* Bellman Optimality Equation: Optimality V (s) = max a A (R(s, a) + γe s P(s,a) [V (s )]) If we know V*, how to get "*? 40

195 For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* Bellman Optimality Equation: Optimality V (s) = max a A (R(s, a) + γe s P(s,a) [V (s )]) If we know V*, how to get "*? Easier to work with Q-values: Q*(s, a), as π (s) = arg max a A Q (s, a) 40

196 For infinite-horizon discounted MDPs, there always exists a stationary and deterministic policy that is optimal for all starting states simultaneously Proof: Puterman 94, Thm (reference due to Shipra Agrawal) Let "* denote this optimal policy, and V* := V "* Bellman Optimality Equation: Optimality V (s) = max a A (R(s, a) + γe s P(s,a) [V (s )]) If we know V*, how to get "*? Easier to work with Q-values: Q*(s, a), as π (s) = arg max a A Q (s, a) 40 Q (s, a) = R(s, a) + γe s P(s,a) [ max a A Q (s, a ) ]

197 4 Ad Hoc Homework

198 Ad Hoc Homework uploaded on course website 4

199 Ad Hoc Homework uploaded on course website help understand the relationships between alternative MDP formulations 4

200 Ad Hoc Homework uploaded on course website help understand the relationships between alternative MDP formulations more like readings w/ questions to think about 4

201 Ad Hoc Homework uploaded on course website help understand the relationships between alternative MDP formulations more like readings w/ questions to think about no need to submit 4

202 Ad Hoc Homework uploaded on course website help understand the relationships between alternative MDP formulations more like readings w/ questions to think about no need to submit will go through in class next week 4

CS 598 Statistical Reinforcement Learning

CS 598 Statistical Reinforcement Learning CS 598 Statistical Reinforcement Learning Nan Jiang 08/8/08 If you are not registered for the class, please take a seat after class begins. Thanks! Run > Hide > Fight Emergencies can happen anywhere and

More information

MDP Preliminaries. Nan Jiang. February 10, 2019

MDP Preliminaries. Nan Jiang. February 10, 2019 MDP Preliminaries Nan Jiang February 10, 2019 1 Markov Decision Processes In reinforcement learning, the interactions between the agent and the environment are often described by a Markov Decision Process

More information

Lecture 1: March 7, 2018

Lecture 1: March 7, 2018 Reinforcement Learning Spring Semester, 2017/8 Lecture 1: March 7, 2018 Lecturer: Yishay Mansour Scribe: ym DISCLAIMER: Based on Learning and Planning in Dynamical Systems by Shie Mannor c, all rights

More information

Reinforcement Learning. Yishay Mansour Tel-Aviv University

Reinforcement Learning. Yishay Mansour Tel-Aviv University Reinforcement Learning Yishay Mansour Tel-Aviv University 1 Reinforcement Learning: Course Information Classes: Wednesday Lecture 10-13 Yishay Mansour Recitations:14-15/15-16 Eliya Nachmani Adam Polyak

More information

CS 570: Machine Learning Seminar. Fall 2016

CS 570: Machine Learning Seminar. Fall 2016 CS 570: Machine Learning Seminar Fall 2016 Class Information Class web page: http://web.cecs.pdx.edu/~mm/mlseminar2016-2017/fall2016/ Class mailing list: cs570@cs.pdx.edu My office hours: T,Th, 2-3pm or

More information

Introduction to Reinforcement Learning. CMPT 882 Mar. 18

Introduction to Reinforcement Learning. CMPT 882 Mar. 18 Introduction to Reinforcement Learning CMPT 882 Mar. 18 Outline for the week Basic ideas in RL Value functions and value iteration Policy evaluation and policy improvement Model-free RL Monte-Carlo and

More information

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti 1 MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti Historical background 2 Original motivation: animal learning Early

More information

Introduction to Reinforcement Learning

Introduction to Reinforcement Learning CSCI-699: Advanced Topics in Deep Learning 01/16/2019 Nitin Kamra Spring 2019 Introduction to Reinforcement Learning 1 What is Reinforcement Learning? So far we have seen unsupervised and supervised learning.

More information

Reinforcement Learning. Introduction

Reinforcement Learning. Introduction Reinforcement Learning Introduction Reinforcement Learning Agent interacts and learns from a stochastic environment Science of sequential decision making Many faces of reinforcement learning Optimal control

More information

Markov Decision Processes and Solving Finite Problems. February 8, 2017

Markov Decision Processes and Solving Finite Problems. February 8, 2017 Markov Decision Processes and Solving Finite Problems February 8, 2017 Overview of Upcoming Lectures Feb 8: Markov decision processes, value iteration, policy iteration Feb 13: Policy gradients Feb 15:

More information

Administration. CSCI567 Machine Learning (Fall 2018) Outline. Outline. HW5 is available, due on 11/18. Practice final will also be available soon.

Administration. CSCI567 Machine Learning (Fall 2018) Outline. Outline. HW5 is available, due on 11/18. Practice final will also be available soon. Administration CSCI567 Machine Learning Fall 2018 Prof. Haipeng Luo U of Southern California Nov 7, 2018 HW5 is available, due on 11/18. Practice final will also be available soon. Remaining weeks: 11/14,

More information

CSC321 Lecture 22: Q-Learning

CSC321 Lecture 22: Q-Learning CSC321 Lecture 22: Q-Learning Roger Grosse Roger Grosse CSC321 Lecture 22: Q-Learning 1 / 21 Overview Second of 3 lectures on reinforcement learning Last time: policy gradient (e.g. REINFORCE) Optimize

More information

CS599 Lecture 1 Introduction To RL

CS599 Lecture 1 Introduction To RL CS599 Lecture 1 Introduction To RL Reinforcement Learning Introduction Learning from rewards Policies Value Functions Rewards Models of the Environment Exploitation vs. Exploration Dynamic Programming

More information

Decision Theory: Markov Decision Processes

Decision Theory: Markov Decision Processes Decision Theory: Markov Decision Processes CPSC 322 Lecture 33 March 31, 2006 Textbook 12.5 Decision Theory: Markov Decision Processes CPSC 322 Lecture 33, Slide 1 Lecture Overview Recap Rewards and Policies

More information

Reinforcement learning an introduction

Reinforcement learning an introduction Reinforcement learning an introduction Prof. Dr. Ann Nowé Computational Modeling Group AIlab ai.vub.ac.be November 2013 Reinforcement Learning What is it? Learning from interaction Learning about, from,

More information

Prof. Dr. Ann Nowé. Artificial Intelligence Lab ai.vub.ac.be

Prof. Dr. Ann Nowé. Artificial Intelligence Lab ai.vub.ac.be REINFORCEMENT LEARNING AN INTRODUCTION Prof. Dr. Ann Nowé Artificial Intelligence Lab ai.vub.ac.be REINFORCEMENT LEARNING WHAT IS IT? What is it? Learning from interaction Learning about, from, and while

More information

REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning

REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning Ronen Tamari The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (#67679) February 28, 2016 Ronen Tamari

More information

REINFORCEMENT LEARNING

REINFORCEMENT LEARNING REINFORCEMENT LEARNING Larry Page: Where s Google going next? DeepMind's DQN playing Breakout Contents Introduction to Reinforcement Learning Deep Q-Learning INTRODUCTION TO REINFORCEMENT LEARNING Contents

More information

Machine Learning. Reinforcement learning. Hamid Beigy. Sharif University of Technology. Fall 1396

Machine Learning. Reinforcement learning. Hamid Beigy. Sharif University of Technology. Fall 1396 Machine Learning Reinforcement learning Hamid Beigy Sharif University of Technology Fall 1396 Hamid Beigy (Sharif University of Technology) Machine Learning Fall 1396 1 / 32 Table of contents 1 Introduction

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Markov decision process & Dynamic programming Evaluative feedback, value function, Bellman equation, optimality, Markov property, Markov decision process, dynamic programming, value

More information

Decision Theory: Q-Learning

Decision Theory: Q-Learning Decision Theory: Q-Learning CPSC 322 Decision Theory 5 Textbook 12.5 Decision Theory: Q-Learning CPSC 322 Decision Theory 5, Slide 1 Lecture Overview 1 Recap 2 Asynchronous Value Iteration 3 Q-Learning

More information

Grundlagen der Künstlichen Intelligenz

Grundlagen der Künstlichen Intelligenz Grundlagen der Künstlichen Intelligenz Reinforcement learning Daniel Hennes 4.12.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Reinforcement learning Model based and

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Ron Parr CompSci 7 Department of Computer Science Duke University With thanks to Kris Hauser for some content RL Highlights Everybody likes to learn from experience Use ML techniques

More information

Some AI Planning Problems

Some AI Planning Problems Course Logistics CS533: Intelligent Agents and Decision Making M, W, F: 1:00 1:50 Instructor: Alan Fern (KEC2071) Office hours: by appointment (see me after class or send email) Emailing me: include CS533

More information

Reinforcement Learning II. George Konidaris

Reinforcement Learning II. George Konidaris Reinforcement Learning II George Konidaris gdk@cs.brown.edu Fall 2018 Reinforcement Learning π : S A max R = t=0 t r t MDPs Agent interacts with an environment At each time t: Receives sensor signal Executes

More information

Trust Region Policy Optimization

Trust Region Policy Optimization Trust Region Policy Optimization Yixin Lin Duke University yixin.lin@duke.edu March 28, 2017 Yixin Lin (Duke) TRPO March 28, 2017 1 / 21 Overview 1 Preliminaries Markov Decision Processes Policy iteration

More information

Lecture 18: Reinforcement Learning Sanjeev Arora Elad Hazan

Lecture 18: Reinforcement Learning Sanjeev Arora Elad Hazan COS 402 Machine Learning and Artificial Intelligence Fall 2016 Lecture 18: Reinforcement Learning Sanjeev Arora Elad Hazan Some slides borrowed from Peter Bodik and David Silver Course progress Learning

More information

Course 16:198:520: Introduction To Artificial Intelligence Lecture 13. Decision Making. Abdeslam Boularias. Wednesday, December 7, 2016

Course 16:198:520: Introduction To Artificial Intelligence Lecture 13. Decision Making. Abdeslam Boularias. Wednesday, December 7, 2016 Course 16:198:520: Introduction To Artificial Intelligence Lecture 13 Decision Making Abdeslam Boularias Wednesday, December 7, 2016 1 / 45 Overview We consider probabilistic temporal models where the

More information

Lecture 3: Markov Decision Processes

Lecture 3: Markov Decision Processes Lecture 3: Markov Decision Processes Joseph Modayil 1 Markov Processes 2 Markov Reward Processes 3 Markov Decision Processes 4 Extensions to MDPs Markov Processes Introduction Introduction to MDPs Markov

More information

Lecture 23: Reinforcement Learning

Lecture 23: Reinforcement Learning Lecture 23: Reinforcement Learning MDPs revisited Model-based learning Monte Carlo value function estimation Temporal-difference (TD) learning Exploration November 23, 2006 1 COMP-424 Lecture 23 Recall:

More information

ARTIFICIAL INTELLIGENCE. Reinforcement learning

ARTIFICIAL INTELLIGENCE. Reinforcement learning INFOB2KI 2018-2019 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Reinforcement learning Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html

More information

Reinforcement Learning. Donglin Zeng, Department of Biostatistics, University of North Carolina

Reinforcement Learning. Donglin Zeng, Department of Biostatistics, University of North Carolina Reinforcement Learning Introduction Introduction Unsupervised learning has no outcome (no feedback). Supervised learning has outcome so we know what to predict. Reinforcement learning is in between it

More information

INF 5860 Machine learning for image classification. Lecture 14: Reinforcement learning May 9, 2018

INF 5860 Machine learning for image classification. Lecture 14: Reinforcement learning May 9, 2018 Machine learning for image classification Lecture 14: Reinforcement learning May 9, 2018 Page 3 Outline Motivation Introduction to reinforcement learning (RL) Value function based methods (Q-learning)

More information

Reinforcement Learning and Deep Reinforcement Learning

Reinforcement Learning and Deep Reinforcement Learning Reinforcement Learning and Deep Reinforcement Learning Ashis Kumer Biswas, Ph.D. ashis.biswas@ucdenver.edu Deep Learning November 5, 2018 1 / 64 Outlines 1 Principles of Reinforcement Learning 2 The Q

More information

Lecture 25: Learning 4. Victor R. Lesser. CMPSCI 683 Fall 2010

Lecture 25: Learning 4. Victor R. Lesser. CMPSCI 683 Fall 2010 Lecture 25: Learning 4 Victor R. Lesser CMPSCI 683 Fall 2010 Final Exam Information Final EXAM on Th 12/16 at 4:00pm in Lederle Grad Res Ctr Rm A301 2 Hours but obviously you can leave early! Open Book

More information

Review: TD-Learning. TD (SARSA) Learning for Q-values. Bellman Equations for Q-values. P (s, a, s )[R(s, a, s )+ Q (s, (s ))]

Review: TD-Learning. TD (SARSA) Learning for Q-values. Bellman Equations for Q-values. P (s, a, s )[R(s, a, s )+ Q (s, (s ))] Review: TD-Learning function TD-Learning(mdp) returns a policy Class #: Reinforcement Learning, II 8s S, U(s) =0 set start-state s s 0 choose action a, using -greedy policy based on U(s) U(s) U(s)+ [r

More information

Reinforcement Learning and Control

Reinforcement Learning and Control CS9 Lecture notes Andrew Ng Part XIII Reinforcement Learning and Control We now begin our study of reinforcement learning and adaptive control. In supervised learning, we saw algorithms that tried to make

More information

, and rewards and transition matrices as shown below:

, and rewards and transition matrices as shown below: CSE 50a. Assignment 7 Out: Tue Nov Due: Thu Dec Reading: Sutton & Barto, Chapters -. 7. Policy improvement Consider the Markov decision process (MDP) with two states s {0, }, two actions a {0, }, discount

More information

Deep Reinforcement Learning: Policy Gradients and Q-Learning

Deep Reinforcement Learning: Policy Gradients and Q-Learning Deep Reinforcement Learning: Policy Gradients and Q-Learning John Schulman Bay Area Deep Learning School September 24, 2016 Introduction and Overview Aim of This Talk What is deep RL, and should I use

More information

Reinforcement Learning. Machine Learning, Fall 2010

Reinforcement Learning. Machine Learning, Fall 2010 Reinforcement Learning Machine Learning, Fall 2010 1 Administrativia This week: finish RL, most likely start graphical models LA2: due on Thursday LA3: comes out on Thursday TA Office hours: Today 1:30-2:30

More information

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam:

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam: Marks } Assignment 1: Should be out this weekend } All are marked, I m trying to tally them and perhaps add bonus points } Mid-term: Before the last lecture } Mid-term deferred exam: } This Saturday, 9am-10.30am,

More information

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning Hanna Kurniawati Today } What is machine learning? } Where is it used? } Types of machine learning

More information

Reinforcement Learning II. George Konidaris

Reinforcement Learning II. George Konidaris Reinforcement Learning II George Konidaris gdk@cs.brown.edu Fall 2017 Reinforcement Learning π : S A max R = t=0 t r t MDPs Agent interacts with an environment At each time t: Receives sensor signal Executes

More information

Lecture 3: Policy Evaluation Without Knowing How the World Works / Model Free Policy Evaluation

Lecture 3: Policy Evaluation Without Knowing How the World Works / Model Free Policy Evaluation Lecture 3: Policy Evaluation Without Knowing How the World Works / Model Free Policy Evaluation CS234: RL Emma Brunskill Winter 2018 Material builds on structure from David SIlver s Lecture 4: Model-Free

More information

Machine Learning I Reinforcement Learning

Machine Learning I Reinforcement Learning Machine Learning I Reinforcement Learning Thomas Rückstieß Technische Universität München December 17/18, 2009 Literature Book: Reinforcement Learning: An Introduction Sutton & Barto (free online version:

More information

Introduction to Reinforcement Learning

Introduction to Reinforcement Learning Introduction to Reinforcement Learning Rémi Munos SequeL project: Sequential Learning http://researchers.lille.inria.fr/ munos/ INRIA Lille - Nord Europe Machine Learning Summer School, September 2011,

More information

Markov decision processes

Markov decision processes CS 2740 Knowledge representation Lecture 24 Markov decision processes Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Administrative announcements Final exam: Monday, December 8, 2008 In-class Only

More information

Christopher Watkins and Peter Dayan. Noga Zaslavsky. The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015

Christopher Watkins and Peter Dayan. Noga Zaslavsky. The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015 Q-Learning Christopher Watkins and Peter Dayan Noga Zaslavsky The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015 Noga Zaslavsky Q-Learning (Watkins & Dayan, 1992)

More information

CSE250A Fall 12: Discussion Week 9

CSE250A Fall 12: Discussion Week 9 CSE250A Fall 12: Discussion Week 9 Aditya Menon (akmenon@ucsd.edu) December 4, 2012 1 Schedule for today Recap of Markov Decision Processes. Examples: slot machines and maze traversal. Planning and learning.

More information

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels?

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels? Machine Learning and Bayesian Inference Dr Sean Holden Computer Laboratory, Room FC6 Telephone extension 6372 Email: sbh11@cl.cam.ac.uk www.cl.cam.ac.uk/ sbh11/ Unsupervised learning Can we find regularity

More information

CMU Lecture 12: Reinforcement Learning. Teacher: Gianni A. Di Caro

CMU Lecture 12: Reinforcement Learning. Teacher: Gianni A. Di Caro CMU 15-781 Lecture 12: Reinforcement Learning Teacher: Gianni A. Di Caro REINFORCEMENT LEARNING Transition Model? State Action Reward model? Agent Goal: Maximize expected sum of future rewards 2 MDP PLANNING

More information

Today s s Lecture. Applicability of Neural Networks. Back-propagation. Review of Neural Networks. Lecture 20: Learning -4. Markov-Decision Processes

Today s s Lecture. Applicability of Neural Networks. Back-propagation. Review of Neural Networks. Lecture 20: Learning -4. Markov-Decision Processes Today s s Lecture Lecture 20: Learning -4 Review of Neural Networks Markov-Decision Processes Victor Lesser CMPSCI 683 Fall 2004 Reinforcement learning 2 Back-propagation Applicability of Neural Networks

More information

Reinforcement Learning as Classification Leveraging Modern Classifiers

Reinforcement Learning as Classification Leveraging Modern Classifiers Reinforcement Learning as Classification Leveraging Modern Classifiers Michail G. Lagoudakis and Ronald Parr Department of Computer Science Duke University Durham, NC 27708 Machine Learning Reductions

More information

Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm

Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm Michail G. Lagoudakis Department of Computer Science Duke University Durham, NC 2778 mgl@cs.duke.edu

More information

Deep Reinforcement Learning SISL. Jeremy Morton (jmorton2) November 7, Stanford Intelligent Systems Laboratory

Deep Reinforcement Learning SISL. Jeremy Morton (jmorton2) November 7, Stanford Intelligent Systems Laboratory Deep Reinforcement Learning Jeremy Morton (jmorton2) November 7, 2016 SISL Stanford Intelligent Systems Laboratory Overview 2 1 Motivation 2 Neural Networks 3 Deep Reinforcement Learning 4 Deep Learning

More information

Basics of reinforcement learning

Basics of reinforcement learning Basics of reinforcement learning Lucian Buşoniu TMLSS, 20 July 2018 Main idea of reinforcement learning (RL) Learn a sequential decision policy to optimize the cumulative performance of an unknown system

More information

Course basics. CSE 190: Reinforcement Learning: An Introduction. Last Time. Course goals. The website for the class is linked off my homepage.

Course basics. CSE 190: Reinforcement Learning: An Introduction. Last Time. Course goals. The website for the class is linked off my homepage. Course basics CSE 190: Reinforcement Learning: An Introduction The website for the class is linked off my homepage. Grades will be based on programming assignments, homeworks, and class participation.

More information

CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes

CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes Kee-Eung Kim KAIST EECS Department Computer Science Division Markov Decision Processes (MDPs) A popular model for sequential decision

More information

Reinforcement Learning: the basics

Reinforcement Learning: the basics Reinforcement Learning: the basics Olivier Sigaud Université Pierre et Marie Curie, PARIS 6 http://people.isir.upmc.fr/sigaud August 6, 2012 1 / 46 Introduction Action selection/planning Learning by trial-and-error

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Cyber Rodent Project Some slides from: David Silver, Radford Neal CSC411: Machine Learning and Data Mining, Winter 2017 Michael Guerzhoy 1 Reinforcement Learning Supervised learning:

More information

CS230: Lecture 9 Deep Reinforcement Learning

CS230: Lecture 9 Deep Reinforcement Learning CS230: Lecture 9 Deep Reinforcement Learning Kian Katanforoosh Menti code: 21 90 15 Today s outline I. Motivation II. Recycling is good: an introduction to RL III. Deep Q-Learning IV. Application of Deep

More information

Reinforcement Learning. George Konidaris

Reinforcement Learning. George Konidaris Reinforcement Learning George Konidaris gdk@cs.brown.edu Fall 2017 Machine Learning Subfield of AI concerned with learning from data. Broadly, using: Experience To Improve Performance On Some Task (Tom

More information

Open Theoretical Questions in Reinforcement Learning

Open Theoretical Questions in Reinforcement Learning Open Theoretical Questions in Reinforcement Learning Richard S. Sutton AT&T Labs, Florham Park, NJ 07932, USA, sutton@research.att.com, www.cs.umass.edu/~rich Reinforcement learning (RL) concerns the problem

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning 1 Reinforcement Learning Mainly based on Reinforcement Learning An Introduction by Richard Sutton and Andrew Barto Slides are mainly based on the course material provided by the

More information

Deep Reinforcement Learning. STAT946 Deep Learning Guest Lecture by Pascal Poupart University of Waterloo October 19, 2017

Deep Reinforcement Learning. STAT946 Deep Learning Guest Lecture by Pascal Poupart University of Waterloo October 19, 2017 Deep Reinforcement Learning STAT946 Deep Learning Guest Lecture by Pascal Poupart University of Waterloo October 19, 2017 Outline Introduction to Reinforcement Learning AlphaGo (Deep RL for Computer Go)

More information

MS&E338 Reinforcement Learning Lecture 1 - April 2, Introduction

MS&E338 Reinforcement Learning Lecture 1 - April 2, Introduction MS&E338 Reinforcement Learning Lecture 1 - April 2, 2018 Introduction Lecturer: Ben Van Roy Scribe: Gabriel Maher 1 Reinforcement Learning Introduction In reinforcement learning (RL) we consider an agent

More information

Markov Models and Reinforcement Learning. Stephen G. Ware CSCI 4525 / 5525

Markov Models and Reinforcement Learning. Stephen G. Ware CSCI 4525 / 5525 Markov Models and Reinforcement Learning Stephen G. Ware CSCI 4525 / 5525 Camera Vacuum World (CVW) 2 discrete rooms with cameras that detect dirt. A mobile robot with a vacuum. The goal is to ensure both

More information

Autonomous Helicopter Flight via Reinforcement Learning

Autonomous Helicopter Flight via Reinforcement Learning Autonomous Helicopter Flight via Reinforcement Learning Authors: Andrew Y. Ng, H. Jin Kim, Michael I. Jordan, Shankar Sastry Presenters: Shiv Ballianda, Jerrolyn Hebert, Shuiwang Ji, Kenley Malveaux, Huy

More information

15-780: ReinforcementLearning

15-780: ReinforcementLearning 15-780: ReinforcementLearning J. Zico Kolter March 2, 2016 1 Outline Challenge of RL Model-based methods Model-free methods Exploration and exploitation 2 Outline Challenge of RL Model-based methods Model-free

More information

Machine Learning. Machine Learning: Jordan Boyd-Graber University of Maryland REINFORCEMENT LEARNING. Slides adapted from Tom Mitchell and Peter Abeel

Machine Learning. Machine Learning: Jordan Boyd-Graber University of Maryland REINFORCEMENT LEARNING. Slides adapted from Tom Mitchell and Peter Abeel Machine Learning Machine Learning: Jordan Boyd-Graber University of Maryland REINFORCEMENT LEARNING Slides adapted from Tom Mitchell and Peter Abeel Machine Learning: Jordan Boyd-Graber UMD Machine Learning

More information

November 28 th, Carlos Guestrin 1. Lower dimensional projections

November 28 th, Carlos Guestrin 1. Lower dimensional projections PCA Machine Learning 10701/15781 Carlos Guestrin Carnegie Mellon University November 28 th, 2007 1 Lower dimensional projections Rather than picking a subset of the features, we can new features that are

More information

Reinforcement Learning

Reinforcement Learning 1 Reinforcement Learning Chris Watkins Department of Computer Science Royal Holloway, University of London July 27, 2015 2 Plan 1 Why reinforcement learning? Where does this theory come from? Markov decision

More information

Hidden Markov Models (HMM) and Support Vector Machine (SVM)

Hidden Markov Models (HMM) and Support Vector Machine (SVM) Hidden Markov Models (HMM) and Support Vector Machine (SVM) Professor Joongheon Kim School of Computer Science and Engineering, Chung-Ang University, Seoul, Republic of Korea 1 Hidden Markov Models (HMM)

More information

CS181 Midterm 2 Practice Solutions

CS181 Midterm 2 Practice Solutions CS181 Midterm 2 Practice Solutions 1. Convergence of -Means Consider Lloyd s algorithm for finding a -Means clustering of N data, i.e., minimizing the distortion measure objective function J({r n } N n=1,

More information

Reinforcement Learning Part 2

Reinforcement Learning Part 2 Reinforcement Learning Part 2 Dipendra Misra Cornell University dkm@cs.cornell.edu https://dipendramisra.wordpress.com/ From previous tutorial Reinforcement Learning Exploration No supervision Agent-Reward-Environment

More information

Lecture 10 - Planning under Uncertainty (III)

Lecture 10 - Planning under Uncertainty (III) Lecture 10 - Planning under Uncertainty (III) Jesse Hoey School of Computer Science University of Waterloo March 27, 2018 Readings: Poole & Mackworth (2nd ed.)chapter 12.1,12.3-12.9 1/ 34 Reinforcement

More information

AM 121: Intro to Optimization Models and Methods: Fall 2018

AM 121: Intro to Optimization Models and Methods: Fall 2018 AM 11: Intro to Optimization Models and Methods: Fall 018 Lecture 18: Markov Decision Processes Yiling Chen Lesson Plan Markov decision processes Policies and value functions Solving: average reward, discounted

More information

CS 6375 Machine Learning

CS 6375 Machine Learning CS 6375 Machine Learning Nicholas Ruozzi University of Texas at Dallas Slides adapted from David Sontag and Vibhav Gogate Course Info. Instructor: Nicholas Ruozzi Office: ECSS 3.409 Office hours: Tues.

More information

Markov Decision Processes

Markov Decision Processes Markov Decision Processes Noel Welsh 11 November 2010 Noel Welsh () Markov Decision Processes 11 November 2010 1 / 30 Annoucements Applicant visitor day seeks robot demonstrators for exciting half hour

More information

Markov Decision Processes and Dynamic Programming

Markov Decision Processes and Dynamic Programming Markov Decision Processes and Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) Ecole Centrale - Option DAD SequeL INRIA Lille EC-RL Course In This Lecture A. LAZARIC Markov Decision Processes

More information

Reinforcement learning

Reinforcement learning Reinforcement learning Based on [Kaelbling et al., 1996, Bertsekas, 2000] Bert Kappen Reinforcement learning Reinforcement learning is the problem faced by an agent that must learn behavior through trial-and-error

More information

6 Reinforcement Learning

6 Reinforcement Learning 6 Reinforcement Learning As discussed above, a basic form of supervised learning is function approximation, relating input vectors to output vectors, or, more generally, finding density functions p(y,

More information

Chapter 3: The Reinforcement Learning Problem

Chapter 3: The Reinforcement Learning Problem Chapter 3: The Reinforcement Learning Problem Objectives of this chapter: describe the RL problem we will be studying for the remainder of the course present idealized form of the RL problem for which

More information

Q-learning. Tambet Matiisen

Q-learning. Tambet Matiisen Q-learning Tambet Matiisen (based on chapter 11.3 of online book Artificial Intelligence, foundations of computational agents by David Poole and Alan Mackworth) Stochastic gradient descent Experience

More information

Reinforcement Learning. Spring 2018 Defining MDPs, Planning

Reinforcement Learning. Spring 2018 Defining MDPs, Planning Reinforcement Learning Spring 2018 Defining MDPs, Planning understandability 0 Slide 10 time You are here Markov Process Where you will go depends only on where you are Markov Process: Information state

More information

Machine Learning I Continuous Reinforcement Learning

Machine Learning I Continuous Reinforcement Learning Machine Learning I Continuous Reinforcement Learning Thomas Rückstieß Technische Universität München January 7/8, 2010 RL Problem Statement (reminder) state s t+1 ENVIRONMENT reward r t+1 new step r t

More information

Reinforcement Learning and NLP

Reinforcement Learning and NLP 1 Reinforcement Learning and NLP Kapil Thadani kapil@cs.columbia.edu RESEARCH Outline 2 Model-free RL Markov decision processes (MDPs) Derivative-free optimization Policy gradients Variance reduction Value

More information

CS 7180: Behavioral Modeling and Decisionmaking

CS 7180: Behavioral Modeling and Decisionmaking CS 7180: Behavioral Modeling and Decisionmaking in AI Markov Decision Processes for Complex Decisionmaking Prof. Amy Sliva October 17, 2012 Decisions are nondeterministic In many situations, behavior and

More information

Introduction of Reinforcement Learning

Introduction of Reinforcement Learning Introduction of Reinforcement Learning Deep Reinforcement Learning Reference Textbook: Reinforcement Learning: An Introduction http://incompleteideas.net/sutton/book/the-book.html Lectures of David Silver

More information

Lecture 3: The Reinforcement Learning Problem

Lecture 3: The Reinforcement Learning Problem Lecture 3: The Reinforcement Learning Problem Objectives of this lecture: describe the RL problem we will be studying for the remainder of the course present idealized form of the RL problem for which

More information

Real Time Value Iteration and the State-Action Value Function

Real Time Value Iteration and the State-Action Value Function MS&E338 Reinforcement Learning Lecture 3-4/9/18 Real Time Value Iteration and the State-Action Value Function Lecturer: Ben Van Roy Scribe: Apoorva Sharma and Tong Mu 1 Review Last time we left off discussing

More information

RL 3: Reinforcement Learning

RL 3: Reinforcement Learning RL 3: Reinforcement Learning Q-Learning Michael Herrmann University of Edinburgh, School of Informatics 20/01/2015 Last time: Multi-Armed Bandits (10 Points to remember) MAB applications do exist (e.g.

More information

CSE 546 Final Exam, Autumn 2013

CSE 546 Final Exam, Autumn 2013 CSE 546 Final Exam, Autumn 0. Personal info: Name: Student ID: E-mail address:. There should be 5 numbered pages in this exam (including this cover sheet).. You can use any material you brought: any book,

More information

Reinforcement Learning II

Reinforcement Learning II Reinforcement Learning II Andrea Bonarini Artificial Intelligence and Robotics Lab Department of Electronics and Information Politecnico di Milano E-mail: bonarini@elet.polimi.it URL:http://www.dei.polimi.it/people/bonarini

More information

An Adaptive Clustering Method for Model-free Reinforcement Learning

An Adaptive Clustering Method for Model-free Reinforcement Learning An Adaptive Clustering Method for Model-free Reinforcement Learning Andreas Matt and Georg Regensburger Institute of Mathematics University of Innsbruck, Austria {andreas.matt, georg.regensburger}@uibk.ac.at

More information

Artificial Intelligence & Sequential Decision Problems

Artificial Intelligence & Sequential Decision Problems Artificial Intelligence & Sequential Decision Problems (CIV6540 - Machine Learning for Civil Engineers) Professor: James-A. Goulet Département des génies civil, géologique et des mines Chapter 15 Goulet

More information

15-780: Graduate Artificial Intelligence. Reinforcement learning (RL)

15-780: Graduate Artificial Intelligence. Reinforcement learning (RL) 15-780: Graduate Artificial Intelligence Reinforcement learning (RL) From MDPs to RL We still use the same Markov model with rewards and actions But there are a few differences: 1. We do not assume we

More information

Reinforcement learning

Reinforcement learning Reinforcement learning Stuart Russell, UC Berkeley Stuart Russell, UC Berkeley 1 Outline Sequential decision making Dynamic programming algorithms Reinforcement learning algorithms temporal difference

More information

Notes on Tabular Methods

Notes on Tabular Methods Notes on Tabular ethods Nan Jiang September 28, 208 Overview of the methods. Tabular certainty-equivalence Certainty-equivalence is a model-based RL algorithm, that is, it first estimates an DP model from

More information

Policy Gradient Methods. February 13, 2017

Policy Gradient Methods. February 13, 2017 Policy Gradient Methods February 13, 2017 Policy Optimization Problems maximize E π [expression] π Fixed-horizon episodic: T 1 Average-cost: lim T 1 T r t T 1 r t Infinite-horizon discounted: γt r t Variable-length

More information