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

Tapered Off-Policy REINFORCE:面向大语言模型的稳定高效强化学习

Tapered Off-Policy REINFORCE: Stable and efficient reinforcement learning for LLMs

Mila(米拉研究所);Reliant AI

Nicolas Le Roux, Marc G. Bellemare, Jonathan Lebensold, Arnaud Bergeron, Joshua Greaves, Alex Fréchette, Carolyne Pelletier, Eric Thibodeau-Laufer, Sándor Toth, Sam Work

AI总结:

本研究提出TOPR离策略强化学习算法,采用非对称锥形重要采样,无需KL正则即可稳定高效微调大模型,能统一处理正负例,在GSM8K、MATH基准上提升性能,8B模型可匹配70B模型效果。

摘要:

我们提出了一种用于大语言模型强化学习微调的新算法。Tapered Off-Policy REINFORCE(TOPR,锥形离策略REINFORCE)采用一种非对称的锥形重要采样变体,即使不使用KL正则化,也能在保持学习动态稳定的同时加快学习速度。TOPR可完全以离线方式应用,支持在统一框架中处理正例和负例,且具备蒙特卡洛算法典型的实现简单的优势。我们在GSM8K和MATH推理基准上开展了一系列实验验证该方法的有效性,发现在训练解生成模型和生成式验证器时均能实现性能提升。我们表明,在离策略场景下合理利用正负例,可同时提升测试时准确率和训练数据效率,同时避免因丢弃负例而产生的“推理浪费”。我们发现这一优势在多轮训练迭代中持续存在,且可通过数据集整理技术进一步放大,使得我们能够用8B参数的语言模型达到70B参数模型的性能。作为本研究的一个推论,我们发现REINFORCE的基线参数在存在负例的情况下,对定义数据集构成起着重要且出人意料的作用,因此对提升离策略性能至关重要。

英文摘要:

We propose a new algorithm for fine-tuning large language models using reinforcement learning. Tapered Off-Policy REINFORCE (TOPR) uses an asymmetric, tapered variant of importance sampling to speed up learning while maintaining stable learning dynamics, even without the use of KL regularization. TOPR can be applied in a fully offline fashion, allows the handling of positive and negative examples in a unified framework, and benefits from the implementational simplicity that is typical of Monte Carlo algorithms. We demonstrate the effectiveness of our approach with a series of experiments on the GSM8K and MATH reasoning benchmarks, finding performance gains for training both a model for solution generation and as a generative verifier. We show that properly leveraging positive and negative examples alike in the off-policy regime simultaneously increases test-time accuracy and training data efficiency, all the while avoiding the ``wasted inference'' that comes with discarding negative examples. We find that this advantage persists over multiple iterations of training and can be amplified by dataset curation techniques, enabling us to match 70B-parameter model performance with 8B language models. As a corollary to this work, we find that REINFORCE's baseline parameter plays an important and unexpected role in defining dataset composition in the presence of negative examples, and is consequently critical in driving off-policy performance.

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

↑