NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-Instruct: Aligning Language Models with Self-Generated Instructions

Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, Hannaneh Hajishirzi

Abstract

Instruction tuning is critical for aligning large language models (LLMs) with human intent, yet it relies heavily on expensive, human-annotated data. We present SELF-INSTRUCT, a framework that enables LLMs to improve their own instruction-following capabilities by bootstrapping from a small seed of human-written tasks. By generating a massive synthetic dataset of approximately 52,000 instructions, we demonstrate that a vanilla GPT-3 model can achieve a 33% performance boost, nearly matching models trained on proprietary human data.

Introduction

The efficacy of modern LLMs often stems from "instruction tuning"—the process of fine-tuning a base model on a diverse set of prompts and responses. However, the reliance on high-quality human data creates a significant bottleneck. Human annotation is slow, costly, and often lacks the creative breadth found in organic user queries. SELF-INSTRUCT addresses this by asking whether a model can leverage its own pre-trained knowledge to teach itself how to follow instructions, effectively bypassing the need for extensive human intervention.

Methodology: The SELF-INSTRUCT Pipeline

The SELF-INSTRUCT framework is a semi-automated pipeline that "bootstraps" a model using a minimal seed set of 175 human-written tasks. The process consists of four iterative stages:

  1. Instruction Generation: The model generates new instructions based on examples from the seed set.
  2. Classification Task Identification: The model categorizes instructions to determine if they require specific formatting (e.g., classification vs. generation).
  3. Instance Generation: For most tasks, an "Input-First" approach is used. For classification tasks, an "Output-First" approach prevents label bias by generating labels before inputs.
  4. Filtering and Post-processing: Heuristics like ROUGE-L similarity are applied to ensure dataset diversity and remove low-quality or unsupported content.
The SELF-INSTRUCT pipeline: from seed tasks to a filtered task pool via iterative generation and classification.

Data and Evaluation

The pipeline successfully expanded the 175 seed tasks into a dataset of roughly 52,000 instructions and 82,000 instances. These tasks cover a wide range of domains, from technical coding to creative writing.

Examples of generated instructions, inputs, and outputs across various domains like coding, creative writing, and data lookup.

To evaluate the effectiveness of this synthetic data, the authors tested the fine-tuned model on the SUPER-NATURALINSTRUCTIONS (SuperNI) benchmark and a new, expert-curated set of 252 user-oriented tasks.

Key Results and Insights

The application of SELF-INSTRUCT to a vanilla GPT-3 model yielded a 33% absolute improvement on the SuperNI benchmark. On user-oriented tasks, the model significantly outperformed other publicly available instruction-tuned models like T0 or Alpaca, closing the performance gap with InstructGPT-001 to within 5%.

A critical insight from this work is that synthetic data quality does not need to be perfect to be effective. Despite only 54% of generated instances being entirely correct, the sheer scale and diversity of the data provided enough signal for the model to learn the underlying format of instruction following. This suggests that the base model already possesses the necessary latent knowledge; SELF-INSTRUCT simply provides the bridge to unlock it.

Limitations and Conclusion

While powerful, SELF-INSTRUCT faces challenges with "long-tail" tasks—complex or rare instructions that the model has seldom encountered. Furthermore, the method is highly dependent on model size, as smaller models often lack the internal knowledge required for high-quality self-generation. There is also a risk of amplifying pre-existing social biases. Future research may focus on "human-in-the-loop" systems where annotators rank or correct self-generated data rather than writing it from scratch, further optimizing the path toward autonomous model alignment.

Summary updated

BibTeX
@inproceedings{wang2023self,
  author = {Yizhong Wang and Yeganeh Kordi and Swaroop Mishra and Alisa Liu and Noah A. Smith and Daniel Khashabi and Hannaneh Hajishirzi},
  title = {{Self-Instruct: Aligning Language Models with Self-Generated Instructions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.754},
}
Figure