(Non-)Interruptibility of Sarsa(λ) and Q-Learning
post by rmoehn · 2016-11-16T04:22:06.000Z · LW · GW · 5 commentsThis is a link post for https://nbviewer.jupyter.org/github/rmoehn/cartpole/blob/master/notebooks/ProcessedOSCP.ipynb
Contents
5 comments
5 comments
Comments sorted by top scores.
comment by rmoehn · 2017-03-09T01:34:51.000Z · LW(p) · GW(p)
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 · LW(p) · GW(p)
Some new results here: Questions on the (Non-)Interruptibility of Sarsa(λ) and Q-learning.
comment by rmoehn · 2017-01-25T09:01:05.000Z · LW(p) · GW(p)
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:
- Somewhere in ≤ 1.0. – Time steps are being counted.
- Crosses 1.0. Noodles around beyond 1.0. – Time steps not counted.
- Crosses back into ≤ 1.0. – Time steps counted again.
Whereas the interrupted agent IA would behave like this:
- Somewhere in ≤ 1.0. – Time steps are being counted.
- 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 orthonormal · 2016-11-28T22:24:58.000Z · LW(p) · GW(p)
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.)