Phased Instruction Fine-Tuning for Large Language Models

Wei Pang, Chuan Zhou, Xiao-Hua Zhou, Xiaojie Wang
6/1/2024
cs.CLcs.AI

Official code: xubuvd/PhasedSFT (5 stars, Apache-2.0, last commit 2024-08-20).

Abstract

Instruction Fine-Tuning enhances pre-trained language models from basic next-word prediction to complex instruction-following. However, existing One-off Instruction Fine-Tuning (One-off IFT) method, applied on a diverse instruction, may not effectively boost models' adherence to instructions due to the simultaneous handling of varying instruction complexities. To improve this, Phased Instruction Fine-Tuning (Phased IFT) is proposed, based on the idea that learning to follow instructions is a gradual process. It assesses instruction difficulty using GPT-4, divides the instruction data into subsets of increasing difficulty, and uptrains the model sequentially on these subsets. Experiments with Llama-2 7B/13B/70B, Llama3 8/70B and Mistral-7B models using Alpaca data show that Phased IFT significantly outperforms One-off IFT, supporting the progressive alignment hypothesis and providing a simple and efficient way to enhance large language models. Codes and datasets from our experiments are freely available at https://github.com/xubuvd/PhasedSFT.

View on arXivView PDF

Code Implementations(1)

xubuvd/PhasedSFTOfficial100%
Apache-2.0

The official implementation of Phased Instruction Fine-Tuning for Large Language Models,ACL 2024 Findings

51Shell, PythonMay 30, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{pang2024phased,
  title  = {Phased Instruction Fine-Tuning for Large Language Models},
  author = {Wei Pang and Chuan Zhou and Xiao-Hua Zhou and Xiaojie Wang},
  year   = {2024},
  eprint = {2406.04371},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.04371v2}
}

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/2406.04371.svg)](https://codeofpaper.com/paper/2406.04371)

Discussion