Abstract
As large language models (LLMs) continue to advance, instruction tuning has become critical for improving their ability to generate accurate and contextually appropriate responses. Although numerous instruction-tuning datasets have been developed to enhance LLM performance, selecting high-quality instruction data from large source datasets typically demands significant human effort. In this work, we introduce IterSelectTune, an efficient, cost-effective iterative training policy for selecting high-quality instruction data with no human involvement and limited reliance on GPT-4. By fine-tuning on approximately 20% of the source data, our method consistently outperforms models fine-tuned on the full dataset across multiple benchmarks and public test datasets. These results highlight the effectiveness of our approach in enhancing LLM performance while reducing the computational resources required for instruction tuning.
Introduction
Instruction tuning is the essential process of fine-tuning Large Language Models (LLMs) to follow specific human commands. While massive datasets have been compiled for this purpose, recent research suggests that data quality is significantly more important than quantity. Training on entire datasets is often redundant, computationally expensive, and can lead to overfitting on "easy" or repetitive data.
Existing automated data selection methods often rely on static metrics that fail to generalize or require expensive API calls to proprietary models like GPT-4 for every data point. IterSelectTune addresses this by automating the selection of high-quality "hard" instruction data. By using an iteratively trained BERT classifier to mimic GPT-4’s quality judgments, the framework achieves superior performance using only a fraction of the original dataset, significantly reducing computational and labeling costs.
Methodology
The core philosophy of IterSelectTune is the "Hardness Hypothesis": the most effective training data consists of "hard" instances—instructions where the base LLM currently struggles to produce a response as good as the ground truth. The framework operates through three primary modules:
- Diversity Module: Employs K-means clustering on instruction embeddings to ensure the selected subset covers a broad range of topics and tasks, preventing the model from narrowing its focus.
- Iterative Classifier: A small BERT-base model is trained to predict whether an instruction is "hard" or "easy." It is updated iteratively; in each round, a small batch of data is labeled by GPT-4 (acting as a proxy for human judgment), and the BERT model learns to replicate those judgments.
- Similarity Module: Prioritizes new instructions that are semantically similar to previously identified "hard" examples, increasing the likelihood of finding challenging data.
The final selection is based on a Data Quality Score, a weighted sum of the classifier's prediction and the similarity score. Once the classifier reaches high alignment with GPT-4 (e.g., 95%), it filters the remaining dataset without further API costs.
Experimental Setup
The authors compiled a source set of 120,000 examples sampled from eight popular datasets, including Alpaca, Evol-Instruct, and Dolly. To evaluate instruction-following capabilities, the models were tested on the Vicuna, LIMA, WizardLM, Koala, and Self-Instruct test sets. General capabilities were further measured using the Huggingface Open LLM Leaderboard (MMLU, ARC, HellaSwag), HumanEval for coding, and MT-Bench for multi-turn dialogue.
Results and Discussion
The 20% Sweet Spot
A key finding of this research is that performance peaks when using approximately 20% of the source data. As shown in the performance trends, adding more data beyond this point (up to 60% or 100%) actually leads to a decline in performance. This suggests that noise or redundancy in large datasets can actively degrade model quality.
Performance Gains and Efficiency
Models fine-tuned on just 20% of the data selected by IterSelectTune consistently outperformed models trained on the full 100% dataset across nearly all benchmarks. In head-to-head comparisons, the 20% model achieved a "Winning Score" peaking at roughly 1.06 (where >1.0 indicates a net win over the full-data baseline). Furthermore, the method demonstrated strong performance even at very low volumes (5-10%), matching or exceeding the results of the original full-sized models.
Small Models as Efficient Proxies
The results validate that a simple BERT model can be trained as a highly effective "gatekeeper" for models 100x its size. This effectively distills GPT-4's complex quality preferences into a fast, local classifier, making high-quality data selection accessible without massive API expenditures.
Conclusion
IterSelectTune provides a robust, automated framework for instruction-tuning data selection that prioritizes quality over quantity. By focusing on "hard" examples and utilizing an iterative training policy, the method reduces data requirements by 80% while simultaneously improving model performance. Future work will explore more curated initial source sets and the application of this framework to frontier-scale models (70B+ parameters).
Summary updated