Cs234 lecture 1 reinforcement learning (intro)

1.1 Intro: Reinforcement Learning

Uses: Robotics, games, healthcare, and also used as optimization technique for difficult problems

Core concepts in RL are: Optimization, Delayed Consequences, Exploration, Generalization.

A related problem, planning (inference time RL) requires: Optimization, Delayed Consequences, Generalization. Game Play is usually Planning (Go, Chess, etc)

In RL (vs the Planning Problem), the agent doesn’t know how the world works, so it must also interact with the world to implicitly/explicitly learn how the world works.

Imitation Learning: Optimization, Generalization, Delayed Consequences, but learning from an expert or experience of others. This reduces RL to supervised learning. Example: Andrew Ng flying a helicopter.

**1.2 Key RL Problems: **

Evaluation

Control:

1.3 **Markov Decision Processes**

We generally model an RL agent as a Markov desision process. We assume the Markov assumption: The future is independent of past given present. Note that most real-life systems are not Markov, but we often represent it as Markov.

Types of MDPs

** **

1.4 **Types of RL Agents**

Model-based

Model-free

Screenshot 2020-03-28 at 8.41.48 PM.png

Notes: Machine Teaching - interesting idea

Midterm Review

Topics:

Bellman Backup Operator:

Model Based Control:

Value iteration does not depend on initial starting point because it converges to a single fixed point. Value iteration and policy iteration will obtain the same value, but the policy they output may be different if multiple policies have the same value. The number of iterations for policu iteration on a tabular MDP with A actions and S states is bounded above by $ A ^{ S }$, becuase its guarenteed to be monotonically improving (so if you visit every policy once, you’re done).

Model-Based Policy Evaluation (Dynamic Programming):

Model-free Policy Evaluation:

Convergence Guarantees:

Challenges in DQN: Local updates (s,a,r,s’) are highly correlated, thus ‘target’ (aproximation to true value of s’) can change quickly and lead to instabilities. Fixes:

Policy Gradient (aka REINFORCE)

Examples:

Screenshot 2020-04-11 at 11.02.31 AM.png** **

1. 0.25,0.5, 0.75

2. 1 (B gets updated once and the future rewards recieved is 1)

3. (See below)

V(C) = 0 + a(1-0) = a

V(B) = 0 + a(0 + y * a - 0) = a^2

V(C) = a + a(0+ y * a^2 - a) = a + y * a^3 - a^2

Reversed

Only the last C gets updated to V(C) = a

Screenshot 2020-04-11 at 10.31.16 AM.png

Also Recall:

Screenshot 2020-04-11 at 10.58.40 AM.png