基于人类反馈的强化学习(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.
Department of Mechanical Engineering, Iowa State University(伊阿华州立大学机械工程系);Department of Computer Science, Iowa State University(伊阿华州立大学计算机科学系);Department of Industrial and Manufacturing Systems Engineering, Iowa State University(伊阿华州立大学工业与制造系统工程系);Translational AI Center, Iowa State University(伊阿华州立大学转化人工智能中心)
Ensemble Successor Representations for Task Generalization in Offline-to-Online Reinforcement Learning
Harbin Institute of Technology(哈尔滨工业大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Northwestern Polytechnical University(西北工业大学);Shenzhen Research Institute of Northwestern Polytechnical University(西北工业大学深圳研究院)
Sim2O: Efficient Offline-to-Online MARL via Joint Action Composition
Department of Computer Science and Engineering, Washington University in St. Louis(圣路易斯华盛顿大学计算机科学与工程系);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences, Beijing, China(中国科学院自动化研究所复杂系统认知与决策智能重点实验室)
Active Advantage-Aligned Online Reinforcement Learning with Offline Data
Department of Computer Science, University of Chicago(计算机科学系,芝加哥大学);Department of Statistics and Data Science, Yale University(统计与数据科学系,耶鲁大学);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)
Online Pre-Training for Offline-to-Online Reinforcement Learning
LG AI Research, Seoul, Republic of Korea.(LG人工智能研究所在韩国首尔);School of Electrical Engineering, KAIST, Daejeon, Republic of Korea(韩国成均馆大学电气工程学院);Department of XXX, University of YYY, Location, Country(YYY大学XXX系);School of ZZZ, Institute of WWW, Location, Country(WWW研究所ZZZ学院)
A Perspective of Q-value Estimation on Offline-to-Online Reinforcement Learning
The University of Sydney(悉尼大学);SenseTime Computer Vision Group(商汤科技计算机视觉组);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);CUHK MMLab(香港中文大学多媒体实验室);Institute for AI, Peking University(北京大学人工智能研究院)
A Simple Unified Uncertainty-Guided Framework for Offline-to-Online Reinforcement Learning
School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Engineering Research Center of Knowledge-Driven Human-Machine Intelligence, MOE(知识驱动的人机智能工程研究中心,教育部);International Center of Future Science, Jilin University(未来科学国际中心,吉林大学);JPMorgan AI Research(摩根大通AI研究);Northwestern Polytechnical University(西北工业大学);Lehigh University(莱斯大学)
When to Trust Your Simulator: Dynamics-Aware Hybrid Offline-and-Online Reinforcement Learning
Tsinghua University(清华大学);Indian Institute of Technology(印度理工学院);Shanghai Jiaotong University(上海交通大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Shanghai AI Laboratory(上海人工智能实验室)
Towards Robust Offline-to-Online Reinforcement Learning via Uncertainty and Smoothness
Northwestern Polytechnical University(西北工业大学);Harbin Institute of Technology(哈尔滨工业大学);The Hong Kong University of Science and Technology(香港科技大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shenzhen Research Institute of Northwestern Polytechnical University(西北工业大学深圳研究院)
Augmenting Online RL with Offline Data is All You Need: A Unified Hybrid RL Algorithm Design and Analysis
Electrical Engineering Dept. The Pennsylvania State University State College, Pennsylvania, USA(电气工程系宾夕法尼亚州立大学);Electrical and Computer Engineering Dept. University of Virginia Charlottesville, Virginia, USA(电气与计算机工程系弗吉尼亚大学)
Efficient and Uncertainty-Aware Diffusion Framework for Offline-to-Online Reinforcement Learning
Department of Computer Science, Johns Hopkins University, Baltimore, MD, U.S.A.(约翰霍普金斯大学计算机科学系);AMLab, University of Amsterdam, Amsterdam, Netherlands(阿姆斯特丹大学AM实验室)