2025-10-28 · 专家 · 机器学习

The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisation

本文提出了一种基于最大K优化的强化学习方法,通过优化max@k指标,提高了大型语言模型在数学和编码领域的推理和问题解决能力。

更新于 2025-10-30。作者:Farid Bagirov、Mikhail Arkhipov、Ksenia Sycheva、Evgeniy Glukhov、Egor Bogomolov。

中文摘要

将具有可验证奖励的强化学习(RLVR)应用于数学和编码领域,已经显著提升了大型语言模型的推理和问题解决能力。尽管它在单次生成问题解决方面取得了成功,但强化学习微调过程可能会损害模型的探索能力,这体现在生成多样性的降低以及在大N值情况下Best-of-N采样性能的下降。在本研究中,我们专注于优化max@k指标,这是pass@k的连续泛化。我们推导出一个无偏的在线策略梯度估计,以直接优化此指标。此外,我们将我们的推导扩展到离线策略更新,这是现代RLVR算法中的常见元素,它允许更好的样本效率。从经验上看,我们表明我们的目标在离线场景中有效地优化了max@k指标,使模型与Best-of-N推理策略保持一致。

英文摘要

The application of Reinforcement Learning with Verifiable Rewards (RLVR) to mathematical and coding domains has demonstrated significant improvements in the reasoning and problem-solving abilities of Large Language Models. Despite its success in single generation problem solving, the reinforcement learning fine-tuning process may harm the model's exploration ability, as reflected in decreased diversity of generations and a resulting degradation of performance during Best-of-N sampling for large N values. In this work, we focus on optimizing the max@k metric, a continuous generalization of pass@k. We derive an unbiased on-policy gradient estimate for direct optimization of this metric. Furthermore, we extend our derivations to the off-policy updates, a common element in modern RLVR algorithms, that allows better sample efficiency. Empirically, we show that our objective effectively optimizes max@k metric in off-policy scenarios, aligning the model with the Best-of-N inference strategy.

解读

一句话总结

本文提出了一种基于最大K优化的强化学习方法,通过优化max@k指标,提高了大型语言模型在数学和编码领域的推理和问题解决能力。

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

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

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

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

来源

机器可读索引:llms.txt