Series · 5 parts
Policy Optimization for LLMs: From Fundamentals to Production
From the mathematical foundations of reinforcement learning to the algorithms used to align large language models: why each method exists, what problem it addresses, and how the field moved from PPO to GRPO to GDPO — then a map of the GRPO variants.
All five articles are published. Read in order, or use the prerequisites below to enter midway.
Prerequisites: probability, calculus, and transformer fundamentals. Related code: Learning with Verifiable Rewards — model and training foundations complete; the study is paused before its SFT run, with GRPO and ablations planned.
-
Part 1: Reinforcement Learning Foundations for LLM Alignment
MDPs, policy gradients, value functions, and actor-critic methods: the building blocks that LLM alignment methods rely on.
-
Part 2: PPO for Language Models: The RLHF Workhorse
The clipped objective, trust regions, and why PPO's four-model architecture creates problems at scale.
-
Part 3: GRPO: Eliminating the Value Network
Replace the value network with group-relative advantages: about 44% less model memory than PPO, with competitive performance.
-
Part 4: GDPO: Multi-Reward RL Done Right
When multiple rewards collapse advantages, GDPO normalizes each independently for stable multi-objective optimization.
-
Part 5: After GDPO: A Map of the GRPO Family
GRPO did not fragment into a zoo; it exposed a handful of design axes. Dr. GRPO, DAPO, GSPO, and GDPO mapped onto them, with a guide to choosing between them.