GRPO and other reinforcement learning
Supervised methods learn from a labeled answer. Reinforcement learning learns from a reward on a whole reply: right or wrong, formatted or not, passing a test or not. The model writes several rollouts, a scorer assigns each one a reward, and the weights (or, in Deletion Tuning, the mask logits) take a step that makes high-reward replies more likely.
GRPO is one of the recipes for doing that with language models. I am not going to walk through its update equation here, because I have not implemented it, and a half-remembered formula would not help you.
flowchart LR
P[Prompt] --> R[Several rollouts]
R --> V[Reward]
V --> S[Parameter step]
S --> P
Lu et al. trained deletion masks with GRPO as one of their three regimes, next to SFT and SDFT. Their forgetting comparison (prior-task accuracy staying near the base, versus losses of up to 5.4 points for full fine-tuning, LoRA, and random sparse fine-tuning) comes from that RL setting. I am citing it as theirs. Our 9B and 27B ToolAlpaca masks were trained with SFT, not GRPO.
This method sits in the high-cost corner of the map: you pay for many generations, not only for one forward and backward pass per batch.
Previous: SDFT. Next: Quantization-aware tuning.
Tags: Model tuning Fine-tuning