2025-04-16 · 进阶 · 机器学习 · 自然语言处理

A Minimalist Approach to LLM Reasoning: from Rejection Sampling to Reinforce

本文提出了一种基于拒绝采样的最小化方法,通过分析大型语言模型在数学推理任务上的强化学习算法,发现仅使用正样本训练的简单拒绝采样基线(RAFT)在性能上与更复杂的算法相当,并提出了Reinforce-Rej算法,提高了KL效率和稳定性。

更新于 2025-04-16。作者:Wei Xiong、Jiarui Yao、Yuhui Xu、Bo Pang、Lei Wang、Doyen Sahoo、Junnan Li、Nan Jiang、Tong Zhang、Caiming Xiong、Hanze Dong。

中文摘要

强化学习(RL)已成为在复杂推理任务上微调大型语言模型(LLMs)的流行方法。在最近的方法中,GRPO因其训练DeepSeek-R1等模型时的实证成功而脱颖而出,但其有效性的来源仍不太清楚。在这项工作中,我们从强化似算法的角度重新审视了GRPO,并分析了其核心组件。令人惊讶的是,我们发现一个简单的拒绝采样基线,RAFT,它仅训练正奖励样本,其性能与GRPO和PPO相当。我们的消融研究表明,GRPO的主要优势来自于丢弃完全错误的提示,而不是其奖励归一化。受这一洞察的启发,我们提出了Reinforce-Rej,这是策略梯度的最小扩展,它可以过滤掉完全正确和完全错误的样本。Reinforce-Rej提高了KL效率和稳定性,作为一种轻量级而有效的替代方案,用于更复杂的RL算法。我们倡导RAFT作为一种稳健且可解释的基线,并建议未来的进步应专注于更原则性的设计,以纳入负样本,而不是不加区分地依赖它们。我们的发现为基于奖励的LLM后训练的未来工作提供了指导。

英文摘要

Reinforcement learning (RL) has become a prevailing approach for fine-tuning large language models (LLMs) on complex reasoning tasks. Among recent methods, GRPO stands out for its empirical success in training models such as DeepSeek-R1, yet the sources of its effectiveness remain poorly understood. In this work, we revisit GRPO from a reinforce-like algorithm perspective and analyze its core components. Surprisingly, we find that a simple rejection sampling baseline, RAFT, which trains only on positively rewarded samples, yields competitive performance than GRPO and PPO. Our ablation studies reveal that GRPO's main advantage arises from discarding prompts with entirely incorrect responses, rather than from its reward normalization. Motivated by this insight, we propose Reinforce-Rej, a minimal extension of policy gradient that filters both entirely incorrect and entirely correct samples. Reinforce-Rej improves KL efficiency and stability, serving as a lightweight yet effective alternative to more complex RL algorithms. We advocate RAFT as a robust and interpretable baseline, and suggest that future advances should focus on more principled designs for incorporating negative samples, rather than relying on them indiscriminately. Our findings provide guidance for future work in reward-based LLM post-training.

解读

一句话总结

本文提出了一种基于拒绝采样的最小化方法,通过分析大型语言模型在数学推理任务上的强化学习算法,发现仅使用正样本训练的简单拒绝采样基线(RAFT)在性能上与更复杂的算法相当,并提出了Reinforce-Rej算法,提高了KL效率和稳定性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt