CycleAlign:从黑盒LLM到白盒模型的迭代蒸馏以实现更好的人类对齐
CycleAlign: Iterative Distillation from Black-box LLM to White-box Models for Better Human Alignment
AI总结:
针对RLHF复杂不稳定及单向蒸馏受限的问题,提出CycleAlign框架,通过基于上下文学习的迭代交互将黑盒LLM的对齐能力蒸馏至白盒模型,在低资源下实现了最先进的人类价值观对齐效果。
摘要:
在大规模语料上训练的语言模型经常生成有害、有毒或违背人类偏好的内容,这使得其与人类价值观的对齐成为一个关键问题。基于人类反馈的强化学习(RLHF)结合PPO等算法是对齐的主流方法,但通常复杂、不稳定且资源密集。近期,基于排序的对齐方法兴起,通过用监督微调替代RL框架提供了稳定性和有效性,但由于需要标注数据而成本高昂。考虑到现有的如ChatGPT等大型语言模型(LLMs)已相对较好地对齐且成本友好,研究人员开始基于AI反馈来实现语言模型与人类偏好的对齐。单向地从LLMs中蒸馏指令跟随响应的常见做法,受限于其自身瓶颈。因此,我们引入CycleAlign,以迭代方式将参数不可见的LLMs(黑盒)的对齐能力蒸馏到参数可见的模型(白盒)中。以上下文学习(ICL)为核心,黑盒模型能够在人工设计的指令及其偏好示例的引导下,对模型生成的响应进行排序。在迭代交互期间,白盒模型也会对其自身生成的响应做出判断。因此,一致性排序可被视为伪标签,用于动态更新上下文示例,并提升黑盒模型的偏好排序能力。通过多次交互,CycleAlign框架能够以低资源方式有效地将白盒模型与黑盒模型对齐。实证结果表明,由CycleAlign微调的模型显著超越现有方法,并在与人类价值观对齐方面实现了最先进的性能。
英文摘要:
Language models trained on large-scale corpus often generate content that is harmful, toxic, or contrary to human preferences, making their alignment with human values a critical concern. Reinforcement learning from human feedback (RLHF) with algorithms like PPO is a prevalent approach for alignment but is often complex, unstable, and resource-intensive. Recently, ranking-based alignment methods have emerged, offering stability and effectiveness by replacing the RL framework with supervised fine-tuning, but they are costly due to the need for annotated data. Considering that existing large language models (LLMs) like ChatGPT are already relatively well-aligned and cost-friendly, researchers have begun to align the language model with human preference from AI feedback. The common practices, which unidirectionally distill the instruction-following responses from LLMs, are constrained by their bottleneck. Thus we introduce CycleAlign to distill alignment capabilities from parameter-invisible LLMs (black-box) to a parameter-visible model (white-box) in an iterative manner. With in-context learning (ICL) as the core of the cycle, the black-box models are able to rank the model-generated responses guided by human-craft instruction and demonstrations about their preferences. During iterative interaction, the white-box models also have a judgment about responses generated by them. Consequently, the agreement ranking could be viewed as a pseudo label to dynamically update the in-context demonstrations and improve the preference ranking ability of black-box models. Through multiple interactions, the CycleAlign framework could align the white-box model with the black-box model effectively in a low-resource way. Empirical results illustrate that the model fine-tuned by CycleAlign remarkably exceeds existing methods, and achieves the state-of-the-art performance in alignment with human value.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。