REInstruct: Building Instruction Data from Unlabeled Corpus

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Shu, Guan, Xinyan, Lu, Yaojie, Lin, Hongyu, Han, Xianpei, Sun, Le
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909291652317184
author Chen, Shu
Guan, Xinyan
Lu, Yaojie
Lin, Hongyu
Han, Xianpei
Sun, Le
author_facet Chen, Shu
Guan, Xinyan
Lu, Yaojie
Lin, Hongyu
Han, Xianpei
Sun, Le
contents Manually annotating instruction data for large language models is difficult, costly, and hard to scale. Meanwhile, current automatic annotation methods typically rely on distilling synthetic data from proprietary LLMs, which not only limits the upper bound of the quality of the instruction data but also raises potential copyright issues. In this paper, we propose REInstruct, a simple and scalable method to automatically build instruction data from an unlabeled corpus without heavy reliance on proprietary LLMs and human annotation. Specifically, REInstruct first selects a subset of unlabeled texts that potentially contain well-structured helpful and insightful content and then generates instructions for these texts. To generate accurate and relevant responses for effective and robust training, REInstruct further proposes a rewriting-based approach to improve the quality of the generated instruction data. By training Llama-7b on a combination of 3k seed data and 32k synthetic data from REInstruct, fine-tuned model achieves a 65.41\% win rate on AlpacaEval leaderboard against text-davinci-003, outperforming other open-source, non-distilled instruction data construction methods. The code is publicly available at \url{https://github.com/cs32963/REInstruct}.
format Preprint
id arxiv_https___arxiv_org_abs_2408_10663
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle REInstruct: Building Instruction Data from Unlabeled Corpus
Chen, Shu
Guan, Xinyan
Lu, Yaojie
Lin, Hongyu
Han, Xianpei
Sun, Le
Computation and Language
Manually annotating instruction data for large language models is difficult, costly, and hard to scale. Meanwhile, current automatic annotation methods typically rely on distilling synthetic data from proprietary LLMs, which not only limits the upper bound of the quality of the instruction data but also raises potential copyright issues. In this paper, we propose REInstruct, a simple and scalable method to automatically build instruction data from an unlabeled corpus without heavy reliance on proprietary LLMs and human annotation. Specifically, REInstruct first selects a subset of unlabeled texts that potentially contain well-structured helpful and insightful content and then generates instructions for these texts. To generate accurate and relevant responses for effective and robust training, REInstruct further proposes a rewriting-based approach to improve the quality of the generated instruction data. By training Llama-7b on a combination of 3k seed data and 32k synthetic data from REInstruct, fine-tuned model achieves a 65.41\% win rate on AlpacaEval leaderboard against text-davinci-003, outperforming other open-source, non-distilled instruction data construction methods. The code is publicly available at \url{https://github.com/cs32963/REInstruct}.
title REInstruct: Building Instruction Data from Unlabeled Corpus
topic Computation and Language
url https://arxiv.org/abs/2408.10663