Self-Evolved Diverse Data Sampling for Efficient Instruction Tuning

Shengguang Wu, Keming Lu, Benfeng Xu, Junyang Lin, Qi Su, Chang ZhouarXiv 2023

Abstract

Enhancing the instruction-following ability of Large Language Models (LLMs) primarily demands substantial instruction-tuning datasets. However, the sheer volume of these imposes a considerable computational burden and annotation cost. To investigate a label-efficient instruction tuning method that allows the model itself to actively sample subsets that are equally or even more effective, we introduce a self-evolving mechanism DiverseEvol. In this process, a model iteratively augments its training subset to refine its own performance, without requiring any intervention from humans or more advanced LLMs. The key to our data sampling technique lies in the enhancement of diversity in the chosen subsets, as the model selects new data points most distinct from any existing ones according to its current embedding space. Extensive experiments across three datasets and benchmarks demonstrate the effectiveness of DiverseEvol. Our models, trained on less than 8% of the original dataset, maintain or improve performance compared with finetuning on full data. We also provide empirical evidence to analyze the importance of diversity in instruction data and the iterative scheme as opposed to one-time sampling.

Introduction

Instruction tuning has become a cornerstone in the development of Large Language Models (LLMs), enabling them to follow complex prompts and align with human preferences. However, the effectiveness of this process typically hinges on the availability of massive, high-quality instruction datasets. This reliance creates two significant bottlenecks for researchers and developers: the immense computational cost of training on tens of thousands of examples and the heavy annotation burden required to curate such data, whether through human labor or expensive API-based distillation from superior models like GPT-4.

To address these challenges, the authors of this paper propose DIVERSEEVOL, a self-evolving data selection method. The core question they explore is whether a model can autonomously identify a tiny, "goldilocks" subset of data that provides the same learning value as the entire original set. By focusing on diversity and iterative refinement, DIVERSEEVOL allows models to match or even exceed full-data performance using a fraction of the resources.

Methodology: The DiverseEvol Framework

DIVERSEEVOL operates on two fundamental pillars: Iterative Selection and Diversity-based Sampling. Unlike traditional active learning methods that often prioritize "uncertain" or "difficult" samples, DIVERSEEVOL focuses on geometric diversity within the model's own embedding space.

The Iterative Loop

The process is not a one-time selection but a multi-stage evolution. The model begins with a small, randomly selected pool of data. After training on this initial set, the model uses its updated internal representations to evaluate the remaining unselected data. It then "evolves" by selecting the next batch of samples that are most distinct from what it has already learned.

K-Center-Sampling and Self-Supervision

The "diversity engine" of DIVERSEEVOL is K-Center-Sampling. The model identifies new data points that are geometrically furthest away from the current training set in its embedding space. Crucially, this is a self-supervised process; the model uses its own internal hidden states to calculate these distances, eliminating the need for an external "teacher" model or human intervention to rank the data.

The iterative self-evolution process of DiverseEvol, showing the transition from training data pools (P) to trained models (M) and the selection of new data (S) based on embedding space distances.

Experimental Setup

The researchers validated DIVERSEEVOL across three major instruction-tuning datasets:

  • Databricks-Dolly-15K: A human-annotated dataset.
  • SelfInstruct-Davinci-52K: Machine-generated data via GPT-3.
  • SelfInstruct-GPT4-52K: High-quality machine-generated data via GPT-4.

Performance was evaluated using three popular benchmarks for chat capabilities: Vicuna-Bench, Koala-Bench, and Wizardlm-Bench. To ensure objective comparison, GPT-4 was employed as a judge to score the models' responses against ChatGPT.

Key Results and Insights

Efficiency and Performance

The results demonstrate remarkable efficiency. Models trained on less than 8% of the Dolly dataset (approximately 700–1,100 samples) actually outperformed models trained on the full 15,000 samples. On the GPT-4 generated dataset, DIVERSEEVOL matched the "Full Data" baseline using only 2% of the total available data.

Relative performance scores across various benchmarks and datasets. DIVERSEEVOL (K-Center) consistently outperforms random and uncertainty-based sampling (Least-Confidence, Margin-Sampling) and often exceeds the full-data baseline.

The Importance of Diversity

A key finding of the study is that "Diversity is King." The authors observed a strong correlation between the Vendi Score (a metric for dataset diversity) and model performance. This suggests that common instruction-tuning sets contain significant redundancy, and the model primarily needs "prototypes" of different instruction types to master the task of instruction following.

Iterative vs. One-Shot Sampling

The feedback loop of training-then-sampling is vital. The authors found that selecting 1,000 diverse samples in ten incremental steps of 100 performs significantly better than selecting 1,000 diverse samples all at once. As the model trains, its embedding space shifts, allowing it to "scout" the data landscape more effectively at each stage of its growth.

Conclusion and Future Work

DIVERSEEVOL presents a powerful, label-efficient path for instruction tuning, proving that a model's own internal representations can be used to curate highly effective training subsets. While the K-Center algorithm may face memory bottlenecks on extremely large web-scale datasets, and the reliance on GPT-4 as a judge remains a standard but biased metric, the core principles of iterative, diversity-based self-evolution offer a promising direction for reducing the costs of LLM development. Future work will likely explore scaling this approach to even larger and noisier data pools to further test the "less is more" hypothesis.

Summary updated

BibTeX
@misc{wu2023self,
  author = {Shengguang Wu and Keming Lu and Benfeng Xu and Junyang Lin and Qi Su and Chang Zhou},
  title = {{Self-Evolved Diverse Data Sampling for Efficient Instruction Tuning}},
  year = {2023},
  eprint = {2311.08182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.08182},
}
Figure