Ensemble-Instruct: Generating Instruction-Tuning Data with a Heterogeneous Mixture of LMs

Young-Suk Lee, Md Arafat Sultan, Yousef El-Kurdi, Tahira Naseem Asim Munawar, Radu Florian +2 more
10/21/2023
cs.CLcs.AI

Official code: IBM/ensemble-instruct (19 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Using in-context learning (ICL) for data generation, techniques such as Self-Instruct (Wang et al., 2023) or the follow-up Alpaca (Taori et al., 2023) can train strong conversational agents with only a small amount of human supervision. One limitation of these approaches is that they resort to very large language models (around 175B parameters) that are also proprietary and non-public. Here we explore the application of such techniques to language models that are much smaller (around 10B--40B parameters) and have permissive licenses. We find the Self-Instruct approach to be less effective at these sizes and propose new ICL methods that draw on two main ideas: (a) Categorization and simplification of the ICL templates to make prompt learning easier for the LM, and (b) Ensembling over multiple LM outputs to help select high-quality synthetic examples. Our algorithm leverages the 175 Self-Instruct seed tasks and employs separate pipelines for instructions that require an input and instructions that do not. Empirical investigations with different LMs show that: (1) Our proposed method yields higher-quality instruction tuning data than Self-Instruct, (2) It improves performances of both vanilla and instruction-tuned LMs by significant margins, and (3) Smaller instruction-tuned LMs generate more useful outputs than their larger un-tuned counterparts. Our codebase is available at https://github.com/IBM/ensemble-instruct.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

codebase release for EMNLP2023 paper publication

192Shell, PythonOct 9, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{lee2023ensembleinstruct,
  title  = {Ensemble-Instruct: Generating Instruction-Tuning Data with a Heterogeneous Mixture of LMs},
  author = {Young-Suk Lee and Md Arafat Sultan and Yousef El-Kurdi and Tahira Naseem Asim Munawar and Radu Florian and Salim Roukos and Ramón Fernandez Astudillo},
  year   = {2023},
  eprint = {2310.13961},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.13961v1}
}

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

Discussion