topics in reinforcement learning:rollout and approximate...

18
Topics in Reinforcement Learning: Rollout and Approximate Policy Iteration ASU, CSE 691, Spring 2020 Dimitri P. Bertsekas [email protected] Lecture 1 Bertsekas Reinforcement Learning 1 / 22

Upload: others

Post on 31-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Topics in Reinforcement Learning:Rollout and Approximate Policy Iteration

ASU, CSE 691, Spring 2020

Dimitri P. [email protected]

Lecture 1

Bertsekas Reinforcement Learning 1 / 22

Page 2: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Outline

1 Introduction, History, General Concepts

2 About this Course

3 Exact Dynamic Programming - Deterministic Problems

4 Organizational Issues

Bertsekas Reinforcement Learning 2 / 22

Page 3: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

AlphaGo (2016) and AlphaZero (2017)

AlphaZero (Google-Deep Mind)

Plays different!

Learned from scratch ... with 4 hours of training!

Plays much better than all chess programs

Same algorithm learned multiple games (Go, Shogi)

AlphaZero is not just playing better, it has discovered a new way to play!

With a methodology closely related to the special RL topics of this course

Bertsekas Reinforcement Learning 4 / 22

Page 4: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Evolution of Approximate DP/RL

Decision/Control/DP

Principle of Optimality

Markov Decision Problems

POMDP

Policy IterationValue Iteration

AI/RLLearning through Data/Experience

Simulation,Model-Free Methods

Feature-Based

Representations

A*/Games/Heuristics

Complementary Ideas

Late 80s-Early 90s

Historical highlightsExact DP, optimal control (Bellman, Shannon, and others 1950s ...)

AI/RL and Decision/Control/DP ideas meet (late 80s-early 90s)

First major successes: Backgammon programs (Tesauro, 1992, 1996)

Algorithmic progress, analysis, applications, first books (mid 90s ...)

Machine Learning, BIG Data, Robotics, Deep Neural Networks (mid 2000s ...)

AlphaGo and Alphazero (DeepMind, 2016, 2017)

Bertsekas Reinforcement Learning 5 / 22

Page 5: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Approximate DP/RL Methodology is now Ambitious and Universal

Exact DP applies (in principle) to a very broad range of optimization problemsDeterministic <—-> Stochastic

Combinatorial optimization <—-> Optimal control w/ infinite state/control spaces

One decision maker <—-> Two player games

... BUT is plagued by the curse of dimensionality and need for a math model

Approximate DP/RL overcomes the difficulties of exact DP by:Approximation (use neural nets and other architectures to reduce dimension)

Simulation (use a computer model in place of a math model)

State of the art:Broadly applicable methodology: Can address a very broad range of challengingproblems. Deterministic-stochastic-dynamic, discrete-continuous, games, etc

There are no methods that are guaranteed to work for all or even most problems

There are enough methods to try with a reasonable chance of success for mosttypes of optimization problems

Role of the theory: Guide the art, delineate the sound ideas

Bertsekas Reinforcement Learning 6 / 22

Page 6: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

A Key Idea: Sequential Decisions w/ Approximation in Value Space

......

Current State

Next StateDecision

CostDecisions/Costs

Current Stage Future Stages

Exact DP: Making optimal decisions in stages (deterministic state transitions)At current state, apply decision that minimizes

Current Stage Cost + J∗(Next State)

where J∗(Next State) is the optimal future cost, starting from the next state.

This defines an optimal policy (an optimal control to apply at each state and stage)

Approximate DP: Use approximate cost J instead of J∗

At current state, apply decision that minimizes (perhaps approximately)

Current Stage Cost + J(Next State)

This defines a suboptimal policy

Bertsekas Reinforcement Learning 7 / 22

Page 7: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Major Approaches/Ideas to Compute the Approximate Cost Function J

Problem approximation

Use as J the optimal cost function of a related problem (computed by exact DP)

Rollout and model predictive control

Use as J the cost function of some policy (computed somehow, perhaps according tosome simplified optimization process)

Use of neural networks and other feature-based architecturesThey serve as function approximators

Use of simulation to generate data to “train" the architecturesApproximation architectures involve parameters that are “optimized" using data

Policy iteration/self-learning, repeated policy changesMultiple policies are sequentially generated; each is used to provide the data to trainthe next

Bertsekas Reinforcement Learning 8 / 22

Page 8: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Aims and References of this Course

Purpose of this courseTo explore the state of the art of approximate DP/RL at a graduate level

To explore in some depth some special research topics (rollout, approximatepolicy iteration)

To provide the opportunity for you to explore research in the area

Main references:Bertsekas, Reinforcement Learning and Optimal Control, Athena Scientific, 2019

Bertsekas: Class notes based on the above, and focused on our special RLtopics. Slides and videolectures from the 2019 ASU offering, and “Ten Key Ideas..." overview lecture; check my web site

Selected papers on AlphaGo, AlphaZero, and others

Supplementary referencesExact DP: Bertsekas, Dynamic Programming and Optimal Control, Vol. I (2017),Vol. II (2012) (also contains approximate DP material)

Bertsekas and Tsitsiklis, Neuro-Dynamic Programming, 1996

Sutton and Barto, 1998, Reinforcement Learning (new edition 2018, on-line)Bertsekas Reinforcement Learning 10 / 22

Page 9: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Terminology in RL/AI and DP/Control

RL uses Max/Value, DP uses Min/CostReward of a stage = (Opposite of) Cost of a stage.

State value = (Opposite of) State cost.

Value (or state-value) function = (Opposite of) Cost function.

Controlled system terminologyAgent = Decision maker or controller.

Action = Decision or control.

Environment = Dynamic system.

Methods terminologyLearning = Solving a DP-related problem using simulation.

Self-learning (or self-play in the context of games) = Solving a DP problem usingsimulation-based policy iteration.

Planning vs Learning distinction = Solving a DP problem with model-based vsmodel-free simulation.

Bertsekas Reinforcement Learning 11 / 22

Page 10: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Finite Horizon Deterministic Problem

......

Permanent trajectory P k Tentative trajectory T k

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Stage k Future Stges

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Stage k Future Stages

Control uk Cost gk(xk, uk) xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Stage k Future Stages

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Systemxk+1 = fk (xk , uk ), k = 0, 1, . . . ,N − 1

where xk : State, uk : Control chosen from some set Uk (xk )

Cost function:

gN(xN) +N−1∑k=0

gk (xk , uk )

For given initial state x0, minimize over control sequences {u0, . . . , uN−1}

J(x0; u0, . . . , uN−1) = gN(xN) +N−1∑k=0

gk (xk , uk )

Optimal cost function J∗(x0) = min uk∈Uk (xk )k=0,...,N−1

J(x0; u0, . . . , uN−1)

Bertsekas Reinforcement Learning 13 / 22

Page 11: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Principle of Optimality: A Very Simple Idea

Permanent trajectory P k Tentative trajectory T k

Tail subproblem Time x⇤k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN (xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x0N

uk uk xk+1 xk+1 xN xN x0N

�r = ⇧�T

(�)µ (�r)

�⇧(Jµ) µ(i) 2 arg minu2U(i) Qµ(i, u, r)

Subspace M = {�r | r 2 <m} Based on Jµ(i, r) Jµk

minu2U(i)

Pnj=1 pij(u)

�g(i, u, j) + J(j)

�Computation of J :

Good approximation Poor Approximation �(⇠) = ln(1 + e⇠)

max{0, ⇠} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N �1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN�1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

�F (i)

R1 R2 R3 R` Rq�1 Rq r⇤q�1 r⇤3 Cost Jµ

�F (i)

I1 I2 I3 I` Iq�1 Iq r⇤2 r⇤3 Cost Jµ

�F (i)

Aggregate States Scoring Function V (i) J⇤(i) 0 n n� 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Tail subproblem Time x⇤k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN (xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x0N

uk uk xk+1 xk+1 xN xN x0N

�r = ⇧�T

(�)µ (�r)

�⇧(Jµ) µ(i) 2 arg minu2U(i) Qµ(i, u, r)

Subspace M = {�r | r 2 <m} Based on Jµ(i, r) Jµk

minu2U(i)

Pnj=1 pij(u)

�g(i, u, j) + J(j)

�Computation of J :

Good approximation Poor Approximation �(⇠) = ln(1 + e⇠)

max{0, ⇠} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N �1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN�1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

�F (i)

R1 R2 R3 R` Rq�1 Rq r⇤q�1 r⇤3 Cost Jµ

�F (i)

I1 I2 I3 I` Iq�1 Iq r⇤2 r⇤3 Cost Jµ

�F (i)

Aggregate States Scoring Function V (i) J⇤(i) 0 n n� 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Tail subproblem Time x⇤k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN (xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x0N

uk uk xk+1 xk+1 xN xN x0N

�r = ⇧�T

(�)µ (�r)

�⇧(Jµ) µ(i) 2 arg minu2U(i) Qµ(i, u, r)

Subspace M = {�r | r 2 <m} Based on Jµ(i, r) Jµk

minu2U(i)

Pnj=1 pij(u)

�g(i, u, j) + J(j)

�Computation of J :

Good approximation Poor Approximation �(⇠) = ln(1 + e⇠)

max{0, ⇠} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N �1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN�1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

�F (i)

R1 R2 R3 R` Rq�1 Rq r⇤q�1 r⇤3 Cost Jµ

�F (i)

I1 I2 I3 I` Iq�1 Iq r⇤2 r⇤3 Cost Jµ

�F (i)

Aggregate States Scoring Function V (i) J⇤(i) 0 n n� 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Tail subproblem Time x⇤k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN (xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x0N

uk uk xk+1 xk+1 xN xN x0N

�r = ⇧�T

(�)µ (�r)

�⇧(Jµ) µ(i) 2 arg minu2U(i) Qµ(i, u, r)

Subspace M = {�r | r 2 <m} Based on Jµ(i, r) Jµk

minu2U(i)

Pnj=1 pij(u)

�g(i, u, j) + J(j)

�Computation of J :

Good approximation Poor Approximation �(⇠) = ln(1 + e⇠)

max{0, ⇠} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N �1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN�1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

�F (i)

R1 R2 R3 R` Rq�1 Rq r⇤q�1 r⇤3 Cost Jµ

�F (i)

I1 I2 I3 I` Iq�1 Iq r⇤2 r⇤3 Cost Jµ

�F (i)

Aggregate States Scoring Function V (i) J⇤(i) 0 n n� 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

Aggregate Problem Approximation TD(0) Approximation V1(i) andV0(i)

1

Permanent trajectory P k Tentative trajectory T k

Optimal control sequence {u⇤0, . . . , u⇤

k, . . . , u⇤N�1}

Tail subproblem Time x⇤k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN (xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x0N

uk uk xk+1 xk+1 xN xN x0N

�r = ⇧�T

(�)µ (�r)

�⇧(Jµ) µ(i) 2 arg minu2U(i) Qµ(i, u, r)

Subspace M = {�r | r 2 <m} Based on Jµ(i, r) Jµk

minu2U(i)

Pnj=1 pij(u)

�g(i, u, j) + J(j)

�Computation of J :

Good approximation Poor Approximation �(⇠) = ln(1 + e⇠)

max{0, ⇠} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N �1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN�1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

�F (i)

R1 R2 R3 R` Rq�1 Rq r⇤q�1 r⇤3 Cost Jµ

�F (i)

I1 I2 I3 I` Iq�1 Iq r⇤2 r⇤3 Cost Jµ

�F (i)

Aggregate States Scoring Function V (i) J⇤(i) 0 n n� 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

1

Permanent trajectory P k Tentative trajectory T k

Optimal control sequence {u∗0, . . . , u∗

k, . . . , u∗N−1}

Tail subproblem Time x∗kFuture Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN(xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

1

Permanent trajectory P k Tentative trajectory T k

Optimal control sequence {u∗0, . . . , u∗

k, . . . , u∗N−1}

Tail subproblem Time x∗k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN(xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

1

Permanent trajectory P k Tentative trajectory T k

Optimal control sequence {u∗0, . . . , u∗

k, . . . , u∗N−1}

Tail subproblem Time x∗k Future Stages Terminal Cost k N

Stage k Future Stages Terminal Cost gN(xN )

Control uk Cost gk(xk, uk) x0 xk xk+1 xN xN x′N

uk uk xk+1 xk+1 xN xN x′N

Φr = Π!T

(λ)µ (Φr)

"Π(Jµ) µ(i) ∈ arg minu∈U(i) Qµ(i, u, r)

Subspace M = {Φr | r ∈ ℜm} Based on Jµ(i, r) Jµk

minu∈U(i)

#nj=1 pij(u)

!g(i, u, j) + J(j)

"Computation of J :

Good approximation Poor Approximation σ(ξ) = ln(1 + eξ)

max{0, ξ} J(x)

Cost 0 Cost g(i, u, j) Monte Carlo tree search First Step “Future”Feature Extraction

Node Subset S1 SN Aggr. States Stage 1 Stage 2 Stage 3 Stage N −1

Candidate (m+2)-Solutions (u1, . . . , um, um+1, um+2) (m+2)-Solution

Set of States (u1) Set of States (u1, u2) Set of States (u1, u2, u3)

Run the Heuristics From Each Candidate (m+2)-Solution (u1, . . . , um, um+1)

Set of States (u1) Set of States (u1, u2) Neural Network

Set of States u = (u1, . . . , uN ) Current m-Solution (u1, . . . , um)

Cost G(u) Heuristic N -Solutions u = (u1, . . . , uN−1)

Candidate (m + 1)-Solutions (u1, . . . , um, um+1)

Cost G(u) Heuristic N -Solutions

Piecewise Constant Aggregate Problem Approximation

Artificial Start State End State

Piecewise Constant Aggregate Problem Approximation

Feature Vector F (i) Aggregate Cost Approximation Cost Jµ

!F (i)

"

R1 R2 R3 Rℓ Rq−1 Rq r∗q−1 r∗

3 Cost Jµ

!F (i)

"

I1 I2 I3 Iℓ Iq−1 Iq r∗2 r∗

3 Cost Jµ

!F (i)

"

Aggregate States Scoring Function V (i) J∗(i) 0 n n − 1 State i Cost

function Jµ(i)I1 ... Iq I2 g(i, u, j)...

TD(1) Approximation TD(0) Approximation V1(i) and V0(i)

1

Principle of OptimalityLet {u∗0 , . . . , u∗N−1} be an optimal control sequence with corresponding state sequence{x∗1 , . . . , x∗N}. Consider the tail subproblem that starts at x∗k at time k and minimizesover {uk , . . . , uN−1} the “cost-to-go” from k to N,

gk (x∗k , uk ) +N−1∑

m=k+1

gm(xm, um) + gN(xN).

Then the tail optimal control sequence {u∗k , . . . , u∗N−1} is optimal for the tail subproblem.

THE TAIL OF AN OPTIMAL SEQUENCE IS OPTIMAL FOR THE TAIL SUBPROBLEM

Bertsekas Reinforcement Learning 14 / 22

Page 12: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

DP Algorithm: Solves All Tail Subproblems Using the Principle ofOptimality

Idea of the DP algorithmSolve all the tail subproblems of a given time length using the solution of all the tailsubproblems of shorter time length

By the principle of optimality: To solve the tail subproblem that starts at xk

Consider every possible uk and solve the tail subproblem that starts at next statexk+1 = fk (xk , uk ). This gives the “cost of uk "

Optimize over all possible uk

DP Algorithm: Produces the optimal costs J∗k (xk ) of the xk -tail subproblems

Start withJ∗N(xN) = gN(xN), for all xN ,

and for k = 0, . . . ,N − 1, let

J∗k (xk ) = minuk∈Uk (xk )

[gk (xk , uk ) + J∗k+1

(fk (xk , uk )

)], for all xk .

The optimal cost J∗(x0) is obtained at the last step: J0(x0) = J∗(x0).

Bertsekas Reinforcement Learning 15 / 22

Page 13: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Construction of Optimal Control Sequence {u∗0, . . . ,u

∗N−1}

Start withu∗0 ∈ arg min

u0∈U0(x0)

[g0(x0, u0) + J∗1

(f0(x0, u0)

)],

andx∗1 = f0(x0, u∗0 ).

Sequentially, going forward, for k = 1, 2, . . . ,N − 1, set

u∗k ∈ arg minuk∈Uk (x∗k )

[gk (x∗k , uk ) + J∗k+1

(fk (x∗k , uk )

)], x∗k+1 = fk (x∗k , u

∗k ).

Approximation in Value Space - Use Some Jk in Place of J∗k

Start withu0 ∈ arg min

u0∈U0(x0)

[g0(x0, u0) + J1

(f0(x0, u0)

)],

and setx1 = f0(x0, u0).

Sequentially, going forward, for k = 1, 2, . . . ,N − 1, set

uk ∈ arg minuk∈Uk (xk )

[gk (xk , uk ) + Jk+1

(fk (xk , uk )

)], xk+1 = fk (xk , uk ).

Bertsekas Reinforcement Learning 16 / 22

Page 14: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Extensions

Stochastic finite horizon problemsThe next state xk+1 is also affected by a random parameter (in addition to xk and uk )

Infinite horizon problemsThe exact DP theory is mathematically more complex

Stochastic partial state information problemsVery hard to solve even approximately ... but offer great promise for applications

Minimax/game problemsThe exact DP theory is substantially more complex ... but the most spectacularsuccesses of RL involve games

Bertsekas Reinforcement Learning 17 / 22

Page 15: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Course Aims and Requirements

Our principal aim:To get you to think about research in RL, and about how RL may apply to your currentresearch interests

Requirements:Pass-Fail

Homework (50%): A total of 2-3

Research-oriented term paper (50%). A choice of:I A mini-research project. You may work in teams of 1-3 persons. You are strongly

encouraged to at least try. Selected projects will be presented to the class at the end ofthe term. I am available to help.

I A read-and-report term paper based on 2-3 research publications (chosen by you inconsultation with me)

Our TA: Shushmita Bhattacharya, [email protected] hours: Tuesdays or Thursdays 4-5pm, or by appointment

Bertsekas Reinforcement Learning 19 / 22

Page 16: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

Syllabus (Approximate)

Lecture 1 (this lecture): Introduction, finite horizon deterministic exact DP

Lecture 2: Stochastic exact DP, examples of problem formulation

Lecture 3: Approximation in value space, introduction to rollout (start from a policy,get a better policy)

Lecture 4: Rollout, Monte Carlo tree search, model predictive control

Lecture 5: Rollout with an expert, multiagent rollout, constrained rollout

Lecture 6: Applications of rollout in large-scale discrete optimization and otherareas

Lecture 7: Parametric approximation architectures, feature-based architectures,(deep) neural nets, training with incremental/stochastic gradient methods

Lecture 8: Value and policy networks; use in approximate DP; perpetual rollout

Lecture 9: AlphaGo and AlphaZero

Lecture 10: Infinite horizon and policy iteration

Lecture 11: Distributed asynchronous policy iteration

Lecture 12: Partitioned architectures and distributed asynchronous policy iteration

Lecture 13: Project presentations

Bertsekas Reinforcement Learning 20 / 22

Page 17: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

About Machine Learning and Math

Math requirements for this course are modestCalculus, elementary probability, minimal use of vector-matrix algebra. Our objective isto use math to the extent needed to develop insight into the mechanism of variousmethods, and to be able to start research.

However a math framework is critically importantHuman insight can only develop within some structure of human thought ... mathreasoning is most suitable for this purpose

On machine learning (from NY Times Article, Dec. 2018)“What is frustrating about machine learning is that the algorithms can’t articulate whatthey’re thinking. We don’t know why they work, so we don’t know if they can be trusted... As human beings, we want more than answers. We want insight. This is going to bea source of tension in our interactions with computers from now on."

Bertsekas Reinforcement Learning 21 / 22

Page 18: Topics in Reinforcement Learning:Rollout and Approximate ...web.mit.edu/dimitrib/www/RLTopics_Lecture1.pdf · Outline 1 Introduction, History, General Concepts 2 About this Course

About the Next Lecture

We will cover:Stochastic DP algorithm

DP algorithm for Q-factors

Examples of discrete deterministic DP problems

Partial information problems

PLEASE READ AS MUCH OF CHAPTER 1 OF CLASS NOTES AS YOU CAN

MAKE SURE YOUR NAME/EMAIL IS LISTED IN THE APPROPRIATE SIGNUP SHEET

Bertsekas Reinforcement Learning 22 / 22