arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04291cs.LG
收藏

研究自博弈语言模型的正则化

Investigating Regularization of Self-Play Language Models

Technology Innovation Institute(技术创新研究院)

Reda Alami, Abdalgader Abubaker, Mastane Achab, Mohamed El Amine Seddik, Salem Lahlou

AI总结:

针对SPIN自博弈对齐中的训练不稳定问题,本文提出KL正则化与虚拟博弈平滑对手策略两种方法,并在MT-Bench和Open LLM Leaderboard上验证效果。

摘要:

本文探讨了在通过自博弈实现语言模型对齐的情境中,各种正则化形式的效果。虽然基于人类反馈的强化学习(RLHF)和直接偏好优化(DPO)都需要收集成本高昂的人工标注成对偏好,但自博弈微调(SPIN)方法使用上一轮迭代生成的数据来替代被拒绝的答案。然而,SPIN方法在学习阶段存在性能不稳定的问题,通过与前两轮迭代的混合体进行博弈可以缓解这一问题。本着同样的思路,我们在本工作中提出从两个角度解决该问题:第一,引入额外的Kullback-Leibler(KL)正则化,以保持在参考策略附近;第二,使用虚拟博弈的思想,在所有先前迭代中平滑对手策略。特别地,我们证明了基于KL的正则化项本质上是在SPIN损失函数内,将先前策略替换为其与基础策略的几何混合。最后,我们讨论了在MT-Bench以及Hugging Face Open LLM Leaderboard上的实证结果。

英文摘要:

This paper explores the effects of various forms of regularization in the context of language model alignment via self-play. While both reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO) require to collect costly human-annotated pairwise preferences, the self-play fine-tuning (SPIN) approach replaces the rejected answers by data generated from the previous iterate. However, the SPIN method presents a performance instability issue in the learning phase, which can be mitigated by playing against a mixture of the two previous iterates. In the same vein, we propose in this work to address this issue from two perspectives: first, by incorporating an additional Kullback-Leibler (KL) regularization to stay at the proximity of the reference policy; second, by using the idea of fictitious play which smoothens the opponent policy across all previous iterations. In particular, we show that the KL-based regularizer boils down to replacing the previous policy by its geometric mixture with the base policy inside of the SPIN loss function. We finally discuss empirical results on MT-Bench as well as on the Hugging Face Open LLM Leaderboard.

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

↑