arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.18548cs.LGcs.AI
收藏

GRPO 的对齐目标是什么?

What is the Alignment Objective of GRPO?

London School of Economics(伦敦政治经济学院);KAIST AI(韩国科学技术院人工智能部门)

Milan Vojnovic, Se-Young Yun

AI总结:

本文建立框架刻画 GRPO 的平稳策略,揭示其偏好聚合不同于 RLHF 的对数池化,并分析二元、成对及大组情形与 KL 惩罚变体。

摘要:

在本札记中,我们考察由 Group Policy Optimisation(GRPO,组策略优化)算法所实现的偏好聚合;GRPO 是一种强化学习方法,用于训练 DeepSeek-R1-Zero 和 DeepSeekMath 等先进人工智能模型。GRPO 算法使用奖励偏好模型来训练策略,该模型的计算方式是:针对给定上下文采样一组输出,观测相应奖励,并对这些奖励值应用平移与缩放归一化。此外,它还引入一个惩罚函数,以阻止策略偏离参考策略。\n我们提出一个框架,使我们能够刻画 GRPO 算法的平稳策略。该分析揭示,这种偏好聚合与标准对数池化存在根本差异;后者由 RLHF 等其他方法实现。偏好聚合的精确形式源于奖励偏好模型的定义方式以及惩罚函数;我们证明,该惩罚函数本质上对应于聚合策略与参考策略之间的反向 Kullback-Leibler(KL)散度。\n有趣的是,我们证明,对于大小为 2 的组,奖励偏好模型对应于成对比较偏好,类似于其他基于成对比较反馈的对齐方法中的偏好。我们针对二元问题、大小为 2 的组以及大组规模极限,给出了聚合偏好的显式刻画。这为理解聚合偏好如何依赖于正则化常数和问题答案的置信裕度等参数提供了洞见。\n最后,我们讨论通过修改 GRPO 算法所获得的偏好聚合:修改方式包括使用正向 KL 散度作为惩罚,或使用未经缩放归一化的奖励。

英文摘要:

In this note, we examine the aggregation of preferences achieved by the Group Policy Optimisation (GRPO) algorithm, a reinforcement learning method used to train advanced artificial intelligence models such as DeepSeek-R1-Zero and DeepSeekMath. The GRPO algorithm trains a policy using a reward preference model, which is computed by sampling a set of outputs for a given context, observing the corresponding rewards, and applying shift-and-scale normalisation to these reward values. Additionally, it incorporates a penalty function to discourage deviations from a reference policy. We present a framework that enables us to characterise the stationary policies of the GRPO algorithm. This analysis reveals that the aggregation of preferences differs fundamentally from standard logarithmic pooling, which is implemented by other approaches such as RLHF. The precise form of preference aggregation arises from the way the reward preference model is defined and from the penalty function, which we show to essentially correspond to the reverse Kullback-Leibler (KL) divergence between the aggregation policy and the reference policy. Interestingly, we demonstrate that for groups of size two, the reward preference model corresponds to pairwise comparison preferences, similar to those in other alignment methods based on pairwise comparison feedback. We provide explicit characterisations of the aggregate preference for binary questions, for groups of size two, and in the limit of large group size. This provides insights into the dependence of the aggregate preference on parameters such as the regularisation constant and the confidence margin of question answers. Finally, we discuss the aggregation of preferences obtained by modifying the GRPO algorithm to use direct KL divergence as the penalty or to use rewards without scale normalisation.

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

↑