Reflect-RL:面向语言模型的双玩家在线强化学习微调
Reflect-RL: Two-Player Online RL Fine-Tuning for LMs
AI总结:
本文提出 Reflect-RL 双玩家系统,通过冻结反思模型辅助策略模型,并结合负例生成、动作枚举与课程学习进行在线强化学习微调,使 GPT-2 XL 1.56B 超越 Mistral 7B 等更大模型。
摘要:
随着语言模型(LM)在多个领域展现出自身能力,将其应用于需要多轮交互的任务已变得越来越普遍。这些任务通常具有复杂的动态特性,因此在有限的离线数据集上进行监督微调(SFT)无法获得良好性能。然而,只有少数工作尝试在交互式决策环境中直接训练语言模型。我们旨在创建一种在这些环境中利用在线强化学习(RL)微调语言模型的有效方法。我们提出 Reflect-RL,一个使用 SFT 和在线 RL 微调语言模型的双玩家系统,其中冻结的反思模型(玩家)辅助策略模型(玩家)。为了为预热 SFT 阶段生成数据,我们使用负例生成来增强反思模型的纠错能力。此外,我们设计了单提示动作枚举,并应用课程学习,使策略模型能够更高效地学习。实验上,我们验证了 Reflect-RL 优于 SFT 和无反思的在线 RL。测试结果表明,使用 Reflect-RL 微调的 GPT-2 XL 1.56B 优于更大的开源语言模型,例如 Mistral 7B。本工作涉及的基准、数据集和代码已公开:https://github.com/zhourunlong/Reflect-RL。
英文摘要:
As language models (LMs) demonstrate their capabilities in various fields, their application to tasks requiring multi-round interactions has become increasingly popular. These tasks usually have complex dynamics, so supervised fine-tuning (SFT) on a limited offline dataset does not yield good performance. However, only a few works attempted to directly train the LMs within interactive decision-making environments. We aim to create an effective approach to fine-tune LMs with online reinforcement learning (RL) in these environments. We propose Reflect-RL, a two-player system to fine-tune an LM using SFT and online RL, where a frozen reflection model (player) assists the policy model (player). To generate data for the warm-up SFT stage, we use negative example generation to enhance the error-correction ability of the reflection model. Furthermore, we designed single-prompt action enumeration and applied curriculum learning to allow the policy model to learn more efficiently. Empirically, we verify that Reflect-RL outperforms SFT and online RL without reflection. Testing results indicate GPT-2 XL 1.56B fine-tuned with Reflect-RL outperforms larger open-source LMs, such as Mistral 7B. The benchmarks, dataset, and code involved in this work are publicly available: https://github.com/zhourunlong/Reflect-RL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。