arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.00675cs.LGcs.AIcs.CLstat.ML
收藏

面向语言模型对齐的自博弈偏好优化

Self-Play Preference Optimization for Language Model Alignment

University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Carnegie Mellon University(卡内基梅隆大学)

Yue Wu, Zhiqing Sun, Huizhuo Yuan, Kaixuan Ji, Yiming Yang, Quanquan Gu

AI总结:

针对传统RLHF难以捕捉人类偏好非传递性与非理性的问题,提出自博弈偏好优化方法SPPO,将对齐建模为常和双人博弈求解纳什均衡,仅用少量数据和小参数量偏好模型即可实现SOTA对齐效果,无需强模型外部监督。

摘要:

依赖Bradley-Terry模型等参数化模型的标准人类反馈强化学习(RLHF)方法,难以捕捉人类偏好中的非传递性与非理性特征。近期研究进展表明,直接基于偏好概率开展研究能更精准地反映人类偏好,从而实现更灵活、准确的语言模型对齐。本文提出一种基于自博弈的语言模型对齐方法,将对齐问题建模为常和双人博弈,目标是求解纳什均衡策略。我们提出的方法名为Self-Play Preference Optimization(SPPO,自博弈偏好优化),通过迭代策略更新,可证明地逼近纳什均衡。此外,我们还提出了全新的SPPO目标函数,该目标既有扎实的理论支撑,在实践中也简单有效。实验中,我们仅使用UltraFeedback数据集中的6万条提示(无对应回复),未进行任何提示增强,借助参数量仅0.4B的预训练偏好模型PairRM,对Mistral-7B-Instruct-v0.2进行微调得到的SPPO模型,在AlpacaEval 2.0上针对GPT-4-Turbo的长度控制胜率达到28.53%,为当前最优水平。该模型在MT-Bench、Arena-Hard和Open LLM Leaderboard上的表现也优于(迭代式)DPO和IPO方法。以更强的Llama-3-8B-Instruct作为基础模型时,我们取得了38.77%的长度控制胜率。值得注意的是,SPPO的优异性能无需依赖GPT-4或其他更强语言模型提供的额外外部监督(如回复、偏好标注等)。代码已开源至https://github.com/uclaml/SPPO。

英文摘要:

Standard reinforcement learning from human feedback (RLHF) approaches relying on parametric models like the Bradley-Terry model fall short in capturing the intransitivity and irrationality in human preferences. Recent advancements suggest that directly working with preference probabilities can yield a more accurate reflection of human preferences, enabling more flexible and accurate language model alignment. In this paper, we propose a self-play-based method for language model alignment, which treats the problem as a constant-sum two-player game aimed at identifying the Nash equilibrium policy. Our approach, dubbed Self-Play Preference Optimization (SPPO), utilizes iterative policy updates to provably approximate the Nash equilibrium. Additionally, we propose a new SPPO objective which is both strongly motivated by theory and is simple and effective in practice. In our experiments, using only 60k prompts (without responses) from the UltraFeedback dataset and without any prompt augmentation, by leveraging a pre-trained preference model PairRM with only 0.4B parameters, SPPO can obtain a model from fine-tuning Mistral-7B-Instruct-v0.2 that achieves the state-of-the-art length-controlled win-rate of 28.53% against GPT-4-Turbo on AlpacaEval 2.0. It also outperforms the (iterative) DPO and IPO on MT-Bench, Arena-Hard, and the Open LLM Leaderboard. Starting from a stronger base model Llama-3-8B-Instruct, we are able to achieve a length-controlled win rate of 38.77%. Notably, the strong performance of SPPO is achieved without additional external supervision (e.g., responses, preferences, etc.) from GPT-4 or other stronger language models. Codes are available at https://github.com/uclaml/SPPO.

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

↑