Introduction
Instruction tuning is a critical phase in transforming pre-trained large language models (LLMs) into helpful assistants. However, standard instruction datasets like Alpaca or WizardLM often contain significant noise, low-quality responses, and redundancy. Traditional data selection methods typically employ static strategies, selecting a fixed subset before training begins. This approach fails to account for the evolving needs of a model as it learns; what is challenging at the start of training may become trivial later. Furthermore, many high-performing selection methods rely on expensive, proprietary "teacher" models like GPT-4 for scoring, limiting accessibility and scalability.
To address these challenges, we present ITERIT (Iterative Data Selection), a novel framework that enables a model to selectively learn from the most informative data in an iterative fashion. By treating data selection as a dynamic collaboration between the model and the dataset, ITERIT achieves state-of-the-art performance using as little as 5% of the original data.
Methodology: The ITERIT Framework
ITERIT evaluates data quality through two primary dimensions: complexity and diversity. Unlike static methods, ITERIT recalculates these metrics at the start of every training epoch, allowing the selection process to adapt to the model's current state.
Complexity and Diversity Metrics
- Complexity (Instruction-Following Difficulty): ITERIT utilizes Instruction-Following Difficulty (IFD) to measure how much an instruction assists the model in generating a response relative to its internal prior knowledge. By recalculating IFD scores iteratively, the framework identifies samples that remain challenging for the model at its current level of proficiency.
- Diversity (Response-Centric Selection): Rather than focusing solely on instruction diversity, ITERIT prioritizes the diversity of responses. Using a TF-IDF-based approach to identify unique n-grams, the framework employs a "weight decay" strategy. Once a specific piece of information is selected, the value of other samples containing similar information is decreased, effectively reducing redundancy.
To maintain computational efficiency, ITERIT employs a coarse-to-fine strategy. A high-potential "candidate pool" is filtered once, and the fine-grained iterative selection is performed exclusively within this pool.
Experimental Results
The effectiveness of ITERIT was evaluated across various datasets, including Alpaca, Alpaca-GPT4, WizardLM, and CodeAlpaca, using benchmarks such as MMLU, GSM8K, HumanEval, and MixEval.
As shown in the results, ITERIT consistently outperforms both the "Vanilla" approach (training on 100% of the data) and strong baselines like Deita and GraphFilter. On the Alpaca dataset, ITERIT achieved an average score of 58.74 using only 5% of the data, a significant improvement over the Vanilla model's 47.41. The framework also demonstrated strong generalization across different architectures, including LLaMA-3-8B and Qwen-2.5-7B, and showed particular strength in coding tasks, outperforming the Vanilla model on CodeAlpaca by nearly 9 points in HumanEval pass@10.
Key Insights
- Dynamic Data Needs: Analysis reveals that over 55% of the optimal samples for the second epoch were not among the top 5% at the start of training. This confirms that models require different "nutrients" at different stages of development.
- The "Less is More" Principle: Training on a curated 5% subset often yields better results than training on the full, noisy dataset. This supports the superficial alignment hypothesis, suggesting that models primarily need high-quality examples to learn interaction styles rather than new knowledge.
- Response Diversity Matters: By focusing on the diversity of answers rather than just instructions, ITERIT ensures the model learns a broader range of informative attitudes and facts, avoiding the trap of multiple instructions leading to the same generic response.
Conclusion and Future Work
ITERIT demonstrates that iterative, model-aware data selection is a powerful tool for efficient instruction tuning. While the framework introduces a computational overhead by requiring multiple passes for scoring, the gains in model performance and data efficiency are substantial. Future research will explore applying this iterative logic to pre-training and more complex alignment steps like Direct Preference Optimization (DPO), as well as testing the framework on even larger-scale datasets.
Summary updated