如何在大语言模型对齐中利用示范数据?一种自模仿学习的视角
How to Leverage Demonstration Data in Alignment for Large Language Model? A Self-Imitation Learning Perspective
AI总结:
本文提出广义自模仿学习(GSIL)框架,通过密度比估计的替代目标利用离线示范数据对齐大语言模型,消除对抗训练实现高效微调,在代码、数学推理和指令遵循等基准上显著优于基线。
摘要:
本文提出了一种新颖的广义自模仿学习(GSIL)框架,能有效且高效地利用离线示范数据对齐大语言模型。我们通过推导带有密度比估计的模仿学习替代目标来开发GSIL,促进了自生成数据的使用,并通过简单的分类损失优化模仿学习目标。GSIL消除了标准模仿学习中复杂的对抗训练需求,实现了大语言模型的轻量级高效微调。此外,GSIL包含一族由一般凸函数类参数化以进行密度比估计的离线损失,并为利用示范数据进行对齐提供了统一视角。大量实验表明,GSIL在许多具有挑战性的基准测试中持续显著优于基线,例如代码(HumanEval)、数学推理(GSM8K)和指令遵循基准(MT-Bench)。
英文摘要:
This paper introduces a novel generalized self-imitation learning ($\textbf{GSIL}$) framework, which effectively and efficiently aligns large language models with offline demonstration data. We develop $\textbf{GSIL}$ by deriving a surrogate objective of imitation learning with density ratio estimates, facilitating the use of self-generated data and optimizing the imitation learning objective with simple classification losses. $\textbf{GSIL}$ eliminates the need for complex adversarial training in standard imitation learning, achieving lightweight and efficient fine-tuning for large language models. In addition, $\textbf{GSIL}$ encompasses a family of offline losses parameterized by a general class of convex functions for density ratio estimation and enables a unified view for alignment with demonstration data. Extensive experiments show that $\textbf{GSIL}$ consistently and significantly outperforms baselines in many challenging benchmarks, such as coding (HuamnEval), mathematical reasoning (GSM8K) and instruction-following benchmark (MT-Bench).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。