Instruction Pre-Training: Language Models are Supervised Multitask Learners

Daixuan Cheng, Yuxian Gu, Shaohan Huang, Junyu Bi, Minlie Huang +1 more
6/20/2024
cs.CL

Official code: microsoft/LMOps (4,440 stars, MIT, last commit 2026-04-30).

Abstract

Unsupervised multitask pre-training has been the critical method behind the recent success of language models (LMs). However, supervised multitask learning still holds significant promise, as scaling it in the post-training stage trends towards better generalization. In this paper, we explore supervised multitask pre-training by proposing Instruction Pre-Training, a framework that scalably augments massive raw corpora with instruction-response pairs to pre-train LMs. The instruction-response pairs are generated by an efficient instruction synthesizer built on open-source models. In our experiments, we synthesize 200M instruction-response pairs covering 40+ task categories to verify the effectiveness of Instruction Pre-Training. In pre-training from scratch, Instruction Pre-Training not only consistently enhances pre-trained base models but also benefits more from further instruction tuning. In continual pre-training, Instruction Pre-Training enables Llama3-8B to be comparable to or even outperform Llama3-70B. Our model, code, and data are available at https://github.com/microsoft/LMOps.

View on arXivView PDF

Code Implementations(1)

microsoft/LMOpsOfficial100%
MIT

General technology for enabling AI capabilities w/ LLMs and MLLMs

4,440377C, C++Dec 13, 20225 months agoMIT
agigptlanguage-modelllmlm+6 more

Cite this paper

@article{cheng2024instruction,
  title  = {Instruction Pre-Training: Language Models are Supervised Multitask Learners},
  author = {Daixuan Cheng and Yuxian Gu and Shaohan Huang and Junyu Bi and Minlie Huang and Furu Wei},
  year   = {2024},
  eprint = {2406.14491},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.14491v2}
}

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

Discussion