Instruction Matters: A Simple yet Effective Task Selection for Optimized Instruction Tuning of Specific Tasks

Changho Lee, Janghoon Han, Seonghyeon Ye, Stanley Jungkyu Choi, Honglak Lee, Kyunghoon Bae

Abstract

Instruction tuning has been proven effective in enhancing zero-shot generalization across various tasks and in improving the performance of specific tasks. For task-specific improvements, strategically selecting and training on related tasks that provide meaningful supervision is crucial, as this approach enhances efficiency and prevents performance degradation from learning irrelevant tasks. In this light, we introduce a simple yet effective task selection method that leverages instruction information alone to identify relevant tasks, optimizing instruction tuning for specific tasks. Our method is significantly more efficient than traditional approaches, which require complex measurements of pairwise transferability between tasks or the creation of data samples for the target task. Additionally, by aligning the model with the unique instructional template style of the meta-dataset, we enhance its ability to granularly discern relevant tasks, leading to improved overall performance. Experimental results demonstrate that training on a small set of tasks, chosen solely based on the instructions, results in substantial improvements in performance on benchmarks such as P3, Big-Bench, NIV2, and Big-Bench Hard. Significantly, these improvements surpass those achieved by prior task selection methods, highlighting the superiority of our approach.

Introduction

Instruction tuning—the process of fine-tuning large language models (LLMs) on a diverse collection of tasks described by natural language—is a cornerstone of modern zero-shot capabilities. However, recent research indicates that simply increasing the volume of training data does not always yield better results. Irrelevant or contradictory tasks can lead to "negative transfer," where performance on a specific target task actually degrades as more data is added.

Existing methods for selecting helpful tasks are often impractical. Pairwise transfer methods require training and testing on every possible task pair, which is computationally prohibitive. Sample-based selection requires actual input/output pairs from the target task, which is often unavailable in zero-shot scenarios. This paper introduces INSTA (Instruction-based Task selector), a method that identifies optimal training tasks using only the semantic information within instruction text.

Methodology

The core premise of INSTA is that natural language instructions (e.g., "Summarize this text") contain sufficient information to determine task relevance. The methodology follows three primary steps:

  1. Instruction Embedding: Instructions are converted into vector representations using a Sentence Transformer.
  2. Alignment: To account for dataset-specific "styles" (such as unique placeholders in P3), the selector model is fine-tuned using a contrastive objective. This pulls instructions from the same task closer in vector space while pushing those from different clusters apart.
  3. Top-k Selection: For any new target task, the model calculates the cosine similarity between its instruction and the training pool, selecting the top-$k$ most similar tasks for fine-tuning.

Experimental Evaluation

The effectiveness of INSTA was evaluated across several major benchmarks, including the Public Pool of Prompts (P3), SuperNaturalInstructions V2 (NIV2), BIG-Bench, and BIG-Bench Hard (BBH).

Key Findings

  • Efficiency: INSTA is approximately 32 times faster than sample-based methods and significantly more efficient than pairwise transfer approaches because it bypasses the need for data instance analysis.
  • The "Less is More" Principle: In NIV2 experiments, training on just 70 carefully selected tasks outperformed training on the entire set of 756 tasks. This confirms that pruning irrelevant data is vital for performance.
  • Instructional Dialects: Fine-tuning the selector to understand the specific "instructional dialect" of a meta-dataset is crucial for high-precision task selection.

Results

INSTA consistently outperformed state-of-the-art baselines across all tested benchmarks. On the P3 benchmark, a T5-3B model tuned with INSTA-selected tasks showed a 5.94% average performance increase over the standard T0-3B model. On the challenging BIG-Bench Hard suite, the average score improved from 30.52 to 36.61.

Performance comparison across various task categories in NIV2, showing the effectiveness of INSTA-based selection over the baseline.

As shown in the figure above, the INSTA-aligned model (blue) consistently outperforms the baseline (red) across a wide variety of task categories, including Answerability Classification, Coreference Resolution, and Textual Entailment. The final "Average" chart highlights the overall performance gain achieved by the proposed method.

Conclusion and Future Work

This research demonstrates that instruction text alone is a powerful proxy for task similarity. By leveraging this, INSTA provides a highly efficient and effective way to optimize instruction tuning. Future work will explore the scalability of this method to larger models (11B+ parameters) and its applicability to decoder-only architectures like LLaMA. Additionally, investigating the use of LLMs to refine or paraphrase instructions could further enhance the selector's accuracy.

Summary updated

BibTeX
@inproceedings{lee2024instruction,
  author = {Changho Lee and Janghoon Han and Seonghyeon Ye and Stanley Jungkyu Choi and Honglak Lee and Kyunghoon Bae},
  title = {{Instruction Matters: A Simple yet Effective Task Selection for Optimized Instruction Tuning of Specific Tasks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=DHW13j6gwR},
}
Figure