Glossary · Reinforcement learning
Markov decision process
Also called MDP, discount factor, return
The maths framework behind reinforcement learning: states, actions, rewards, and rules for how one state leads to the next.
A Markov decision process (MDP) is the formal description of a problem that reinforcement learning solves. It has five parts:
| symbol | meaning |
|---|---|
| the set of states, such as every possible pose and velocity of the body | |
| the set of actions, such as every possible set of motor targets | |
| the chance of reaching state after taking action in state | |
| the reward for taking action in state | |
| the discount factor, between 0 and 1 |
The Markov property
“Markov” means the next state depends only on the current state and action, not on how you got there. The present contains everything you need to know. In a physics simulation this is true if the state includes positions and velocities: knowing where the body is and how fast each part is moving is enough to predict the next moment.
In practice the agent often sees only part of the state, through its observation. That is why the observation in this project includes the previous actions and the filter state: without them, the agent couldn’t tell what its own action filter was about to do.
Return and the discount factor
The return is the total reward from a time step onward, with each later reward multiplied by one more factor of :
The discount factor sets how far ahead the agent cares. A reward steps away is worth of a reward now, so the agent’s horizon is roughly steps. With that is 100 steps. At 50 decisions a second, that is about 2 seconds, which is long enough to link a shove to the fall it causes.
In this project
We use . The same number appears in the reward shaping term , because potential-based shaping must use the same discount as the MDP to leave the best policy unchanged.