LIONs: An Empirically Optimized Approach to Align Language Models

Xiao Yu, Qingyang Wu, Yu Li, Zhou Yu
7/9/2024
cs.CL

Official code: Columbia-NLP-Lab/LionAlignment (11 stars, Apache-2.0, last commit 2024-08-06).

Abstract

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}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
111PythonJun 17, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{yu2024lions,
  title  = {LIONs: An Empirically Optimized Approach to Align Language Models},
  author = {Xiao Yu and Qingyang Wu and Yu Li and Zhou Yu},
  year   = {2024},
  eprint = {2407.06542},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.06542v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.06542.svg)](https://codeofpaper.com/paper/2407.06542)

Discussion