RL Chapter 04
RL Chapter 04
Sarath Chandar
•ñ¥
1-
Programming
4. Dynamic
-
be used to
-
collection of algorithms that can compute
Limitations : -
1 .
Assumes a
perfect model .
2.
Computationally expensive .
However , it
provides essential foundation for the
are
.
finite ,
the
dynamics
are
given by
PCs
'
.ir/s,a)-Vs-c-S,ae-Afs7,r c- R
and S
'
est ( where St
is S plus
terminal
keyidai functions
a
use
of value to
state for
and structure the episodic setting )
organize
search for good policies
.
Optimal value fns V* ,
9.* satisfy the Bellman
optimality equations .
is = Max
a
E[R£+ ,
+✗ 4- tti )
/ St :S
,At=a]
= Max
a
E
stir
pls ',r / Sca) [+84+611]
= I p( slits a) ,
[r+8ma✗9*Cs!a
s !r a
'
DP
algorithms are obtained
by turning Bellman
ign
Policy ) :
an
arbitrary policy I ?
(s ) = E- [ Gt 1st ] :S
=
Er [ Rtt ,
+
rGt+ , / St :S ]
=
¥ [ Rtt ,
-18¥ ( Sta ) / f. ]
=s
4,1s) Flats ) I
-2 PCs !rls a) [rtÑv,,--s'☐
=
a
Sir
L⑨
taking
'
of
in
=
prob .
policy
under IT -
is
guaranteed from all states under
policy
IT -
then ⑨ is a
system of 1st simultaneous
tedious
straight forward but .
Iterative soln : -
St AIR .
chosen ( except that
arbitrarily
The initial is
approx .
by using
Each successive is obtained
approx .
rule .
[Link] ) =
E- [ Rtt ,
+ ÑkCse→ ) / Ses]
Ealtlals )
[Link]/fr-8vkcsiDs'.rV-sc-f
= I
known
This
algorithm [Link]
is as
.
faster
converges
.
Note update of
:
of all the States
2
One round is
-
called as
# space .
policy
Iterative
Note2 evaluation
only converges in
limit .
undiscovered ,
episodic
i
setting .
[Link]/movenert:--
for the
computing
One reason value
fn for to
help find better
policy
is
policies
a
.
for
arbitrary
Given if some
policy it
,
to
deterministically choose an action a =/ ITG ) .
Consider
'
thereafter
'
and
selecting
a' s
'
in
following the
existing policy
it
.
The value
of this
way of behaving
is
[Link]/t --a)---zpCs:rls.a)fr+8r#siD
ohtfsia ) =
E- [ Ra -184T Cstte ) /
,
'
s
,r
'
which takes action
'
a' in state
policyfollow
new it
slates
'
s
'
and IT for rest of the would
be a
better
policy .
Poliyimprovemertthorem (PIT )
-
Then the I be
policy good
must as as
,
better then IT
or
.
i. e. Vitals) 746 ) Ks C- f.
Ѱ¥ ( s) I 9*(5,11-161)
= E- [ Rtt ,
-184+(5++1) / St :S AET ,
'
est
]
=
Em [ Rtt -184+(4-+1) / se
,
:S
]
I ¥ , [ Reti -179+6++51116++1 )) 1St ]
:S
Att , -1T¥
] )s
=ÉLRt+ ,
-1812++2 -187+(4-+1) / st=s]
I E# [ Rtt -184*+2+844-+3 -18%+9-+37/4:-)
,
)
:S
=
Viti G)
-
fol owing
it
greedy policy
the art
consider
the value fn .
I
'
=
argmax 9g G. a)
a
=
argmox E[ 12++1+84+01 -
+ e) / st=s ,
]
a
Atta
=
[Link]/Gr-8rn-cs' 1)
a Sir
should be
By PIT , this
greedy policy
as
that
original policy by making
an
improves on
,
it
greedy
wit '
[Link]. s e
called
policy
is
'
T as
policy
is
the
greedy
new
then
good as
, but not better than it
,
Vq = VII.
Yi G)
,
= Max É[Rt+,trVñdst+ ) / f. ,
=s
,
]
a A- =a
Bellman
This is same as
Optimality egn .
optimal policies .
Policy
n : -
/ I . .
-
. .
1T¥ E→V* .
Polevaluation
icy Policy
improvement
to be
guaranteed strict
policy
Each is
a
optimal )
already
.
number of policies ,
this process must
converge
and optimal value fn in
to an optimal
policy
of iterations
finite number
.
a
Val
ueIkra:- (VI )
Limitatioofyitehun : -
evaluation
computation .
How
every ,
Policy only
converges in limit to truncate
.
When
policy
evaluation step ?
one
sweep .
the
update rule
for value iteration combines
the
policy improvement and truncated
policy
evaluation steps .
Ya ,
(s ) = max
a
E[Rt+ -184<(51-+1) /
, St :S , 4. =D
=
Max -2 Pls ! rlsea)[r+ Driers '☐
a
stir
tsef
For sequence fries
be
arbitrary ro the can
,
Bellman
optimality egn
to an
update rule .
to evaluation
Noted identical
policy except
: VI is
actions .
May
variations
of interleaving policy evaluator
improvement possible!
policy
with is
-
Asynchronous DP : -
Asynchronous DP → in-place DP
algorithms with
no
systematic sweeping .
Just state
update whatever is next available .
.
a
MDP , iterative DP
algorithm
we can run an
update
.
-
Generalized
Policy
Iteration : GPI )
-
(
-
two
iteration consists of simultaneous
Policy ,
interacting processes
the Rhee fn
→ one
making Consistent with
(
policy Policy
the current
evaluation ?
→ the other
making the
policy greedy wart .
the
granularity and other details of two
processes .
evaluation
FE
it ✓
IT
mrgvgreedylv)
←
improvement
÷
1T¥ ✓
*
both and
These two
processes
are
competing
cooperating .
[Link]
finds optimal time
policy
an in that is
n = #
of stakes
K = #
of actions .
K ?
Total #
of deterministic policies =
direct search !
exponentially faster
is than
DP
programming
but scalable as DP
they not as .
are