← All 44 Terms
2. Reinforcement Learning (RL)
Read in Ch. 5: LLM Post-Training (RLHF, RLVR & GRPO) →
GRPO (Group Relative Policy Optimization)
In One Sentence
A critic-free PPO variant that samples a group of rollouts for the same prompt and reinforces those scoring above the group average.
ELI5 (Intuition)
Have the AI try the same coding problem 8 different ways, grade all 8 against each other, and tell it: 'do more like the top 3, and less like the bottom 3.'
ELI18 (Technical)
Drops the expensive value network (Critic) by sampling \(G\) outputs \(\{o_1, \dots, o_G\}\) per prompt, computing group-normalized advantages \[A_i = \frac{R_i - \mu_R}{\sigma_R + \varepsilon},\] and applying a PPO-clipped update with a KL penalty to a reference model.
In Practice
Popularized by DeepSeek-R1 for training reasoning and coding LLMs with automated verifiers, cutting RL GPU memory nearly in half compared to PPO.