What is Group Relative Policy Optimization (GRPO)?
mainGRPO is a reinforcement learning algorithm that simplifies the training process by eliminating the need for a separate 'critic' (value function) model. Instead of estimating values with a critic, it uses group-based sampling to establish a baseline.
How it works:
- Group Sampling: For each prompt, the model generates a group of multiple possible solutions.
- Reward Assignment: Each solution is scored based on quality or correctness.
- Baseline Calculation: The average reward of the group is used as the baseline.
- Policy Update: The model compares each solution's reward to the group average, reinforcing better-than-average solutions and discouraging worse-than-average ones.
This approach reduces computational overhead by avoiding the training of a separate value estimation model.