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

自探索语言模型:用于在线对齐的主动偏好 elicitation

Self-Exploring Language Models: Active Preference Elicitation for Online Alignment

Northwestern University(西北大学);Microsoft(微软公司);Peking University(北京大学)

Shenao Zhang, Donghan Yu, Hiteshi Sharma, Han Zhong, Zhihan Liu, Ziyi Yang, Shuohang Wang, Hany Hassan, Zhaoran Wang

AI总结:

本文提出自探索语言模型(SELM),通过双层优化主动探索高奖励响应,无需单独奖励模型,在指令遵循基准上显著提升性能。

摘要:

偏好优化,特别是通过基于人类反馈的强化学习(RLHF),在使大型语言模型(LLMs)遵循人类意图方面取得了显著成功。与使用固定数据集的离线对齐不同,从人类或AI对模型生成内容进行在线反馈收集,通常通过迭代过程导致更强大的奖励模型和更好对齐的LLMs。然而,要实现全局准确的奖励模型,需要系统性的探索,以生成覆盖自然语言广阔空间的多样化响应。仅从标准的奖励最大化LLMs中随机采样不足以满足这一要求。为解决此问题,我们提出一个双层目标,乐观地偏向于潜在高奖励响应,以主动探索分布外区域。通过使用重参数化的奖励函数解决内层问题,所得到的算法,名为自探索语言模型(SELM),无需单独的奖励模型,并通过一个直接的目标迭代更新LLM。与直接偏好优化(DPO)相比,SELM目标减少了对未见外推的无差别偏好,并提高了探索效率。我们的实验结果表明,当在Zephyr-7B-SFT和Llama-3-8B-Instruct模型上进行微调时,SELM显著提升了指令遵循基准(如MT-Bench和AlpacaEval 2.0)以及不同设置下的各种标准学术基准的性能。我们的代码和模型可在https://github.com/shenao-zhang/SELM获取。

英文摘要:

Preference optimization, particularly through Reinforcement Learning from Human Feedback (RLHF), has achieved significant success in aligning Large Language Models (LLMs) to adhere to human intentions. Unlike offline alignment with a fixed dataset, online feedback collection from humans or AI on model generations typically leads to more capable reward models and better-aligned LLMs through an iterative process. However, achieving a globally accurate reward model requires systematic exploration to generate diverse responses that span the vast space of natural language. Random sampling from standard reward-maximizing LLMs alone is insufficient to fulfill this requirement. To address this issue, we propose a bilevel objective optimistically biased towards potentially high-reward responses to actively explore out-of-distribution regions. By solving the inner-level problem with the reparameterized reward function, the resulting algorithm, named Self-Exploring Language Models (SELM), eliminates the need for a separate RM and iteratively updates the LLM with a straightforward objective. Compared to Direct Preference Optimization (DPO), the SELM objective reduces indiscriminate favor of unseen extrapolations and enhances exploration efficiency. Our experimental results demonstrate that when fine-tuned on Zephyr-7B-SFT and Llama-3-8B-Instruct models, SELM significantly boosts the performance on instruction-following benchmarks such as MT-Bench and AlpacaEval 2.0, as well as various standard academic benchmarks in different settings. Our code and models are available at https://github.com/shenao-zhang/SELM.

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

↑