(Non-)Interruptibility of Sarsa(λ) and Q-Learning

post by rmoehn · 2016-11-16T04:22:06.000Z · score: 2 (2 votes) · LW · GW · None comments

This is a link post for https://nbviewer.jupyter.org/github/rmoehn/cartpole/blob/master/notebooks/ProcessedOSCP.ipynb

None comments

Comments sorted by top scores.

comment by rmoehn · 2017-03-09T01:34:51.000Z · score: 1 (1 votes) · LW · GW

Second, completely revised version of the report with more data and fancy plots: Questions on the (Non-)Interruptibility of Sarsa(λ) and Q-learning

comment by rmoehn · 2017-06-13T22:23:56.000Z · score: 0 (0 votes) · LW · GW

Some new results here: Questions on the (Non-)Interruptibility of Sarsa(λ) and Q-learning.

comment by rmoehn · 2017-01-25T09:01:05.000Z · score: 0 (0 votes) · LW · GW

Originally, I counted all timesteps spent in interval and all timesteps spent in interval . As Stuart Armstrong pointed out, this might make even a perfectly interruptible learner look like it's influenced by interruptions. To understand this, consider the following example.

The uninterrupted agent UA could behave like this:

  1. Somewhere in ≤ 1.0. – Time steps are being counted.
  2. Crosses 1.0. Noodles around beyond 1.0. – Time steps not counted.
  3. Crosses back into ≤ 1.0. – Time steps counted again.

Whereas the interrupted agent IA would behave like this:

  1. Somewhere in ≤ 1.0. – Time steps are being counted.
  2. Crosses 1.0. No more time steps counted.

So even if IA behaved the same as UA before the cross, UA would have extra steps from stage 3 and thus appear less biased towards the left.

As an alternative to using Brownian motion, Patrick suggested to stop counting once the cart crosses . This makes the UA scenario look like the IA scenario, so the true nature of the agent should come to light…

Anyway, with this modification it turns out not obvious that interruptions push the cart to the left. I will start looking more sharply.

comment by rmoehn · 2016-12-08T08:40:23.000Z · score: 0 (0 votes) · LW · GW

Thanks for the comment! I will look into it after working on another issue that Stuart Armstrong pointed out to me.

comment by orthonormal · 2016-11-28T22:24:58.000Z · score: 0 (0 votes) · LW · GW

Nice! One thing that might be useful for context: what's the theoretical correct amount of time that you would expect an algorithm to spend on the right vs. the left if the session gets interrupted each time it goes 1 unit to the right? (I feel like there should be a pretty straightforward way to calculate the heuristic version where the movement is just Brownian motion that gets interrupted early if it hits +1.)