arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04612cs.LGcs.AIcs.CL
收藏

回归相对未来:面向多轮RLHF的高效策略优化

Regressing the Relative Future: Efficient Policy Optimization for Multi-turn RLHF

Cornell University(康奈尔大学);Princeton University(普林斯顿大学);Databricks Mosaic Research(Databricks 混合研究);Carnegie Mellon University(卡内基梅隆大学);Harvard University(哈佛大学)

Zhaolin Gao, Wenhao Zhan, Jonathan D. Chang, Gokul Swamy, Kianté Brantley, Jason D. Lee, Wen Sun

AI总结:

本文提出REFUEL,一种通过回归相对未来解决多轮RLHF中协变量偏移的高效策略优化方法,理论上可匹配训练集覆盖策略的性能,实验表明其优于DPO和REBEL,且8B模型微调后超越70B模型。

摘要:

大型语言模型(LLMs)在诸如摘要等涉及单轮交互的任务上取得了显著成功。然而,它们在需要长期规划的多轮任务(如对话)上仍可能表现不佳。以往关于多轮对话的研究通过将所有先前的对话轮次视为长上下文,将单轮基于人类反馈的强化学习(RLHF)方法扩展到多轮设置。这类方法遭受协变量偏移问题:训练集中的对话其先前轮次由某个参考策略生成,这意味着当学习器实际处于对话循环中时,低训练误差未必对应良好的性能。为此,我们提出了回归相对未来(REFUEL),一种旨在解决LLMs中多轮RLHF的高效策略优化方法。REFUEL使用单一模型来估计Q值,并在自生成数据上进行训练,从而解决协变量偏移问题。REFUEL将多轮RLHF问题构建为在迭代收集的数据集上的一系列回归任务,便于实现。理论上,我们证明了REFUEL能够匹配训练集所覆盖的任何策略的性能。实验上,我们使用Llama-3.1-70B-it模拟与我们的模型对话的用户来评估算法。REFUEL在各种设置下持续优于DPO和REBEL等最先进方法。此外,尽管仅有80亿参数,使用REFUEL微调的Llama-3-8B-it在长多轮对话上优于Llama-3.1-70B-it。REFUEL的实现可在https://github.com/ZhaolinGao/REFUEL/ 获取,由REFUEL训练的模型可在https://huggingface.co/Cornell-AGI 获取。

英文摘要:

Large Language Models (LLMs) have achieved remarkable success at tasks like summarization that involve a single turn of interaction. However, they can still struggle with multi-turn tasks like dialogue that require long-term planning. Previous works on multi-turn dialogue extend single-turn reinforcement learning from human feedback (RLHF) methods to the multi-turn setting by treating all prior dialogue turns as a long context. Such approaches suffer from covariate shift: the conversations in the training set have previous turns generated by some reference policy, which means that low training error may not necessarily correspond to good performance when the learner is actually in the conversation loop. In response, we introduce REgressing the RELative FUture (REFUEL), an efficient policy optimization approach designed to address multi-turn RLHF in LLMs. REFUEL employs a single model to estimate $Q$-values and trains on self-generated data, addressing the covariate shift issue. REFUEL frames the multi-turn RLHF problem as a sequence of regression tasks on iteratively collected datasets, enabling ease of implementation. Theoretically, we prove that REFUEL can match the performance of any policy covered by the training set. Empirically, we evaluate our algorithm by using Llama-3.1-70B-it to simulate a user in conversation with our model. REFUEL consistently outperforms state-of-the-art methods such as DPO and REBEL across various settings. Furthermore, despite having only 8 billion parameters, Llama-3-8B-it fine-tuned with REFUEL outperforms Llama-3.1-70B-it on long multi-turn dialogues. Implementation of REFUEL can be found at https://github.com/ZhaolinGao/REFUEL/, and models trained by REFUEL can be found at https://huggingface.co/Cornell-AGI.

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

↑