arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.12735cs.LG
收藏

通过基于计数的探索实现语言模型的在线偏好对齐

Online Preference Alignment for Language Models via Count-based Exploration

Cranberry-Lemon University(蔓越莓柠檬大学);University of the Witwatersrand(金山大学)

Chenjia Bai, Yang Zhang, Shuang Qiu, Qiaosheng Zhang, Kang Xu, Xuelong Li

AI总结:

本文针对在线RLHF中LLM如何探索的问题,提出基于计数的在线偏好优化算法COPO,通过抛硬币计数估计伪计数并将UCB项转化为探索奖励,在Zephyr和Llama-3上显著提升指令遵循与学术基准性能。

摘要:

基于人类反馈的强化学习(RLHF)在微调大语言模型(LLMs)以对齐人类偏好方面展现出巨大潜力。现有方法基于固定数据集进行偏好对齐,这可能在数据覆盖范围上存在局限,且由此得到的奖励模型难以在分布外响应上泛化。因此,在线RLHF更受青睐,它通过迭代收集提示-响应对,使LLM能够在初始数据集支撑范围之外进行探索。在本文中,我们研究在线RLHF中的根本问题,即LLM如何探索。我们在线性奖励假设下给出理论动机,表明带有上置信界(UCB)项的乐观奖励能够产生可证明高效的RLHF策略。然后,我们将目标重新表述为带有探索项的直接偏好优化,其中UCB项可以转换为基于计数的探索奖励。我们进一步提出一种实用算法,名为基于计数的在线偏好优化(COPO),该算法利用一个简单的抛硬币计数模块来估计提示-响应对在先前收集数据中的伪计数。COPO鼓励LLM以迭代方式平衡探索与偏好优化,从而扩大探索空间以及迭代LLM策略的整体数据覆盖范围。我们在Zephyr和Llama-3模型上进行了在线RLHF实验。指令遵循和标准学术基准上的结果表明,COPO显著提升了性能。

英文摘要:

Reinforcement Learning from Human Feedback (RLHF) has shown great potential in fine-tuning Large Language Models (LLMs) to align with human preferences. Existing methods perform preference alignment from a fixed dataset, which can be limited in data coverage, and the resulting reward model is hard to generalize in out-of-distribution responses. Thus, online RLHF is more desirable to empower the LLM to explore outside the support of the initial dataset by iteratively collecting the prompt-response pairs. In this paper, we study the fundamental problem in online RLHF, i.e. \emph{how to explore} for LLM. We give a theoretical motivation in linear reward assumption to show that an optimistic reward with an upper confidence bound (UCB) term leads to a provably efficient RLHF policy. Then, we reformulate our objective to direct preference optimization with an exploration term, where the UCB-term can be converted to a count-based exploration bonus. We further propose a practical algorithm, named \emph{Count-based Online Preference Optimization (COPO)}, which leverages a simple coin-flip counting module to estimate the pseudo-count of a prompt-response pair in previously collected data. COPO encourages LLMs to balance exploration and preference optimization in an iterative manner, which enlarges the exploration space and the entire data coverage of iterative LLM policies. We conduct online RLHF experiments on Zephyr and Llama-3 models. The results on instruction-following and standard academic benchmarks show that COPO significantly increases performance.

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

↑