Abstract
Instruction-tuned models have significantly improved human-AI interaction, yet they remain heavily dependent on high-quality, human-annotated instruction data. This paper introduces Self-Instruct, a framework that enables large language models (LLMs) to improve their own instruction-following capabilities by bootstrapping from a minimal set of human-written tasks. Using a seed set of just 175 tasks, a vanilla GPT-3 model generated over 52,000 new instructions and 82,000 instances. Empirical results show that models fine-tuned on this synthetic data perform nearly as well as those trained on proprietary human-labeled datasets, offering a scalable and cost-effective solution for model alignment.
Introduction
The success of models like ChatGPT and InstructGPT is largely attributed to instruction tuning, a process that teaches models to follow specific prompts. However, this approach faces two primary bottlenecks: the high cost of human annotation and the limited diversity of human-brainstormed tasks. Human annotators often gravitate toward common NLP tasks, failing to cover the "long-tail" of creative and practical requests users actually make.
Self-Instruct addresses these challenges by allowing the model to generate its own curriculum. By automating the creation of diverse prompts and responses, the framework bypasses the human bottleneck and explores a wider range of task types.
Methodology: The Self-Instruct Pipeline
The core of the framework is a four-step iterative pipeline designed to bootstrap a model using its own generations.
- Instruction Generation: The model is prompted with a mix of human-written and previously generated examples to brainstorm new, distinct instructions.
- Classification Task Identification: The system determines if an instruction requires classification (e.g., sentiment analysis) or is open-ended (e.g., essay writing).
- Instance Generation: To avoid label bias in classification tasks, the model uses an "Output-First" strategy, selecting a label before generating the input. For general tasks, it uses an "Input-First" approach.
- Filtering and Post-processing: To maintain quality and diversity, new tasks are filtered based on ROUGE-L similarity against the existing task pool. Repetitive or low-quality outputs are discarded.
Data Diversity and Scale
The researchers started with a "Seed Set" of 175 human-written tasks. Through the pipeline, they produced the Self-Instruct Dataset, comprising 52,445 instructions and over 82,000 instances.
The model demonstrated a remarkable ability to brainstorm creative tasks, such as writing from a cat's perspective or converting code between formats. Analysis showed that task diversity is a more critical factor for performance than raw volume; performance on user-oriented tasks tended to plateau after approximately 16,000 instructions.
Key Results
The effectiveness of Self-Instruct was evaluated using the Super-NaturalInstructions (Super-NI) benchmark and a new set of 252 user-oriented tasks.
- Performance Gains: Fine-tuning vanilla GPT-3 with Self-Instruct data led to a 33% absolute improvement on the Super-NI benchmark.
- Competitive Alignment: In human evaluations, the Self-Instruct model (GPT3<sub>SELF-INST</sub>) performed nearly on par with InstructGPT-001, trailing by only a 5% performance gap. This is significant given that InstructGPT was trained on expensive, private human labels.
- Superiority over Public Data: The synthetic dataset proved more effective for general instruction following than many popular public academic datasets, such as T0 or the Super-NI training set.
Limitations and Conclusion
While Self-Instruct offers a powerful path toward autonomous model alignment, it has limitations. The process is most effective with very large models (e.g., 175B parameters) that possess the necessary creative capacity. Furthermore, because the model learns from itself, there is a risk of amplifying existing social biases or hallucinations.
In conclusion, Self-Instruct demonstrates that synthetic data can rival human-annotated data for instruction tuning. Future work may involve integrating human-in-the-loop reward models to further refine the quality and safety of self-generated curricula.
Summary updated