AI engineering glossary · LLM training alignment

What is policy (reinforcement learning)?

Policy (reinforcement learning): The rule an agent uses to choose actions given a state. In language-model reinforcement learning, the policy is the model itself: the state is the prompt plus text generated so far, and the action is the next token, sampled from the model's probability distribution.

Level: intermediateTopic: LLM training alignment

Policy (reinforcement learning): an example

When a chat model is trained with RLHF, the model being updated is called the policy, while a frozen copy is the reference model.

Related terms

More LLM training alignment terms

Where you learn it

Policy (reinforcement learning) is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.