KL penalty
×Zero where the policy agrees with the reference on the output.
- shape
- [B batch, G]
Sources
Contextual evidence from KL to the reference
§2.2.1, Reinforcement Learning Algorithm: GRPO foregoes the critic model and estimates the baseline from group scores. For each question a group of outputs is sampled from the old policy; the objective is the clipped ratio times the advantage, less β times a KL term to π_ref, averaged over the group (eq. 1, 2); the advantage is the reward less the group’s mean, over its standard deviation (eq. 3). ε and β are hyper-parameters the paper does not give for this model.
DeepSeek-R1-2501.12948v1.pdf p. 5 ↗ · arXiv 2501.12948 @ v1
§5.2.2, Group Relative Policy Optimization: the same objective, eq. 26 to 28, written per sequence; “π_ref is the reference model”.
DeepSeek-V3-technical-report-2412.19437v2.pdf p. 30 ↗ · arXiv 2412.19437 @ v2