RePO: Replay-Enhanced Policy Optimization

Siheng Li, Zhanhui Zhou, Wai Lam, Chao Yang, Chaochao Lu
6/11/2025
cs.CLcs.AIcs.LG

Official code: SihengLi99/RePO (24 stars, last commit 2025-06-12).

Abstract

Reinforcement learning (RL) is vital for optimizing large language models (LLMs). Recent Group Relative Policy Optimization (GRPO) estimates advantages using multiple on-policy outputs per prompt, leading to high computational costs and low data efficiency. To address this, we introduce Replay-Enhanced Policy Optimization (RePO), which leverages diverse replay strategies to retrieve off-policy samples from a replay buffer, allowing policy optimization based on a broader and more diverse set of samples for each prompt. Experiments on five LLMs across seven mathematical reasoning benchmarks demonstrate that RePO achieves absolute average performance gains of $18.4$ and $4.1$ points for Qwen2.5-Math-1.5B and Qwen3-1.7B, respectively, compared to GRPO. Further analysis indicates that RePO increases computational cost by $15\%$ while raising the number of effective optimization steps by $48\%$ for Qwen3-1.7B, with both on-policy and off-policy sample numbers set to $8$. The repository can be accessed at https://github.com/SihengLi99/RePO.

View on arXivView PDF

Code Implementations(1)

SihengLi99/RePOOfficial100%

RePO: Replay-Enhanced Policy Optimization

241Shell, PythonJun 6, 20251 years ago

Similar Papers

Cite this paper

@article{li2025repo,
  title  = {RePO: Replay-Enhanced Policy Optimization},
  author = {Siheng Li and Zhanhui Zhou and Wai Lam and Chao Yang and Chaochao Lu},
  year   = {2025},
  eprint = {2506.09340},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.09340v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.09340.svg)](https://codeofpaper.com/paper/2506.09340)

Discussion