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

强化学习是否(不)适用于自然语言处理:面向自然语言策略优化的基准、基线与构建模块

Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimization

Cornell University(康奈尔大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);Fraunhofer IAIS(弗劳恩霍夫智能分析与信息系统研究所);Paul G. Allen School of Computer Science, University of Washington(华盛顿大学保罗·G·艾伦计算机科学学院)

Rajkumar Ramamurthy, Prithviraj Ammanabrolu, Kianté Brantley, Jack Hessel, Rafet Sifa, Christian Bauckhage, Hannaneh Hajishirzi, Yejin Choi

AI总结:

本文针对强化学习在自然语言处理中的实用性问题,提出开源库RL4LMs、GRUE基准和NLPO算法,证明RL在语言模型对齐上优于监督方法,且NLPO比PPO更稳定高效。

摘要:

我们致力于解决预训练大语言模型(LMs)与人类偏好对齐的问题。如果将文本生成视为一个序列决策问题,强化学习(RL)似乎是一个自然的概念框架。然而,将 RL 用于基于语言模型的生成面临经验性挑战,包括由于组合动作空间导致的训练不稳定性,以及缺乏为语言模型对齐定制的开源库和基准。因此,研究界产生了一个问题:RL 是否是自然语言处理(NLP)的实用范式?为了帮助回答这个问题,我们首先引入一个开源模块化库 RL4LMs(Reinforcement Learning for Language Models,用于语言模型的强化学习),用于通过 RL 优化语言生成器。该库包含在策略(on-policy)RL 算法,可用于训练 HuggingFace 库(Wolf et al. 2020)中的任意编码器或编码器-解码器语言模型,并可使用任意奖励函数。接下来,我们提出 GRUE(General Reinforced-language Understanding Evaluation,通用强化语言理解评估)基准,这是一组 6 个语言生成任务,其监督信号不是目标字符串,而是能够捕捉人类偏好自动化度量的奖励函数。GRUE 是首个针对 NLP 任务的 RL 算法排行榜式评估。最后,我们引入一种易于使用且性能良好的 RL 算法 NLPO(Natural Language Policy Optimization,自然语言策略优化),该算法能够学习有效缩减语言生成中的组合动作空间。我们证明:1)在将语言模型与人类偏好对齐方面,RL 技术通常优于监督方法;2)基于自动评估和人工评估,NLPO 比之前的策略梯度方法(例如 PPO(Schulman et al. 2017))表现出更高的稳定性和性能。

英文摘要:

We tackle the problem of aligning pre-trained large language models (LMs) with human preferences. If we view text generation as a sequential decision-making problem, reinforcement learning (RL) appears to be a natural conceptual framework. However, using RL for LM-based generation faces empirical challenges, including training instability due to the combinatorial action space, as well as a lack of open-source libraries and benchmarks customized for LM alignment. Thus, a question rises in the research community: is RL a practical paradigm for NLP? To help answer this, we first introduce an open-source modular library, RL4LMs (Reinforcement Learning for Language Models), for optimizing language generators with RL. The library consists of on-policy RL algorithms that can be used to train any encoder or encoder-decoder LM in the HuggingFace library (Wolf et al. 2020) with an arbitrary reward function. Next, we present the GRUE (General Reinforced-language Understanding Evaluation) benchmark, a set of 6 language generation tasks which are supervised not by target strings, but by reward functions which capture automated measures of human preference. GRUE is the first leaderboard-style evaluation of RL algorithms for NLP tasks. Finally, we introduce an easy-to-use, performant RL algorithm, NLPO (Natural Language Policy Optimization) that learns to effectively reduce the combinatorial action space in language generation. We show 1) that RL techniques are generally better than supervised methods at aligning LMs to human preferences; and 2) that NLPO exhibits greater stability and performance than previous policy gradient methods (e.g., PPO (Schulman et al. 2017)), based on both automatic and human evaluations.

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

↑