Docsity

Discretization - Advanced Robotics - Lecture Slides, Slides of Robotics

Partial preview of the text

Download Discretization - Advanced Robotics - Lecture Slides and more Slides Robotics in PDF only on Docsity!

Discre'za'on

[Drawing from Su;on and Barto, Reinforcement Learning: An IntroducCon, 1998]

Markov Decision Process

AssumpCon: agent gets to observe the state

Value IteraCon

n Algorithm:

n Start with for all s.

n For i=1, … , H

For all states s 2 S:

This is called a value update or Bellman update/back-­‐up

n = the expected sum of rewards accumulated when

starCng from state s and acCng opCmally for a horizon of i steps

n = the opCmal acCon when in state s and geang to act

for a horizon of i steps

n S = conCnuous set

n Value iteraCon becomes impracCcal as it requires to

compute, for all states s ² S:

ConCnuous State Spaces

DiscreCzaCon Approach A: Deterministic Transition

onto Nearest Vertex --- 0’th Order Approximation

Discrete states: { » 1

, …, » 6

}

Similarly define transiCon

probabiliCes for all » i

1

5

4

3

2

6

a

n à Discrete MDP just over the states {»

1

, …, »

6

}, which we can solve with value

iteraCon

n If a (state, acCon) pair can results in infinitely many (or very many) different next states:

Sample next states from the next-­‐state distribuCon

DiscreCzaCon Approach B: StochasCc TransiCon onto

Neighboring VerCces -­‐-­‐-­‐ 1’st Order ApproximaCon

Discrete states: { » 1

, …, » 12

}

n If stochasCc: Repeat procedure to account for all possible transiCons and

weight accordingly

n Need not be triangular, but could use other ways to select neighbors that

contribute. “Kuhn triangulaCon” is parCcular choice that allows for efficient

computaCon of the weights p

A

, p

B

, p

C

, also in higher dimensions

10

11

12

8

4

3

2

6

7

s

a

n For non-­‐discrete state s choose ac'on based on policy in nearby states

n Nearest Neighbor:

n (Stochas'c) Interpola'on:

How to Act (i): 0-­‐step Lookahead

n Use value func'on found for discrete MDP

n Nearest Neighbor:

n (Stochas'c) Interpola'on:

How to Act (ii): 1-­‐step Lookahead

n Dynamics:

n Cost funcCon:

Example: Double integrator-­‐-­‐-­‐quadraCc cost

g(q, q˙, u) = q

2

  • u

2

0’th Order InterpolaCon, 1 Step Lookahead for

AcCon SelecCon -­‐-­‐-­‐ Trajectories

op#mal

Nearest neighbor, h = 1

Nearest neighbor, h = 0. Nearest neighbor, h = 0.

dt=0.

n Typical guarantees:

n Assume: smoothness of cost funcCon, transiCon model

n For h à 0, the discreCzed value funcCon will approach the

true value funcCon

n To obtain guarantee about resulCng policy, combine above

with a general result about MDP’s:

n One-­‐step lookahead policy based on value funcCon V which

is close to V* is a policy that a;ains value close to V*

DiscreCzaCon Quality Guarantees

n Chow and Tsitsiklis, 1991:

n Show that one discreCzed back-­‐up is close to one “complete” back-­‐up

  • then show sequence of back-­‐ups is also close

n Kushner and Dupuis, 2001:

n Show that sample paths in discrete stochasCc MDP approach sample

paths in conCnuous (determinisCc) MDP [also proofs for stochasCc

conCnuous, bit more complex]

n FuncCon approximaCon based proof (see later slides for what

is meant with “funcCon approximaCon”)

n Great descripCons: Gordon, 1995; Tsitsiklis and Van Roy, 1996

Quality of Value FuncCon Obtained from

Discrete MDP: Proof Techniques

Value IteraCon with FuncCon ApproximaCon

Provides alternaCve derivaCon and interpretaCon of the

discreCzaCon methods we have covered in this set of slides:

n Start with for all s.

n For i=0, 1, … , H-­‐

for all states , where is the discrete state set

where

0’th Order Func'on Approxima'on 1

st

Order Func'on Approxima'on

n 0’th order funcCon approximaCon

builds piecewise constant approximaCon of value funcCon

n 1

st

order funcCon approximaCn

builds piecewise (over “triangles”) linear approximaCon of

value funcCon

DiscreCzaCon as funcCon approximaCon