Lecture 8: Policy Gradient
|
|
- Nelson Thomas Weaver
- 6 years ago
- Views:
Transcription
1 Lecture 8: Policy Gradient Hado van Hasselt
2 Outline 1 Introduction 2 Finite Difference Policy Gradient 3 Monte-Carlo Policy Gradient 4 Actor-Critic Policy Gradient
3 Introduction Vapnik s rule Never solve a more general problem as an intermediate step. (Vladimir Vapnik, 1998) If we care about optimal behaviour: why not learn a policy directly?
4 Introduction General overview Model-based RL: + Easy to learn a model (supervised learning) - Wrong objective - Non-trivial going from model to policy (planning) Value-based RL: + Closer to true objective o Harder than learning models, but perhaps easier than policies - Still not exactly right objective Policy-based RL: + Right objective! - Learning & evaluating policies can be inefficient (high variance) - Ignores other learnable knowledge, which may be important
5 Introduction Policy-Based Reinforcement Learning In the last lecture we approximated the value or action-value function using parameters θ, v θ (s) v π (s) q θ (s, a) q π (s, a) A policy was generated directly from the value function e.g. using ɛ-greedy In this lecture we will directly parametrize the policy π θ (a s) = P [a s, θ] We focus on model-free reinforcement learning
6 Introduction Value-Based and Policy-Based RL Value Based Learnt Value Function Implicit policy (e.g. ɛ-greedy) Policy Based No Value Function Learnt Policy Actor-Critic Learnt Value Function Learnt Policy Value Function Value-Based Actor Critic Policy Policy-Based
7 Introduction Advantages of Policy-Based RL Advantages: Better convergence properties Effective in high-dimensional or continuous action spaces Can learn stochastic policies Sometimes policies are simple while values and models are complex Disadvantages: Susceptible to local optima Learning a policy can be slower than learning values
8 Introduction Rock-Paper-Scissors Example Example: Rock-Paper-Scissors Two-player game of rock-paper-scissors Scissors beats paper Rock beats scissors Paper beats rock Consider policies for iterated rock-paper-scissors A deterministic policy is easily exploited A uniform random policy is optimal (i.e. Nash equilibrium)
9 Introduction Aliased Gridworld Example Example: Aliased Gridworld (1) The agent cannot differentiate the grey states Consider features of the following form (for all N, E, S, W) walls actions {}}{{}}{ φ(s, a) = (}{{} 1 }{{} 0 }{{} 1 }{{} 0 }{{} 0 }{{} 1 }{{} 0 }{{} 0 ) N E S W N E S W Compare deterministic and stochastic policies
10 Introduction Aliased Gridworld Example Example: Aliased Gridworld (2) Under aliasing, an optimal deterministic policy will either move W in both grey states (shown by red arrows) move E in both grey states Either way, it can get stuck and never reach the money So it will traverse the corridor for a long time
11 Introduction Aliased Gridworld Example Example: Aliased Gridworld (3) An optimal stochastic policy moves randomly E or W in grey states π θ (wall to N and S, move E) = 0.5 π θ (wall to N and S, move W) = 0.5 Will reach the goal state in a few steps with high probability Policy-based RL can learn the optimal stochastic policy
12 Introduction Policy Search Policy Objective Functions Goal: given policy π θ (s, a) with parameters θ, find best θ But how do we measure the quality of a policy π θ? In episodic environments we can use the start value J 1 (θ) = v πθ (s 1 ) In continuing environments we can use the average value J avv (θ) = s d πθ (s)v πθ (s) Or the average reward per time-step J avr (θ) = s d πθ (s) a π θ (s, a)r a s where d πθ (s) is stationary distribution of Markov chain for π θ
13 Introduction Policy Search Policy Optimisation Policy based reinforcement learning is an optimization problem Find θ that maximises J(θ) Some approaches do not use gradient Hill climbing Genetic algorithms Greater efficiency often possible using gradient Gradient descent Conjugate gradient Quasi-newton We will focus on stochastic gradient descent
14 Finite Difference Policy Gradient Policy Gradient!"#$%"&'(%")*+,#'-'!"#$%%" (%")*+,#'.+/0+,# Let J(θ) be any policy objective function Policy gradient algorithms search for a!"#$%&'('%$&#()&*+$,*$#&&-&$$$$."'%"$ local maximum in J(θ) by ascending the '*$%-/0'*,('-*$.'("$("#$1)*%('-*$ gradient of the policy, w.r.t. parameters θ,22&-3'/,(-& %,*$0#$)+#4$(-$ %&#,(#$,*$#&&-&$1)*%('-*$$$$$$$$$$$$$ θ = α θ J(θ) Where θ J(θ) is the policy gradient!"#$2,&(',5$4'11#&#*(',5$-1$("'+$#&&-&$ J(θ) 1)*%('-*$$$$$$$$$$$$$$$$6$("#$7&,4'#*($ θ 1 %,*$*-.$0#$)+#4$(-$)24,(#$("#$ θ J(θ) =. '*(#&*,5$8,&',05#+$'*$("#$1)*%('-*$ J(θ) θ n,22&-3'/,(-& 9,*4$%&'('%:;$$$$$$ and α is a step-size parameter
15 Monte-Carlo Policy Gradient Likelihood Ratios Gradients on parameterized policies We need to compute an estimate of the policy gradient Assume policy π θ is differentiable almost everywhere E.g., π θ is a linear function, or a neural network Or perhaps we may have a parameterized class of controllers Goal is to compute θ J(θ) = θ E d [v πθ (S)]. We will use Monte Carlo samples to compute this gradient So, how does E d [v πθ (S)] depend on θ?
16 Monte-Carlo Policy Gradient Likelihood Ratios Monte Carlo Policy Gradient Consider a one-step case such that J(θ) = E[R(S, A)], where expectation is over d (states) and π (actions) We cannot sample R t+1 and then take a gradient: R t+1 is just a number that does not depend on θ Instead, we use the identity: θ E[R(S, A)] = E[ θ log π(a S)R(S, A)]. (Proof on next slide) The right-hand side gives an expected gradient that can be sampled
17 Monte-Carlo Policy Gradient Likelihood Ratios Monte Carlo Policy Gradient θ E[R(S, A)] = θ d(s) π θ (a s)r(s, a) s a = d(s) θ π θ (a s)r(s, a) s a = s = s d(s) a d(s) a π θ (a s) θπ θ (a s) R(s, a) π θ (a s) π θ (a s) θ log π θ (a s)r(s, a) = E[ θ log π θ (A S)R(S, A)]
18 Monte-Carlo Policy Gradient Likelihood Ratios Monte Carlo Policy Gradient θ E[R(S, A)] = E[ θ log π θ (A S)R(S, A)] (see previous slide) This is something we can sample Our stochastic policy-gradient update is then θ t+1 = θ t + αr t+1 θ log π θt (A t S t ). In expectation, this is the actual policy gradient So this is a stochastic gradient algorithm
19 Monte-Carlo Policy Gradient Likelihood Ratios Softmax Policy Consider a softmax policy on linear values as an example Weight actions using linear combination of features φ(s, a) θ Probability of action is proportional to exponentiated weight π θ (s, a) e φ(s,a) θ b eφ(s,b) θ The gradient of the log probability is θ log π θ (s, a) = φ(s, a) E πθ [φ(s, )]
20 Monte-Carlo Policy Gradient Likelihood Ratios Gaussian Policy In continuous action spaces, a Gaussian policy is common E.g., mean is a linear combination of state features µ(s) = φ(s) θ Lets assume variance may be fixed at σ 2 (can be parametrized as well, instead) Policy is Gaussian, a N (µ(s), σ 2 ) The gradient of the log of the policy is then θ log π θ (s, a) = (a µ(s))φ(s) σ 2
21 Monte-Carlo Policy Gradient Policy Gradient Theorem Policy Gradient Theorem The policy gradient theorem generalizes this approach to multi-step MDPs Replaces instantaneous reward R with long-term value q π (s, a) Policy gradient theorem applies to start state objective, average reward and average value objective Theorem For any differentiable policy π θ (s, a), 1 for any of the policy objective functions J = J 1, J avr, or 1 γ J avv, the policy gradient is θ J(θ) = E πθ [ θ log π θ (A S) q πθ (S, A)]
22 Monte-Carlo Policy Gradient Policy Gradient Theorem Monte-Carlo Policy Gradient (REINFORCE) Using return G t = R t+1 + γr t+2 + γ 2 R t as an unbiased sample of q πθ (S t, A t ) Update parameters by stochastic gradient ascent θ t = α θ log π θ (A t S t )G t function REINFORCE Initialise θ arbitrarily for each episode {S 1, A 1, R 2,..., S T 1, A T 1, R T } π θ do for t = 1 to T 1 do θ θ + α θ log π θ (A t S t )G t end for end for return θ end function
23 Monte-Carlo Policy Gradient Policy Gradient Theorem Labyrinth
24 Actor-Critic Policy Gradient Reducing Variance Using a Critic Monte-Carlo policy gradient can have high variance, because we use full return We can use a critic to estimate the action-value function, q w (s, a) q πθ (s, a) Actor-critic algorithms maintain two sets of parameters Critic Updates action-value function parameters w Actor Updates policy parameters θ, in direction suggested by critic One Actor-critic algorithm: follow an approximate policy gradient θ J(θ) E πθ [ θ log π θ (s, a) q w (s, a)] θ = α θ log π θ (s, a) q w (s, a)
25 Actor-Critic Policy Gradient Estimating the Action-Value Function The critic is solving a familiar problem: policy evaluation What is the value of policy π θ for current parameters θ? This problem was explored in previous lectures, e.g. Monte-Carlo policy evaluation Temporal-Difference learning TD(λ)
26 Actor-Critic Policy Gradient Action-Value Actor-Critic Simple actor-critic algorithm based on action-value critic Using linear value fn approx. q w (s, a) = φ(s, a) w Critic Updates w by linear Sarsa(0) Actor Updates θ by policy gradient function QAC Initialise s, θ Sample a π θ for each step do Sample reward R = R a s ; sample transition S PS, A Sample action A π θ (S ) w w + β(r + γq w (S, A ) q w (S, A))φ(S, A) θ = θ + α θ log π θ (s, a)q w (s, a) a a, s s end for end function [Sarsa(0)] [Policy gradient update]
27 Actor-Critic Policy Gradient Compatible Function Approximation Bias in Actor-Critic Algorithms Approximating the policy gradient introduces bias A biased policy gradient may not find the right solution e.g. if q w (s, a) uses aliased features, can we solve gridworld example? Luckily, if we choose value function approximation carefully: we can avoid introducing any bias i.e. we can still follow the exact policy gradient
28 Actor-Critic Policy Gradient Compatible Function Approximation Compatible Function Approximation Theorem (Compatible Function Approximation Theorem) If the following two conditions are satisfied: 1 Value function approximator is compatible to the policy w q w (s, a) = θ log π θ (s, a) 2 Value function parameters w minimise the mean-squared error [ ε = E πθ (qπθ (S, A) q w (S, A)) 2] Then the policy gradient is exact, θ J(θ) = E πθ [ θ log π θ (A S) q w (S, A)]
29 Actor-Critic Policy Gradient Compatible Function Approximation Proof of Compatible Function Approximation Theorem If w is chosen to minimise mean-squared error, gradient of ε w.r.t. w must be zero, w ε = 0 E πθ [(q πθ (S, A) q w (S, A)) w q w (S, A)] = 0 E πθ [(q πθ (S, A) q w (S, A)) θ log π θ (A S)] = 0 E πθ [q πθ (S, A) θ log π θ (A S)] = E πθ [q w (S, A) θ log π θ (A S)] So q w (s, a) can be substituted directly into the policy gradient, θ J(θ) = E πθ [ θ log π θ (s, a)q w (s, a)]
30 Actor-Critic Policy Gradient Compatible Function Approximation Compatible Function Approximation 1 Value function approximator is compatible to the policy w q w (s, a) = θ log π θ (s, a) 2 Value function parameters w minimise the mean-squared error [ ε = E πθ (qπθ (S, A) q w (S, A)) 2] Unfortunately, 1) only holds for certain function classes Unfortunately, 2) is never quite true These are typical limitations of theory; be aware of the assumptions
31 Actor-Critic Policy Gradient Advantage Function Critic Reducing Variance Using a Baseline We subtract a baseline function b(s) from the policy gradient This can reduce variance, without changing expectation E πθ [ θ log π θ (s, a)b(s)] = d πθ (s) θ π θ (s, a)b(s) s S a = d πθ b(s) θ π θ (s, a) s S a A = 0 So we can rewrite the policy gradient as θ J(θ) = E πθ [ θ log π θ (s, a) (q πθ (s, a) b(s))]
32 Actor-Critic Policy Gradient Advantage Function Critic Estimating the Advantage Function (1) The advantage function can significantly reduce variance of policy gradient So the critic should really estimate the advantage function For example, by estimating both v πθ (s) and q πθ (s, a) Using two function approximators and two parameter vectors, v ξ (s) v πθ (s) q w (s, a) q πθ (s, a) A(s, a) = q w (s, a) v ξ (s) And updating both value functions by e.g. TD learning
33 Actor-Critic Policy Gradient Advantage Function Critic Estimating the Advantage Function (2) For the true value function v πθ (s), the TD error δ π θ δ π θ = r + γv πθ (s ) v πθ (s) is an unbiased estimate of the advantage function E πθ [δ π θ s, a] = E πθ [R t+1 + γv πθ (S t+1 ) s, a] v πθ (s) = q πθ (s, a) v πθ (s) = A πθ (s, a) So we can use the TD error to compute the policy gradient θ J(θ) = E πθ [ θ log π θ (s, a) δ π θ ] In practice we can use an approximate TD error δ v = r + γv ξ (s ) v ξ (s) This approach only requires one set of critic parameters ξ
34 Actor-Critic Policy Gradient Eligibility Traces Critics at Different Time-Scales Critic can estimate value function v ξ (s) from many targets at different time-scales From last lecture... For MC, the target is the return G t θ = α(g t v ξ (s))φ(s) For TD(0), the target is the TD target r + γv ξ (s ) θ = α(r t+1 + γv ξ (S t+1 ) v ξ (s))φ(s) For forward-view TD(λ), the target is the λ-return G λ t θ = α(g λ t v ξ (s))φ(s) For backward-view TD(λ), we use eligibility traces δ t = R t+1 + γv ξ (s t+1 ) v ξ (s t ) e t = γλe t 1 + φ(s t ) θ = αδ t e t
35 Actor-Critic Policy Gradient Eligibility Traces Actors at Different Time-Scales The policy gradient can also be estimated at many time-scales θ J(θ) = E πθ [ θ log π θ (s, a) A πθ (s, a)] Monte-Carlo policy gradient uses error from complete return θ = α(g t v ξ (s t )) θ log π θ (s t, a t ) Actor-critic policy gradient uses the one-step TD error θ = α(r t+1 + γv ξ (s t+1 ) v ξ (s t )) θ log π θ (s t, a t )
36 Actor-Critic Policy Gradient Eligibility Traces Policy Gradient with Eligibility Traces Just like forward-view TD(λ), we can mix over time-scales θ = α(v λ t v ξ (s t )) θ log π θ (s t, a t ) Like backward-view TD(λ), we can also use eligibility traces By equivalence with TD(λ), substituting φ(s) = θ log π θ (s, a) δ t = R t+1 + γv ξ (S t+1 ) v ξ (S t ) e t+1 = γλe t + θ log π θ (A t S t ) θ = αδ t e t This update can be applied online, to incomplete sequences
37 Actor-Critic Policy Gradient Natural Policy Gradient Alternative Policy Gradient Directions Gradient ascent algorithms can follow any ascent direction A good ascent direction can significantly speed convergence Also, a policy can often be reparametrised without changing action probabilities For example, increasing score of all actions in a softmax policy The vanilla gradient is sensitive to these reparametrisations
38 Actor-Critic Policy Gradient Natural Policy Gradient Natural Policy Gradient The natural policy gradient is parametrisation independent It finds direction that maximally ascends objective function, when changing policy by a small, fixed amount nat θ π θ (s, a) = G 1 θ θ π θ (s, a) where G θ is the Fisher information matrix G θ = E πθ [ θ log π θ (s, a) θ log π θ (s, a) T ]
39 Actor-Critic Policy Gradient Natural Policy Gradient Natural Actor-Critic Using compatible linear function approximation, φ(s, a) = θ log π θ (s, a) So the natural policy gradient simplifies, θ J(θ) = E πθ [ θ log π θ (s, a)a πθ (s, a)] ] = E πθ [ θ log π θ (s, a)φ(s, a) T w = G θ w nat θ J(θ)= w = E πθ [ θ log π θ (s, a) θ log π θ (s, a) T ] w i.e. update actor parameters in direction of critic parameters
40 robot controlled by this CPG goes straight during ω is ω 0,butturnswhenanimpulsive Lecture 8: Policy Gradient input is added at a certain instance; the turning angle depends on both the CPG s internal Actor-Critic Policy Gradient state Λ and the intensity of the impulse. An action is to select an input out of these two Snake example candidates, and the controller represents the action selection probability which is adjusted by RL. Natural To carry Actor out RLCritic with the in CPG, Snake we employdomain the CPG-actor-critic model [24], in which the physical system (robot) and the CPG are regarded as a single dynamical system, called the CPG-coupled system, and the control signal for the CPG-coupled system is optimized by RL. (a) Crank course (b) Sensor setting Figure 2: Crank course and sensor setting
41 Actor-Critic Policy Gradient Snake example Natural Actor Critic in Snake Domain (2) θi b,therobotsoonhitthewallandgotstuck(fig.3(a)). Incontrast,thepolicyparameter after learning, θi a,allowedtherobottopassthroughthecrankcourserepeatedly(fig.3(b)). This result shows a good controller was acquired by our off-nac Pisition y (m) Pisition y (m) Position x (m) (a) Before learning Position x (m) (b) After learning Figure 3: Behaviors of snake-like robot
42 Actor-Critic Policy Gradient Snake example Summary of Policy Gradient Algorithms The policy gradient has many equivalent forms θ J(θ) = E πθ [ θ log π θ (A S) G t ] REINFORCE = E πθ [ θ log π θ (A S) q w (S, A)] Q Actor-Critic = E πθ [ θ log π θ (A S) A w (S, A)] Advantage Actor-Critic = E πθ [ θ log π θ (A S) δ t ] TD Actor-Critic = E πθ [δ t e t ] TD(λ) Actor-Critic G 1 θ θ J(θ) = w (linear) Natural Actor-Critic Each leads a stochastic gradient ascent algorithm Critic uses policy evaluation (e.g. MC or TD learning) to estimate q π (s, a), A π (s, a) or v π (s)
15-889e Policy Search: Gradient Methods Emma Brunskill. All slides from David Silver (with EB adding minor modificafons), unless otherwise noted
15-889e Policy Search: Gradient Methods Emma Brunskill All slides from David Silver (with EB adding minor modificafons), unless otherwise noted Outline 1 Introduction 2 Finite Difference Policy Gradient
More informationLecture 8: Policy Gradient I 2
Lecture 8: Policy Gradient I 2 Emma Brunskill CS234 Reinforcement Learning. Winter 2018 Additional reading: Sutton and Barto 2018 Chp. 13 2 With many slides from or derived from David Silver and John Schulman
More informationReinforcement Learning
Reinforcement Learning Policy Search: Actor-Critic and Gradient Policy search Mario Martin CS-UPC May 28, 2018 Mario Martin (CS-UPC) Reinforcement Learning May 28, 2018 / 63 Goal of this lecture So far
More informationReinforcement Learning
Reinforcement Learning Policy gradients Daniel Hennes 26.06.2017 University Stuttgart - IPVS - Machine Learning & Robotics 1 Policy based reinforcement learning So far we approximated the action value
More informationLecture 7: Value Function Approximation
Lecture 7: Value Function Approximation Joseph Modayil Outline 1 Introduction 2 3 Batch Methods Introduction Large-Scale Reinforcement Learning Reinforcement learning can be used to solve large problems,
More informationActor-critic methods. Dialogue Systems Group, Cambridge University Engineering Department. February 21, 2017
Actor-critic methods Milica Gašić Dialogue Systems Group, Cambridge University Engineering Department February 21, 2017 1 / 21 In this lecture... The actor-critic architecture Least-Squares Policy Iteration
More informationTemporal Difference. Learning KENNETH TRAN. Principal Research Engineer, MSR AI
Temporal Difference Learning KENNETH TRAN Principal Research Engineer, MSR AI Temporal Difference Learning Policy Evaluation Intro to model-free learning Monte Carlo Learning Temporal Difference Learning
More informationLecture 9: Policy Gradient II 1
Lecture 9: Policy Gradient II 1 Emma Brunskill CS234 Reinforcement Learning. Winter 2019 Additional reading: Sutton and Barto 2018 Chp. 13 1 With many slides from or derived from David Silver and John
More informationLecture 9: Policy Gradient II (Post lecture) 2
Lecture 9: Policy Gradient II (Post lecture) 2 Emma Brunskill CS234 Reinforcement Learning. Winter 2018 Additional reading: Sutton and Barto 2018 Chp. 13 2 With many slides from or derived from David Silver
More informationReinforcement Learning
Reinforcement Learning Function approximation Daniel Hennes 19.06.2017 University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Eligibility traces n-step TD returns Forward and backward view Function
More informationReinforcement 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 informationReinforcement Learning
Reinforcement Learning Temporal Difference Learning Temporal difference learning, TD prediction, Q-learning, elibigility traces. (many slides from Marc Toussaint) Vien Ngo MLR, University of Stuttgart
More informationReinforcement Learning
Reinforcement Learning Temporal Difference Learning Temporal difference learning, TD prediction, Q-learning, elibigility traces. (many slides from Marc Toussaint) Vien Ngo Marc Toussaint University of
More informationApproximation Methods in Reinforcement Learning
2018 CS420, Machine Learning, Lecture 12 Approximation Methods in Reinforcement Learning Weinan Zhang Shanghai Jiao Tong University http://wnzhang.net http://wnzhang.net/teaching/cs420/index.html Reinforcement
More informationOlivier Sigaud. September 21, 2012
Supervised and Reinforcement Learning Tools for Motor Learning Models Olivier Sigaud Université Pierre et Marie Curie - Paris 6 September 21, 2012 1 / 64 Introduction Who is speaking? 2 / 64 Introduction
More informationReinforcement Learning
Reinforcement Learning RL in continuous MDPs March April, 2015 Large/Continuous MDPs Large/Continuous state space Tabular representation cannot be used Large/Continuous action space Maximization over action
More informationLecture 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 informationIntroduction 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 informationReinforcement 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 informationReinforcement 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 informationPART A and ONE question from PART B; or ONE question from PART A and TWO questions from PART B.
Advanced Topics in Machine Learning, GI13, 2010/11 Advanced Topics in Machine Learning, GI13, 2010/11 Answer any THREE questions. Each question is worth 20 marks. Use separate answer books Answer any THREE
More informationNotes on Reinforcement Learning
1 Introduction Notes on Reinforcement Learning Paulo Eduardo Rauber 2014 Reinforcement learning is the study of agents that act in an environment with the goal of maximizing cumulative reward signals.
More informationReinforcement Learning via Policy Optimization
Reinforcement Learning via Policy Optimization Hanxiao Liu November 22, 2017 1 / 27 Reinforcement Learning Policy a π(s) 2 / 27 Example - Mario 3 / 27 Example - ChatBot 4 / 27 Applications - Video Games
More informationNotes on policy gradients and the log derivative trick for reinforcement learning
Notes on policy gradients and the log derivative trick for reinforcement learning David Meyer dmm@{1-4-5.net,uoregon.edu,brocade.com,...} June 3, 2016 1 Introduction The log derivative trick 1 is a widely
More informationINF 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 informationREINFORCE 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 informationMachine 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 informationReinforcement Learning: An Introduction
Introduction Betreuer: Freek Stulp Hauptseminar Intelligente Autonome Systeme (WiSe 04/05) Forschungs- und Lehreinheit Informatik IX Technische Universität München November 24, 2004 Introduction What is
More informationPolicy 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 informationTemporal difference learning
Temporal difference learning AI & Agents for IET Lecturer: S Luz http://www.scss.tcd.ie/~luzs/t/cs7032/ February 4, 2014 Recall background & assumptions Environment is a finite MDP (i.e. A and S are finite).
More informationCS599 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 informationReinforcement Learning
Reinforcement Learning Function approximation Mario Martin CS-UPC May 18, 2018 Mario Martin (CS-UPC) Reinforcement Learning May 18, 2018 / 65 Recap Algorithms: MonteCarlo methods for Policy Evaluation
More informationReinforcement Learning for NLP
Reinforcement Learning for NLP Advanced Machine Learning for NLP Jordan Boyd-Graber REINFORCEMENT OVERVIEW, POLICY GRADIENT Adapted from slides by David Silver, Pieter Abbeel, and John Schulman Advanced
More information15-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 informationDecision 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 informationVariance Reduction for Policy Gradient Methods. March 13, 2017
Variance Reduction for Policy Gradient Methods March 13, 2017 Reward Shaping Reward Shaping Reward Shaping Reward shaping: r(s, a, s ) = r(s, a, s ) + γφ(s ) Φ(s) for arbitrary potential Φ Theorem: r admits
More informationCS 287: Advanced Robotics Fall Lecture 14: Reinforcement Learning with Function Approximation and TD Gammon case study
CS 287: Advanced Robotics Fall 2009 Lecture 14: Reinforcement Learning with Function Approximation and TD Gammon case study Pieter Abbeel UC Berkeley EECS Assignment #1 Roll-out: nice example paper: X.
More informationELEC-E8119 Robotics: Manipulation, Decision Making and Learning Policy gradient approaches. Ville Kyrki
ELEC-E8119 Robotics: Manipulation, Decision Making and Learning Policy gradient approaches Ville Kyrki 9.10.2017 Today Direct policy learning via policy gradient. Learning goals Understand basis and limitations
More informationGrundlagen 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 informationChapter 7: Eligibility Traces. R. S. Sutton and A. G. Barto: Reinforcement Learning: An Introduction 1
Chapter 7: Eligibility Traces R. S. Sutton and A. G. Barto: Reinforcement Learning: An Introduction 1 Midterm Mean = 77.33 Median = 82 R. S. Sutton and A. G. Barto: Reinforcement Learning: An Introduction
More informationOff-Policy Actor-Critic
Off-Policy Actor-Critic Ludovic Trottier Laval University July 25 2012 Ludovic Trottier (DAMAS Laboratory) Off-Policy Actor-Critic July 25 2012 1 / 34 Table of Contents 1 Reinforcement Learning Theory
More informationBasics 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 informationReinforcement 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 informationGrundlagen der Künstlichen Intelligenz
Grundlagen der Künstlichen Intelligenz Reinforcement learning II Daniel Hennes 11.12.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Eligibility traces n-step TD returns
More information6 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 informationReinforcement 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 informationDeep reinforcement learning. Dialogue Systems Group, Cambridge University Engineering Department
Deep reinforcement learning Milica Gašić Dialogue Systems Group, Cambridge University Engineering Department 1 / 25 In this lecture... Introduction to deep reinforcement learning Value-based Deep RL Deep
More informationReinforcement Learning with Function Approximation. Joseph Christian G. Noel
Reinforcement Learning with Function Approximation Joseph Christian G. Noel November 2011 Abstract Reinforcement learning (RL) is a key problem in the field of Artificial Intelligence. The main goal is
More informationMarkov 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 informationReinforcement Learning. Summer 2017 Defining MDPs, Planning
Reinforcement Learning Summer 2017 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 informationECE276B: Planning & Learning in Robotics Lecture 16: Model-free Control
ECE276B: Planning & Learning in Robotics Lecture 16: Model-free Control Lecturer: Nikolay Atanasov: natanasov@ucsd.edu Teaching Assistants: Tianyu Wang: tiw161@eng.ucsd.edu Yongxi Lu: yol070@eng.ucsd.edu
More informationReinforcement 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 information6 Basic Convergence Results for RL Algorithms
Learning in Complex Systems Spring 2011 Lecture Notes Nahum Shimkin 6 Basic Convergence Results for RL Algorithms We establish here some asymptotic convergence results for the basic RL algorithms, by showing
More informationReinforcement 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 informationDialogue management: Parametric approaches to policy optimisation. Dialogue Systems Group, Cambridge University Engineering Department
Dialogue management: Parametric approaches to policy optimisation Milica Gašić Dialogue Systems Group, Cambridge University Engineering Department 1 / 30 Dialogue optimisation as a reinforcement learning
More informationReinforcement 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 informationReinforcement 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 informationReinforcement 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 informationDeep Reinforcement Learning via Policy Optimization
Deep Reinforcement Learning via Policy Optimization John Schulman July 3, 2017 Introduction Deep Reinforcement Learning: What to Learn? Policies (select next action) Deep Reinforcement Learning: What to
More informationReinforcement 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 informationProf. 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 informationArtificial Intelligence
Artificial Intelligence Dynamic Programming Marc Toussaint University of Stuttgart Winter 2018/19 Motivation: So far we focussed on tree search-like solvers for decision problems. There is a second important
More informationNatural Language Processing. Slides from Andreas Vlachos, Chris Manning, Mihai Surdeanu
Natural Language Processing Slides from Andreas Vlachos, Chris Manning, Mihai Surdeanu Projects Project descriptions due today! Last class Sequence to sequence models Attention Pointer networks Today Weak
More informationDeep 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 informationLecture 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 informationCSE 190: Reinforcement Learning: An Introduction. Chapter 8: Generalization and Function Approximation. Pop Quiz: What Function Are We Approximating?
CSE 190: Reinforcement Learning: An Introduction Chapter 8: Generalization and Function Approximation Objectives of this chapter: Look at how experience with a limited part of the state set be used to
More informationDecision 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 informationTutorial on Policy Gradient Methods. Jan Peters
Tutorial on Policy Gradient Methods Jan Peters Outline 1. Reinforcement Learning 2. Finite Difference vs Likelihood-Ratio Policy Gradients 3. Likelihood-Ratio Policy Gradients 4. Conclusion General Setup
More informationTrust 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 informationInternet Monetization
Internet Monetization March May, 2013 Discrete time Finite A decision process (MDP) is reward process with decisions. It models an environment in which all states are and time is divided into stages. Definition
More informationReinforcement Learning
Reinforcement Learning Markov decision process & Dynamic programming Evaluative feedback, value function, Bellman equation, optimality, Markov property, Markov decision process, dynamic programming, value
More informationMachine 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 informationReplacing eligibility trace for action-value learning with function approximation
Replacing eligibility trace for action-value learning with function approximation Kary FRÄMLING Helsinki University of Technology PL 5500, FI-02015 TKK - Finland Abstract. The eligibility trace is one
More informationMachine 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 informationReinforcement 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 informationReinforcement 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 informationarxiv: v1 [cs.ai] 5 Nov 2017
arxiv:1711.01569v1 [cs.ai] 5 Nov 2017 Markus Dumke Department of Statistics Ludwig-Maximilians-Universität München markus.dumke@campus.lmu.de Abstract Temporal-difference (TD) learning is an important
More informationThe Book: Where we are and where we re going. CSE 190: Reinforcement Learning: An Introduction. Chapter 7: Eligibility Traces. Simple Monte Carlo
CSE 190: Reinforcement Learning: An Introduction Chapter 7: Eligibility races Acknowledgment: A good number of these slides are cribbed from Rich Sutton he Book: Where we are and where we re going Part
More informationQ-Learning in Continuous State Action Spaces
Q-Learning in Continuous State Action Spaces Alex Irpan alexirpan@berkeley.edu December 5, 2015 Contents 1 Introduction 1 2 Background 1 3 Q-Learning 2 4 Q-Learning In Continuous Spaces 4 5 Experimental
More informationQ-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 informationPART A and ONE question from PART B; or ONE question from PART A and TWO questions from PART B.
Advanced Topics in Machine Learning, GI13, 2010/11 Advanced Topics in Machine Learning, GI13, 2010/11 Answer any THREE questions. Each question is worth 20 marks. Use separate answer books Answer any THREE
More informationReinforcement 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 informationReinforcement 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 informationChristopher 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 informationCourse 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 informationReinforcement Learning using Continuous Actions. Hado van Hasselt
Reinforcement Learning using Continuous Actions Hado van Hasselt 2005 Concluding thesis for Cognitive Artificial Intelligence University of Utrecht First supervisor: Dr. Marco A. Wiering, University of
More informationCSC321 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 informationREINFORCEMENT 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 informationUsing Gaussian Processes for Variance Reduction in Policy Gradient Algorithms *
Proceedings of the 8 th International Conference on Applied Informatics Eger, Hungary, January 27 30, 2010. Vol. 1. pp. 87 94. Using Gaussian Processes for Variance Reduction in Policy Gradient Algorithms
More information(Deep) Reinforcement Learning
Martin Matyášek Artificial Intelligence Center Czech Technical University in Prague October 27, 2016 Martin Matyášek VPD, 2016 1 / 17 Reinforcement Learning in a picture R. S. Sutton and A. G. Barto 2015
More informationMARKOV 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 informationLecture 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 informationBalancing 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 informationCounterfactual Multi-Agent Policy Gradients
Counterfactual Multi-Agent Policy Gradients Shimon Whiteson Dept. of Computer Science University of Oxford joint work with Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, and Nantas Nardelli July
More informationDavid Silver, Google DeepMind
Tutorial: Deep Reinforcement Learning David Silver, Google DeepMind Outline Introduction to Deep Learning Introduction to Reinforcement Learning Value-Based Deep RL Policy-Based Deep RL Model-Based Deep
More informationDeterministic Policy Gradient, Advanced RL Algorithms
NPFL122, Lecture 9 Deterministic Policy Gradient, Advanced RL Algorithms Milan Straka December 1, 218 Charles University in Prague Faculty of Mathematics and Physics Institute of Formal and Applied Linguistics
More informationARTIFICIAL 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 informationPolicy Gradient Reinforcement Learning for Robotics
Policy Gradient Reinforcement Learning for Robotics Michael C. Koval mkoval@cs.rutgers.edu Michael L. Littman mlittman@cs.rutgers.edu May 9, 211 1 Introduction Learning in an environment with a continuous
More informationReinforcement Learning
Reinforcement Learning Function Approximation Continuous state/action space, mean-square error, gradient temporal difference learning, least-square temporal difference, least squares policy iteration Vien
More informationRL 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