Reinforcement learning policy
In reinforcement learning, a policy is the rule or model that decides which action an agent takes in each situation; training an agent means improving its policy.
Reinforcement learning has a small cast. An agent acts in an environment; at each step it observes the situation, takes an action and receives a reward saying how well things are going. The policy is the part that chooses the action. A deterministic policy always picks the same action in the same situation; a stochastic one assigns probabilities and samples from them. The goal of reinforcement learning is to find the policy that collects the most reward over time. OpenAI's Spinning Up course notes that researchers often say policy where they mean agent, because the policy is in effect the agent's brain.
Modern policies are neural networks. They take an observation, such as a camera image, a game screen or a passage of text, and output either an action or a probability distribution over possible actions. Training adjusts the network's parameters so that actions which led to higher reward become more likely. Algorithms such as proximal policy optimization do exactly this, often alongside a second network, the value function, which estimates how good a situation is; the policy is the actor and the value function the critic.
In language model training the chatbot itself is the policy. The situation is the prompt and the text so far, the action is the next token, and the reward comes from a reward model or an automatic checker. That is why technical reports, such as Meta's Llama papers, refer to the model being trained as the policy, as distinct from the reward model that judges it.
Robotics uses the word in the same way. A robot policy turns sensor readings and instructions into motor commands. Physical Intelligence's π0 paper, first posted in October 2024, describes generalist robot policies, also called robot foundation models, and demonstrates one folding laundry, clearing tables and assembling boxes; it learned by imitating more than 10,000 hours of recorded robot demonstrations rather than through reinforcement learning. When a robotics company says it has trained a new policy, it means a new model controlling the robot.
It is the decision-maker: given what the agent can observe, the policy says what to do next. Reinforcement learning is the process of improving that policy so the agent earns more reward over time. In reinforcement learning a policy is a role, and today it is usually filled by a neural network model. The same language model can be called the policy during reinforcement learning, as opposed to the reward model that scores its outputs. A deterministic policy always chooses the same action in the same situation. A stochastic policy gives probabilities to several actions and samples one, which lets the agent explore during training. It is the model that controls a robot, turning camera images, sensor data and instructions into movements. Recent generalist robot policies are trained on data from many tasks so one model can handle jobs such as folding laundry or clearing a table.Common questions
What is a policy in reinforcement learning, in simple terms?
What is the difference between a policy and a model?
What is the difference between a deterministic and a stochastic policy?
What is a robot policy?
Search for "policy reinforcement learning", "policy gradient", "actor-critic" or "generalist robot policy" to see how the term is used in research and robotics. Introductory course material such as OpenAI's Spinning Up and university reinforcement learning courses explain the basics well, and robotics papers on arXiv describe how specific robot policies were trained. Company announcements about new robot policies often omit how much of a demonstration was teleoperated or rehearsed, so look for the accompanying paper or evaluation details.Finding more
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.