7
$\begingroup$

In reinforcement learning, the state-action value function seems to be used more than the state value function. Why is it so?

$\endgroup$
3
  • 2
    $\begingroup$ What do you mean by "more"? Btw, if I understand your question correctly, it is because in a non-deterministic setting, you won't know which action to select simply from the state values. $\endgroup$
    – Hai Nguyen
    Commented Feb 14, 2020 at 7:31
  • $\begingroup$ @HaiNguyen thanks. What happens in the case of deterministic setting $\endgroup$ Commented Feb 19, 2020 at 16:37
  • 1
    $\begingroup$ If you know what state you will end up after taking an action (for example if you walk in a maze you always know your next position after you take a step), you can use the value function of possible next states and pick the action that leads to the highest value. $\endgroup$
    – Hai Nguyen
    Commented Feb 20, 2020 at 11:51

1 Answer 1

7
$\begingroup$

We are ultimately interested in getting an optimal policy, that is the optimal sequence of actions to reach the final goal. State values on its own don't provide that, they tell you expected return from specific state onward but they don't tell you which action to take. In order to derive an optimal action in a specific state you would have to simulate all possible actions one step ahead and then pick the action that leads you to the state with highest state value. That is often inconvenient or impossible. State action values connect the expected return with actions, not states, so you don't need to simulate all actions one step ahead and see where you end up, you only need to pick an action that has the highest value because you know that is the best action to take in that state.

$\endgroup$
2
  • 2
    $\begingroup$ It may be also worth emphasizing that, if you're using a table, the state-action value function will be larger than the state value function, so it will require more memory to be stored. $\endgroup$
    – nbro
    Commented Feb 14, 2020 at 14:20
  • $\begingroup$ what did you mean by simulate all possible actions one step ahead? $\endgroup$
    – gfdsal
    Commented Apr 28, 2020 at 14:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .