让大模型在不同任务下仍稳定表现,提升人类反馈强化学习的鲁棒性。
Distributionally Robust Reinforcement Learning with Human Feedback
- 基于分布鲁棒优化,改进两种主流人类反馈微调方法。
- 在分布外任务上,奖励模型准确率平均提升,推理类任务显著改善。
- 适合需要跨场景稳定表现的大模型应用,如客服、智能助手。
从人类反馈中进行强化学习(RLHF)已成为微调大型语言模型(LLMs)的主要方法之一。然而,现有RLHF方法缺乏鲁棒性,当下游任务与微调时使用的偏好数据分布差异较大时,性能会显著下降。为此,本文提出一种分布鲁棒的RLHF方法,旨在确保微调后的模型在提示分布与训练阶段差异较大时仍能保持良好性能。我们为两种主流微调方法——基于奖励的RLHF和无奖励的直接偏好优化(DPO)——构建了分布鲁棒优化(DRO)版本,并提出了基于小批量梯度下降的算法,同时理论证明了算法的收敛性。我们在统一反馈数据集(Unified-Feedback)上训练模型,并在两个不同数据集上评估其在分布外(OOD)任务上的表现。实验结果表明,所提方法显著提升了奖励模型在平均任务上的准确率,尤其在推理类任务上效果更明显。此外,鲁棒的策略优化方法同样在分布外任务上表现出更强的性能。
原文摘要 · Abstract (English)
Reinforcement learning from human feedback (RLHF) has evolved to be one of the main methods for fine-tuning large language models (LLMs). However, existing RLHF methods are non-robust, and their performance deteriorates if the downstream task differs significantly from the preference dataset used in fine-tuning. In order to mitigate this problem, we introduce a distributionally robust RLHF for fine-tuning LLMs. In particular, our goal is to ensure that a fine-tuned model retains its performance even when the distribution of prompts significantly differs from the distribution encountered during fine-tuning. We formulate distributionally robust optimization (DRO) version of two popular fine-tuning methods -- (1) reward-based RLHF and (2) reward-free DPO (direct preference optimization). We propose a minibatch gradient descent based algorithms for both of them, and theoretically prove convergence guarantees for the algorithms. Subsequently, we evaluate our algorithms on an out-of-distribution (OOD) task by first training the model on the Unified-Feedback dataset and evaluating its performance on two different datasets. The experimental results show that our robust training improves the accuracy of the learned reward models on average, and markedly on some tasks, such as reasoning. Furthermore, we show that the robust versions of policy optimization methods, similarly improve performance on OOD tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。