本文探讨了在通过自博弈实现语言模型对齐的情境中,各种正则化形式的效果。虽然基于人类反馈的强化学习(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.
Offline Two-Player Zero-Sum Markov Games with KL Regularization
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);California Institute of Technology(加州理工学院);University of Virginia(弗吉尼亚大学);Purdue University(Purdue 大学);Massachusetts Institute of Technology(麻省理工学院)
University of Oxford(牛津大学);Huawei Technologies(华为技术有限公司)
正则化在现代深度学习中发挥着重要作用。从L1、L2惩罚等经典技术到其他基于噪声的方法(如Dropout),正则化通常通过避免过拟合来产生更好的泛化性能。最近,随机深度(SD)已经成为残差神经网络(ResNets)的替代正则化技术,并且已经证明可以提高ResNet在许多任务上的性能[Huang et al.,2016年]。尽管SD最近取得了成功,但从理论角度对这项技术知之甚少。本文提供了一个混合分析相结合的扰动分析和信号传播阐明不同的正则化效果的SD。我们的分析使我们能够获得选择SD训练所用生存率的原则性指导方针。
Inverse problem regularization with hierarchical variational autoencoders
Univ. Bordeaux(波尔多大学);CNRS(法国国家科学研究中心);Bordeaux INP(波尔多国立综合理工学院);IMB(数学与计算机科学研究所);Ubisoft La Forge(育碧拉福奇工作室);Université Paris Cité(巴黎城市大学);MAP5(数学与应用概率科学研究所)