arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.01462cs.LGcs.AIcs.CL
收藏

在线数据的重要性:通过覆盖度理解偏好微调

The Importance of Online Data: Understanding Preference Fine-tuning via Coverage

Carnegie Mellon University(卡内基梅隆大学);Aurora Innovation(奥罗拉创新公司);Cornell University(康奈尔大学)

Yuda Song, Gokul Swamy, Aarti Singh, J. Andrew Bagnell, Wen Sun

AI总结:

本研究通过覆盖度理论证明离线对比方法需全局覆盖条件,而在线RL仅需局部覆盖,并据此提出混合偏好优化算法HyPO,兼具性能与效率优势。

摘要:

从人类偏好数据中学习已成为微调大型语言模型(LLMs)的主要范式。两类最常用的技术——在线强化学习(RL),如近端策略优化(PPO),以及离线对比方法,如直接偏好优化(DPO)——在先前工作中被视为等效,因为两者都必须从相同的离线偏好数据集开始。为了进一步扩展我们对偏好微调中在线与离线技术异同的理论理解,我们通过数据集覆盖度的视角进行了严格分析,该概念捕捉训练数据如何覆盖测试分布,并在RL中被广泛使用。我们证明了全局覆盖条件是离线对比方法收敛到最优策略的必要且充分条件,而较弱的局部覆盖条件足以支持在线RL方法。这种分离为在线RL方法为何能优于离线方法提供了一种解释,尤其是在离线偏好数据多样性不足时。最后,受前述理论观察的启发,我们推导出一种混合偏好优化(HyPO)算法,该算法使用离线数据进行基于对比的偏好优化,并使用在线数据进行KL正则化。理论和实验均表明,HyPO比其纯离线对应方法DPO性能更优,同时保持其计算和内存效率。

英文摘要:

Learning from human preference data has emerged as the dominant paradigm for fine-tuning large language models (LLMs). The two most common families of techniques -- online reinforcement learning (RL) such as Proximal Policy Optimization (PPO) and offline contrastive methods such as Direct Preference Optimization (DPO) -- were positioned as equivalent in prior work due to the fact that both have to start from the same offline preference dataset. To further expand our theoretical understanding of the similarities and differences between online and offline techniques for preference fine-tuning, we conduct a rigorous analysis through the lens of dataset coverage, a concept that captures how the training data covers the test distribution and is widely used in RL. We prove that a global coverage condition is both necessary and sufficient for offline contrastive methods to converge to the optimal policy, but a weaker partial coverage condition suffices for online RL methods. This separation provides one explanation of why online RL methods can perform better than offline methods, especially when the offline preference data is not diverse enough. Finally, motivated by our preceding theoretical observations, we derive a hybrid preference optimization (HyPO) algorithm that uses offline data for contrastive-based preference optimization and online data for KL regularization. Theoretically and empirically, we demonstrate that HyPO is more performant than its pure offline counterpart DPO, while still preserving its computation and memory efficiency.

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

↑