MoDS: Model-oriented Data Selection for Instruction Tuning

Qianlong Du, Chengqing Zong, Jiajun ZhangarXiv 2023 · DOI

Abstract

MoDS (Model-oriented Data Selection) is a framework designed to optimize instruction tuning for Large Language Models (LLMs) by selecting a small, high-quality, and model-specific subset of data. By focusing on three pillars—Quality, Coverage, and Necessity—the authors demonstrate that a model fine-tuned on just 4,000 curated instructions can outperform models trained on datasets as large as 214,000 samples. This model-oriented approach treats training as personalized tutoring, identifying and filling specific gaps in the model's knowledge.

Introduction

Instruction tuning is the critical process of teaching pre-trained LLMs to follow human directions. While traditional wisdom suggested that larger datasets lead to better performance, recent research indicates that a small amount of high-quality data can be more effective. The primary challenge lies in identifying this "perfect" subset. MoDS addresses this by arguing that data selection should be model-oriented, focusing on what a specific model actually needs to learn rather than selecting data in a vacuum.

The MoDS Methodology

The MoDS approach selects data based on three criteria: Quality, Coverage, and Necessity. The process is executed through a three-step pipeline:

  1. Quality Evaluation: An external reward model (OpenAssistant reward-deberta-v3-large-v2) filters the initial pool, retaining only high-quality instruction-output pairs.
  2. Diverse Data Selection (Seed Instructions): To ensure broad task coverage, the K-Center Greedy algorithm selects a "seed" dataset from the high-quality pool by maximizing the distance between instruction embeddings.
  3. Augmented Data Selection (Necessity Phase): The base LLM is fine-tuned on the seed data to create an "initial LLM." This model then processes the remaining high-quality data. Samples where the model produces poor responses are deemed "necessary" for further learning. A final diverse subset of these necessary samples is selected to fill the model's specific knowledge gaps.
The MoDS pipeline: Quality evaluation, Diverse seed selection, and Augmented necessity-based selection.

Experimental Setup

The researchers evaluated MoDS using LLaMA 2 (7B) as the base model. Two primary data sources were utilized: the Alpaca dataset (52,000 instructions) and a larger Mixture Dataset (214,526 instructions). Performance was measured against five human-curated test sets—Koala, WizardLM, Self-instruct, Vicuna, and LIMA—using GPT-4 as an automated judge.

Key Results and Insights

The experimental results confirm the "less is more" hypothesis in instruction tuning. A model fine-tuned with only 4,000 instructions selected via MoDS consistently outperformed models trained on the full 214,000-sample Mixture Dataset.

Comparison of MoDS (4000) against the full Mixture Dataset (214k) across various test sets.

Key insights include:

  • Personalized Learning: The "Necessity" criterion functions like a tutor, providing targeted exercises for the model's specific weaknesses.
  • Efficiency and Quality: MoDS(2000) outperformed existing methods like IFD, demonstrating that diversity and necessity are more critical than raw volume.
  • Redundancy Reduction: Massive datasets often contain significant redundancy; MoDS effectively identifies the most informative samples, preventing performance degradation from low-quality or repetitive data.

Conclusion and Future Work

MoDS demonstrates that model-oriented selection is a powerful tool for efficient LLM training. However, the authors note limitations, including the computational cost of the "Necessity" inference phase and the dependency on the accuracy of external reward models. Future research will explore how these selection criteria scale to larger models (e.g., 70B+) and how to further reduce the overhead of the selection process.

Summary updated

BibTeX
@misc{du2023mods,
  author = {Qianlong Du and Chengqing Zong and Jiajun Zhang},
  title = {{MoDS: Model-oriented Data Selection for Instruction Tuning}},
  year = {2023},
  eprint = {2311.15653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.15653},
}
Figure