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

理解在线与离线对齐算法之间的性能差距

Understanding the performance gap between online and offline alignment algorithms

Google DeepMind(谷歌DeepMind)

Yunhao Tang, Daniel Zhaohan Guo, Zeyu Zheng, Daniele Calandriello, Yuan Cao, Eugene Tarassov, Rémi Munos, Bernardo Ávila Pires, Michal Valko, Yong Cheng, Will Dabney

AI总结:

该研究针对在线与离线大模型对齐算法的性能差距展开,通过消融实验发现数据等因素无法解释差异,明确在线策略采样在AI对齐中的关键作用,指出离线对齐算法的根本性挑战。

摘要:

基于人类反馈的强化学习(Reinforcement learning from human feedback, RLHF)是大语言模型对齐的标准框架。然而,离线对齐算法的日益普及对RLHF中在线策略采样的必要性提出了挑战。在奖励过度优化的背景下,我们首先通过一组初始实验证明了在线方法相较于离线方法的明显优势。这促使我们通过一系列精心设计的消融实验来探究性能差异的成因。我们通过实证表明,离线数据覆盖范围、数据质量本身等假设都无法令人信服地解释这种性能差异。我们还发现,离线算法训练出的策略擅长成对分类,但在生成任务上表现较差;与此同时,在线算法训练出的策略擅长生成任务,但在成对分类上表现较差。这表明判别能力与生成能力之间存在独特的相互作用,而这种相互作用受到采样过程的极大影响。最后,我们观察到这种性能差异在对比损失和非对比损失函数下都存在,而且似乎无法仅通过扩大策略网络规模来解决。综上,我们的研究揭示了在线策略采样在AI对齐中的关键作用,并指出了离线对齐算法存在的一些根本性挑战。

英文摘要:

Reinforcement learning from human feedback (RLHF) is the canonical framework for large language model alignment. However, rising popularity in offline alignment algorithms challenge the need for on-policy sampling in RLHF. Within the context of reward over-optimization, we start with an opening set of experiments that demonstrate the clear advantage of online methods over offline methods. This prompts us to investigate the causes to the performance discrepancy through a series of carefully designed experimental ablations. We show empirically that hypotheses such as offline data coverage and data quality by itself cannot convincingly explain the performance difference. We also find that while offline algorithms train policy to become good at pairwise classification, it is worse at generations; in the meantime the policies trained by online algorithms are good at generations while worse at pairwise classification. This hints at a unique interplay between discriminative and generative capabilities, which is greatly impacted by the sampling process. Lastly, we observe that the performance discrepancy persists for both contrastive and non-contrastive loss functions, and appears not to be addressed by simply scaling up policy networks. Taken together, our study sheds light on the pivotal role of on-policy sampling in AI alignment, and hints at certain fundamental challenges of offline alignment algorithms.

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

↑