arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.07863cs.LGcs.AIcs.CLstat.ML
收藏

RLHF工作流程:从奖励建模到在线RLHF

RLHF Workflow: From Reward Modeling to Online RLHF

Salesforce AI Research(Salesforce AI研究院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Hanze Dong, Wei Xiong, Bo Pang, Haoxiang Wang, Han Zhao, Yingbo Zhou, Nan Jiang, Doyen Sahoo, Caiming Xiong, Tong Zhang

AI总结:

本文提出一种易于复现的在线迭代RLHF工作流程,通过构建代理偏好模型近似人类反馈,并公开模型、数据集与代码,使LLM在多项基准测试中达到SOTA性能。

摘要:

在本技术报告中,我们介绍了在线迭代人类反馈强化学习(RLHF)的工作流程,近期的大语言模型(LLM)文献广泛报告称,该方法在性能上大幅优于其离线对应方法。然而,现有的开源RLHF项目在很大程度上仍局限于离线学习设置。在本技术报告中,我们旨在填补这一空白,并提供一种易于复现的在线迭代RLHF的详细方案。具体而言,由于在线人类反馈对于资源有限的开源社区通常不可行,我们首先使用多种开源数据集构建偏好模型,并使用构建的代理偏好模型来近似人类反馈。然后,我们讨论了在线迭代RLHF背后的理论见解和算法原理,随后给出了详细的实际实现。我们训练的LLM在LLM聊天机器人基准测试中取得了令人印象深刻的性能,包括AlpacaEval-2、Arena-Hard和MT-Bench,以及其他学术基准测试,如HumanEval和TruthfulQA。我们已经证明,监督微调(SFT)和迭代RLHF可以使用完全开源的数据集获得最先进的性能。此外,我们已经公开了我们的模型、精选数据集和全面的分步代码指南。请参阅 https://github.com/RLHFlow/RLHF-Reward-Modeling 和 https://github.com/RLHFlow/Online-RLHF 获取更多详细信息。

英文摘要:

We present the workflow of Online Iterative Reinforcement Learning from Human Feedback (RLHF) in this technical report, which is widely reported to outperform its offline counterpart by a large margin in the recent large language model (LLM) literature. However, existing open-source RLHF projects are still largely confined to the offline learning setting. In this technical report, we aim to fill in this gap and provide a detailed recipe that is easy to reproduce for online iterative RLHF. In particular, since online human feedback is usually infeasible for open-source communities with limited resources, we start by constructing preference models using a diverse set of open-source datasets and use the constructed proxy preference model to approximate human feedback. Then, we discuss the theoretical insights and algorithmic principles behind online iterative RLHF, followed by a detailed practical implementation. Our trained LLM achieves impressive performance on LLM chatbot benchmarks, including AlpacaEval-2, Arena-Hard, and MT-Bench, as well as other academic benchmarks such as HumanEval and TruthfulQA. We have shown that supervised fine-tuning (SFT) and iterative RLHF can obtain state-of-the-art performance with fully open-source datasets. Further, we have made our models, curated datasets, and comprehensive step-by-step code guidebooks publicly available. Please refer to https://github.com/RLHFlow/RLHF-Reward-Modeling and https://github.com/RLHFlow/Online-RLHF for more detailed information.

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

↑