In reinforcement learning, the state is a summary of the environment at time that contains everything needed to predict what happens next. When the agent cannot see the full state and receives only an observation, the problem becomes a partially observable MDP (POMDP).
The Markov property
A state signal is Markov if the future is independent of the past given the present:
In words, once you know and the action , the earlier history adds nothing. The full history is always Markov, so the question in practice is whether a compact representation is.
State vs observation
A single video frame of a ball game is an observation, not a Markov state: it shows where the ball is but not where it is going. A common fix is to stack the last few frames so velocity can be inferred. Recurrent networks and transformers do the same job more generally, by compressing the observation history into an internal state. For a language model generating text, the natural state is the prompt plus all tokens generated so far, which is Markov by construction.
POMDPs and belief states
A POMDP adds an observation function . The agent can track a belief, a probability distribution over hidden states, updated by Bayes' rule after each action and observation :
The belief is itself a Markov state, so a POMDP can be turned into an MDP over beliefs, at the price of a continuous state space.
Worked example
A tiger is behind the left or right door with equal probability, and listening reports the correct side 85% of the time. After hearing "left" once, the belief in left is . After hearing "left" twice it is . The agent's best action depends on this number, not on any single observation.
Why it matters
Every guarantee for value functions and the Bellman equation assumes the state is Markov. When it is not, value estimates are biased, and a policy can look good in training while relying on information it will not have at deployment. Choosing what goes into the state, and checking that it is sufficient, is often the most consequential design decision in an RL system.
Related terms
Sources
- Richard S. Sutton, Andrew G. Barto. Reinforcement Learning: An Introduction (2nd edition), 2018. incompleteideas.net
- Leslie Pack Kaelbling, Michael L. Littman, Anthony R. Cassandra. Planning and acting in partially observable stochastic domains, 1998. doi.org