LIONs:一种经验优化的语言模型对齐方法
LIONs: An Empirically Optimized Approach to Align Language Models
AI总结:
本文通过系统分析三阶段对齐训练流程中的关键设计选择,提出LIONs方法,并在Gemma-2b和LLama-3-8b上训练出超越官方指令模型的性能。
摘要:
对齐是增强语言模型指令遵循能力和对话能力的关键步骤。尽管近期许多工作提出了新的算法、数据集和训练流程,但缺乏对整个训练过程中各种设计选择影响的全面研究。我们首先对由监督微调、离线偏好学习和在线偏好学习组成的三阶段训练流程进行了严格分析。我们发现,使用序列打包、SFT中的损失掩码、增大DPO中的偏好数据集规模以及在线DPO训练等技术,可以显著提升语言模型的性能。随后,我们从Gemma-2b-base和LLama-3-8b-base开始训练,发现我们最好的模型超过了使用闭源数据和算法调优的官方指令模型。我们的代码和模型可在\url{https://github.com/Columbia-NLP-Lab/LionAlignment}获取。
英文摘要:
Alignment is a crucial step to enhance the instruction-following and conversational abilities of language models. Despite many recent work proposing new algorithms, datasets, and training pipelines, there is a lack of comprehensive studies measuring the impact of various design choices throughout the whole training process. We first conduct a rigorous analysis over a three-stage training pipeline consisting of supervised fine-tuning, offline preference learning, and online preference learning. We have found that using techniques like sequence packing, loss masking in SFT, increasing the preference dataset size in DPO, and online DPO training can significantly improve the performance of language models. We then train from Gemma-2b-base and LLama-3-8b-base, and find that our best models exceed the performance of the official instruct models tuned with closed-source data and algorithms. Our code and models can be found at \url{https://github.com/Columbia-NLP-Lab/LionAlignment}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。