State

The Current Situation

The state is the complete description of the environment at a given time step. It is the information the agent uses to decide what action to take. The completeness and quality of the state representation determines what the agent can learn.

The Markov Property

The future depends only on the present

A Markov state contains all information needed to predict future outcomes — the past doesn't matter beyond what's in the current state. This property simplifies learning enormously: the agent only needs to learn a policy over current states, not over entire histories. Environments built on Markov states are called Markov Decision Processes (MDPs).

State Representations by Environment

1

Atari games — Pixel values of the screen, stacked over the last 4 frames to capture motion. High-dimensional (84×84×4 grayscale = ~28,000 numbers).

2

Robotic control — Joint angles, velocities, end-effector position, contact forces. Continuous-valued vectors, lower dimension than pixels.

3

Language model RL (RLHF) — The sequence of tokens generated so far. The state is the conversation or generation history.

4

Partial observation — When the agent sees only part of the state, it may stack recent observations or use an LSTM/transformer to infer the hidden state from history.

Need Help?

Ask the AI assistant about RL states, the Markov property, state vs observation, or how neural networks handle large state spaces.