3
$\begingroup$

I am still new to Deep-RL. I was reading DeepMind's paper "Playing Atari with Deep Reinforcement learning" and am having trouble understanding how these games can be represented as a finite markov decision process. Don't these games technically have an infinite number of possible states and possible actions?

The paper explains that:

Since the agent only observes images of the current screen, the task is partially observed and many emulator states are perceptually aliased, i.e. it is impossible to fully understand the current situation from only the current screen xt. We therefore consider sequences of actions and observations, st = x1,a1,x2,...,at-1,xt, and learn game strategies that depend upon these sequences. All sequences in the emulator are assumed to terminate in a finite number of time-steps. This formalism gives rise to a large but finite Markov decision process (MDP) in which each sequence is a distinct state. As a result, we can apply standard reinforcement learning methods for MDPs, simply by using complete sequence st, as the state representation at time t.

I fail to see the correlation between the sequences terminating in a finite number of time-steps to the rise of finite MDP. Is it saying that the finite MDP, in this instance, is just an insanely large chain that has "info" on almost all the possible sequences? Therefore, it can make predictions on the best action for any given state that the emulator sees? If possible could you give me an example of games which are continuous state spaces and explain why? Thanks!

DeepMind Paper: Link

$\endgroup$

1 Answer 1

3
$\begingroup$

Suppose that a screen $x_t$ can be encoded as a vector of $P$ pixels and each pixel can take on $R$ possible values. Also assume $A$ possible actions.

(In Atari games the action space is discrete and finite -- our actions at each timestep are the buttons "UP/DOWN/LEFT/RIGHT/...".)

Then there are $PR \cdot A$ possible pairs $(x_t, a_t)$, and with an upper bound of $T$ timesteps, there are $PR + PR \cdot A \cdot (1 + 2 + \dots + T-1)$ possible sequences, ie states. So we have a finite number of states and a finite number of actions (and therefore a finite MDP).

Later in the paper the authors reduce the size of these inputs by using a feature-extracting function φ:

Since using histories of arbitrary length as inputs to a neural network can be difficult, our Q-function instead works on fixed length representation of histories produced by a function φ.

The Deep Q-learning network used in this paper predicts the Q-value of each action from the state features. So in other words, the neural net assigns a score to each action that the agent can take. After an exploration phase, the agent will always choose the action that has the highest predicted Q-value.

$\endgroup$
3
  • $\begingroup$ That definitely cleared some things up for me! I am still a little confused though. Is the upper bound condition on the timestamps the amount of time it takes to beat the game? Also, I've seen them mention $\varphi$ but never actually give a description of the function. Do you happen to have a resource I can take a look at on that? Thanks! $\endgroup$ Aug 28, 2018 at 0:48
  • $\begingroup$ Sometimes papers like these have appendices or open-source github repositories where they reveal experimental details like this, but it doesn't look like this paper does. $\endgroup$
    – twink_ml
    Aug 28, 2018 at 17:41
  • $\begingroup$ Here's another person's implementation of this paper, from which you can deduce a working T and φ. github.com/rohitgirdhar/Deep-Q-Networks $\endgroup$
    – twink_ml
    Aug 28, 2018 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.