arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.20673cs.CL
收藏

几何平均策略优化

Geometric-Mean Policy Optimization

UCAS(中国科学院大学);CUHK(香港中文大学);HKUST(香港科技大学);Microsoft Research(微软研究院)

Yuzhong Zhao, Yue Liu, Junpeng Liu, Jingye Chen, Xun Wu, Yaru Hao, Tengchao Lv, Shaohan Huang, Lei Cui, Qixiang Ye, Fang Wan, Furu Wei

AI总结:

针对 GRPO 受 token 奖励异常值影响导致策略更新不稳的问题,本文提出即插即用的 GMPO,用几何平均替代算术平均以稳定重要性采样比率,并在数学推理基准上最高提升 Pass@1 4.1%。

摘要:

Group Relative Policy Optimization(GRPO,组相对策略优化)通过优化 token 级奖励的算术平均,显著增强了大型语言模型的推理能力。然而,观察发现,当面对具有异常重要性加权奖励的 token 时,GRPO 会出现不稳定的策略更新,这些异常在训练期间表现为极端的重要性采样比率。在本研究中,我们提出 Geometric-Mean Policy Optimization(GMPO,几何平均策略优化),旨在通过抑制 token 奖励异常值来提高 GRPO 的稳定性。GMPO 不再优化算术平均,而是最大化 token 级奖励的几何平均;几何平均本质上对异常值更不敏感,并能维持更稳定的重要性采样比率范围。GMPO 是即插即用的:只需将 GRPO 的算术平均替换为 token 级奖励的几何平均,因为后者本质上对异常值更不敏感。GMPO 在理论上也是合理的:分析表明,GMPO 和 GRPO 都是策略梯度的加权形式,而前者具有更稳定的权重,从而有利于策略优化和性能。在多个数学推理基准上的实验表明,GMPO-7B 将 GRPO 的平均 Pass@1 最高提升了 4.1%,优于许多最先进方法。代码可在 https://github.com/callsys/GMPO 获取。

英文摘要:

Group Relative Policy Optimization (GRPO) has significantly enhanced the reasoning capability of large language models by optimizing the arithmetic mean of token-level rewards. Unfortunately, GRPO is observed to suffer from unstable policy updates when facing tokens with outlier importance-weighted rewards, which manifest as extreme importance sampling ratios during training. In this study, we propose Geometric-Mean Policy Optimization (GMPO), with the aim to improve the stability of GRPO through suppressing token reward outliers. Instead of optimizing the arithmetic mean, GMPO maximizes the geometric mean of token-level rewards, which is inherently less sensitive to outliers and maintains a more stable range of importance sampling ratio. GMPO is plug-and-play-simply replacing GRPO's arithmetic mean with the geometric mean of token-level rewards, as the latter is inherently less sensitive to outliers. GMPO is theoretically plausible-analysis reveals that both GMPO and GRPO are weighted forms of the policy gradient while the former enjoys more stable weights, which consequently benefits policy optimization and performance. Experiments on multiple mathematical reasoning benchmarks show that GMPO-7B improves the average Pass@1 of GRPO by up to 4.1%, outperforming many state-of-the-art approaches. Code is available at https://github.com/callsys/GMPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑