Policy

In reinforcement learning, a policy $\pi(a \mid s)$ maps states to a distribution over actions. Learning improves expected return under that policy.

In LLM alignment

The policy is the language model: the state is the prompt (+ partial completion), and actions are next-token choices via sampling. RLHF optimizes this policy against a reward model, usually with a KL penalty toward a frozen reference (often the SFT model) so the policy does not drift into gibberish or reward hacking.

Preference methods like DPO update the same policy directly from preference pairs without an explicit online RL loop, but the object being aligned is still the generative policy.

← Back to AI Glossary