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

从 SFT 数据中榨取更多价值:从人类演示中进行奖励学习可改进面向 LLM 对齐的 SFT

Getting More Juice Out of the SFT Data: Reward Learning from Human Demonstration Improves SFT for LLM Alignment

University of Minnesota(明尼苏达大学);Chinese University of Hong Kong(香港中文大学);Texas A&M University(德克萨斯农工大学)

Jiaxiang Li, Siliang Zeng, Hoi-To Wai, Chenliang Li, Alfredo Garcia, Mingyi Hong

AI总结:

本文提出用逆强化学习从人类演示中同时学习奖励模型与策略,以增强 LLM 的 SFT 对齐,并在 1B、7B 模型上验证其鲁棒性和性能提升。

摘要:

对齐人类偏好与价值是当代基础模型的一项重要要求。诸如基于人类反馈的强化学习(RLHF)等最先进技术通常包含两个阶段:1)监督微调(SFT),模型通过从人类演示数据中学习而被微调;2)偏好学习,利用偏好数据学习一个奖励模型,随后由强化学习(RL)步骤使用该模型来微调基础模型。此类奖励模型充当人类偏好的代理,对于引导 RL 步骤提升模型质量至关重要。在本研究中,我们认为 SFT 阶段同样能从学习奖励模型中显著受益。我们提出不通过监督学习直接使用人类演示数据,而是利用逆强化学习(IRL)技术同时构建奖励模型和策略模型。该方法产生了新的 SFT 算法,这些算法不仅实现高效,而且在存在低质量监督学习数据时具有鲁棒性。此外,我们发现所提出的基于 IRL 的方法与近期一系列名为 Self-Play Fine-tune(SPIN)的研究之间存在联系。在理论上,我们证明所提出算法会收敛到 IRL 问题的平稳解。在实证上,我们使用所提方法对齐 1B 和 7B 模型,并在奖励基准模型以及 HuggingFace Open LLM Leaderboard 上对其进行评估。所提方法相较现有 SFT 方法表现出显著的性能提升。我们的结果表明,在整个对齐过程中利用奖励学习是有益的。

英文摘要:

Aligning human preference and value is an important requirement for contemporary foundation models. State-of-the-art techniques such as Reinforcement Learning from Human Feedback (RLHF) often consist of two stages: 1) supervised fine-tuning (SFT), where the model is fine-tuned by learning from human demonstration data; 2) Preference learning, where preference data is used to learn a reward model, which is in turn used by a reinforcement learning (RL) step to fine-tune the model. Such reward model serves as a proxy to human preference, and it is critical to guide the RL step towards improving the model quality. In this work, we argue that the SFT stage significantly benefits from learning a reward model as well. Instead of using the human demonstration data directly via supervised learning, we propose to leverage an Inverse Reinforcement Learning (IRL) technique to simultaneously build an reward model and a policy model. This approach leads to new SFT algorithms that are not only efficient to implement, but are robust to the presence of low-quality supervised learning data. Moreover, we discover a connection between the proposed IRL based approach, and a recent line of works called Self-Play Fine-tune (SPIN). Theoretically, we show that the proposed algorithms converge to the stationary solutions of the IRL problem. Empirically, we align 1B and 7B models using proposed methods and evaluate them on a reward benchmark model and the HuggingFace Open LLM Leaderboard. The proposed methods show significant performance improvement over existing SFT approaches. Our results indicate that it is beneficial to leverage reward learning throughout the entire alignment process.

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

↑