TL;DR
This paper introduces "Step-by-Step Instruction Tuning," a method to improve how well language models generalize to new tasks. By automatically generating detailed, step-by-step instructions for tasks using ChatGPT, they enable models to better understand and execute instructions, leading to significant performance gains on unseen tasks.
What Problem Does This Paper Address?
Large language models (LLMs) have shown impressive capabilities, but a key challenge remains: improving their ability to generalize to new, unseen tasks. Instruction tuning, where models are trained on tasks described by natural language instructions, has been a promising avenue. However, existing instructions are often too general and lack the intermediate steps needed for LLMs to effectively decompose and solve complex tasks. This paper addresses this gap by proposing a method to generate and utilize more detailed, step-by-step instructions to enhance cross-task generalization.
Methods
The core of this work is the generation and application of "step-by-step instructions." The authors leverage ChatGPT to automatically create these instructions. The process involves:
- Prompting ChatGPT: They prompt ChatGPT with the task definition and positive examples to generate a detailed, step-by-step guide for completing the task. This prompt is designed to elicit instructions that are general, easy to follow, and avoid specific examples or dataset iteration.
- Refining Instructions: To address potential issues with ChatGPT's output, they implement a multi-interaction refinement process. This includes ensuring instructions are applicable to single examples, incorporating positive examples to improve ChatGPT's understanding, and iteratively refining the instructions to be general and correct.
- Step-by-Step Instruction Tuning: The generated and refined step-by-step instructions are then combined with the original task definition and positive examples to fine-tune LLMs. This "Step-by-Step Instruction Tuning" aims to imbue models with a better understanding of task execution.
Datasets
The primary dataset used for evaluation is SUP-NATINST (Super-NaturalInstructions), a large benchmark comprising 1616 NLP tasks. This dataset is used to evaluate cross-task generalization on unseen tasks. The authors also mention using the NATINST dataset in their related work discussion.
Key Insights and Ideas
- The Power of Granularity: The core insight is that providing LLMs with explicit, step-by-step instructions, rather than just a high-level task definition, significantly improves their ability to generalize. This is analogous to how humans benefit from detailed guides.
- ChatGPT as a "Meta-Instructor": The paper demonstrates that LLMs like ChatGPT can be effectively used to distill their problem-solving knowledge into actionable instructions for other models.
- Order Matters: The analysis shows that the order of steps in the generated instructions is crucial for correctness. Shuffling steps can lead to performance degradation, highlighting the importance of logical sequencing.
- Refinement is Key: While ChatGPT can generate good instructions, a refinement process is necessary to ensure high quality, correctness, and completeness, especially for practical application.
Key Results
- Improved Generalization: Step-by-Step Instruction Tuning consistently improves the cross-task generalization of T5-LM models across various sizes (Base, Large, 3B, and 11B), outperforming baselines like Tk-INSTRUCT by up to 1.9 ROUGE-L scores.
- ChatGPT Performance: The proposed model (11B) surpasses ChatGPT in performance on the SUP-NATINST evaluation dataset, achieving 61.4 ROUGE-L compared to ChatGPT's 61.2.
- Effectiveness of Step-by-Step Instructions: Incorporating step-by-step instructions during training, inference, or both phases leads to performance improvements.
- Human Evaluation: Human evaluations show substantial agreement among annotators regarding the correctness (0.78 Fleiss's kappa) and completeness (0.73 Fleiss's kappa) of the generated step-by-step instructions.
Limitations and Future Work
- ChatGPT Biases: The authors acknowledge that ChatGPT's biases, tuned for human interaction, might lead to instructions that are not always optimal for LLMs (e.g., suggesting building a deep learning model for a sentiment classification task). Manual refinement is time-consuming.
- Model Size Constraints: The study was limited by available GPU resources, preventing the training of extremely large models.
- Future Work: The authors aim to further enhance the quality of step-by-step instructions, focusing on improving their correctness and completeness, and making them more applicable for instructing language models. They also plan to explore more efficient ways to generate and refine these instructions.
Summary updated