> ## Documentation Index
> Fetch the complete documentation index at: https://aegean.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Grouped Relative Policy Optimization

> GRPO removes the value critic of PPO by sampling G outputs per prompt and computing advantages from group-normalized rewards, reducing memory and compute while retaining stable policy updates.

<img src="https://mintcdn.com/aegeanaiinc/WNDPFdbxFiDHVImn/aiml-common/lectures/reinforcement-learning/policy-based-algorithms/GRPO/images/grpo-loop.svg?fit=max&auto=format&n=WNDPFdbxFiDHVImn&q=85&s=fd9e1de2eee35a4217e35d76a3226906" alt="GRPO training loop: query q enters the Policy Model, which samples G outputs o_1 to o_G; a frozen Reward Model scores each output into r_1 to r_G; Group Computation normalizes the scores into advantages A_1 to A_G; a frozen Reference Model provides a per-token KL penalty fed back to the Policy Model" width="740" height="210" data-path="aiml-common/lectures/reinforcement-learning/policy-based-algorithms/GRPO/images/grpo-loop.svg" />

*Editable Mermaid source: [`images/grpo-loop.mermaid.md`](images/grpo-loop.mermaid.md)*

<iframe width="100%" height="480" src="https://www.youtube.com/embed/xT4jxQUl0X8?start=188" title="Grouped Relative Policy Optimization talk" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit this page on GitHub](https://github.com/aegean-ai/eaia/edit/main/src/aiml-common/lectures/reinforcement-learning/policy-based-algorithms/GRPO/index.mdx) or [file an issue](https://github.com/aegean-ai/eaia/issues/new/choose).
</Callout>
