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

CPPO:加速基于分组相对策略优化的推理模型训练

CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Models

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学);Shanghai Innovation Institute(上海创新研究院);Rakuten, Singapore(新加坡Rakuten公司);East China Normal University, Shanghai, China(上海教育学院,中国)

Zhihang Lin, Mingbao Lin, Yuan Xie, Rongrong Ji

AI总结:

本文提出CPPO方法,通过剪枝低绝对优势的完成结果并动态分配完成资源,显著加速基于GRPO的推理模型训练,在GSM8K和Math上分别实现7.98倍和3.48倍加速且保持或提升准确率。

摘要:

本文提出完成剪枝策略优化(Completion Pruning Policy Optimization,CPPO),以加速基于分组相对策略优化(Group Relative Policy Optimization,GRPO)的推理模型训练。GRPO虽然有效,但由于需要为每个问题采样多个完成结果,导致训练成本高昂。我们的实验和理论分析表明,完成结果的数量会影响模型准确率,同时使训练时间成倍增加,并且并非所有完成结果对策略训练的贡献相同——其贡献取决于它们的相对优势。为解决这些问题,我们提出CPPO,它剪枝具有低绝对优势的完成结果,从而显著减少梯度计算和更新所需的数量。此外,我们引入动态完成分配策略,通过纳入额外问题来最大化GPU利用率,进一步提升训练效率。实验表明,与原始GRPO相比,CPPO在GSM8K上实现了高达$7.98\times$的加速,在Math上实现了$3.48\times$的加速,同时保持甚至提高了准确率。我们在\href{https://github.com/lzhxmu/CPPO}{https://github.com/lzhxmu/CPPO}发布了代码。

英文摘要:

This paper introduces Completion Pruning Policy Optimization (CPPO) to accelerate the training of reasoning models based on Group Relative Policy Optimization (GRPO). GRPO, while effective, incurs high training costs due to the need to sample multiple completions for each question. Our experiment and theoretical analysis reveal that the number of completions impacts model accuracy yet increases training time multiplicatively, and not all completions contribute equally to policy training -- their contribution depends on their relative advantage. To address these issues, we propose CPPO, which prunes completions with low absolute advantages, significantly reducing the number needed for gradient calculation and updates. Additionally, we introduce a dynamic completion allocation strategy to maximize GPU utilization by incorporating additional questions, further enhancing training efficiency. Experiments show that CPPO achieves up to $7.98\times$ speedup on GSM8K and $3.48\times$ on Math while preserving or even enhancing the accuracy compared to the original GRPO. We release our code at \href{https://github.com/lzhxmu/CPPO}{https://github.com/lzhxmu/CPPO}.

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

↑