Markov decision process (MDP)

A Markov decision process is the mathematical model of step-by-step decision-making behind reinforcement learning: states, actions, transition probabilities and rewards, where what happens next depends only on the current state and action.

A Markov decision process describes an agent acting in a world over time. It has a set of states the world can be in, a set of actions the agent can take, transition probabilities giving the chance that an action in one state leads to another, and rewards for each transition. The agent follows a policy, a rule for choosing actions, and the goal is to find the policy that earns the most reward over time. Future rewards are usually discounted, on the principle that cash now is worth more than cash later.

The word Markov refers to one key assumption: the next state depends only on the current state and the action taken, not on the history of how the agent got there. That makes the maths tractable, since the best action depends only on where you are now. Think of a delivery robot in a warehouse: its state is its position and load, its actions are moves and pick-ups, the floor sometimes makes it slip, and it earns reward for delivered parcels.

The framework grew out of operations research in the 1950s and is named after the mathematician Andrey Markov's work on chains of random events. Richard Bellman developed value iteration in 1957, and in 1960 Ronald Howard introduced policy iteration while optimising the mailing of Sears catalogues. When the transition probabilities and rewards are known, these dynamic programming methods can compute the best policy directly. When they are not, reinforcement learning learns a good policy by trial and error. When the agent cannot see the full state, the problem becomes a partially observable Markov decision process.

The vocabulary now runs through the training of language models. The 2022 InstructGPT paper, which applied reinforcement learning from human feedback to instruction following, framed its training as a bandit environment, the one-step special case of an MDP: the environment presents a prompt, the model's response is the action, a reward model scores it and the episode ends. Training agents that call tools and act over many steps brings back the full sequential problem, where early choices shape later rewards.

Common questions

What is a Markov decision process in simple terms?

It is a model of repeated decision-making: an agent sees the current situation, chooses an action, moves to a new situation with some probability, and receives a reward. The aim is to find a rule for choosing actions that collects the most reward over time.

What is the Markov property?

It is the assumption that what happens next depends only on the present state and action, not on the past. In other words, the current state contains everything relevant for predicting the future, which makes planning and learning much simpler.

How are Markov decision processes related to reinforcement learning?

Reinforcement learning problems are usually formalised as MDPs. When the transition probabilities and rewards are known, an MDP can be solved with planning methods such as value iteration. Reinforcement learning handles the case where they are unknown and must be learned from experience.

What is a POMDP?

A partially observable Markov decision process is an MDP in which the agent cannot see the true state directly and must act on incomplete observations. Robots with noisy sensors and agents working from limited information are common examples.

Finding more

Search for "Markov decision process explained", "Bellman equation" or "reinforcement learning MDP" to go further. Reliable sources include Sutton and Barto's reinforcement learning textbook, educational material such as OpenAI's Spinning Up, university course notes and the original papers on arXiv. Treat diagrams in popular articles with care, since they often skip the transition probabilities that make an MDP more than a flowchart.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.