Large-Scale Data Selection for Instruction Tuning

Hamish Ivison, Muru Zhang, Faeze Brahman, Pang Wei Koh, Pradeep Dasigi · DOI

Introduction

As instruction tuning scales to millions of samples, many popular data selection methods—like those based on perplexity or gradient influence—actually perform worse than simple random sampling. This research introduces RDS+, a compute-efficient method using weighted embeddings of hidden states that consistently outperforms both complex algorithms and human-curated datasets at massive scales.

Instruction tuning is the process of fine-tuning a base language model to follow directions and chat with users. Recent research suggests that "less is more"—that a small, high-quality dataset (e.g., 1,000 samples) can outperform a massive, noisy one. However, most data selection research is conducted at a "toy" scale, selecting roughly 10,000 samples from a pool of 200,000. In contrast, state-of-the-art models like Llama 3 or Tulu 3 are trained on hundreds of thousands or millions of samples. This study investigates whether existing data selection methods scale effectively when the data pool grows to millions of examples.

Methods and Efficiency

The authors evaluate several categories of selection methods, including random sampling, loss-based methods (Perplexity, IFD), gradient-based methods (LESS), and embedding-based methods (GTR, NV-Embed).

The proposed method, RDS+ (Representation-based Data Similarity), uses the hidden states of the pretrained model itself. Specifically, it employs a position-weighted mean pool of the last hidden layer, giving more weight to later tokens to account for the causal nature of the transformer. For multi-task selection, a round-robin approach iteratively picks the best sample for each target task to ensure diversity and balance.

RDS+ sits on the Pareto frontier of performance vs. compute cost, outperforming more expensive gradient-based methods like LESS.

RDS+ is significantly more efficient than gradient-based methods. While LESS is too expensive to run on a 5.8M sample pool, RDS+ can index the entire pool in approximately 87 GPU-hours while providing superior results.

Experimental Setup

The study utilizes massive, unfiltered versions of popular instruction-tuning collections:

  • TÜLU 2 Unfiltered: ~5.8 million samples.
  • TÜLU 3 Unfiltered: ~4.8 million samples.

Performance is evaluated across seven benchmarks: MMLU (general knowledge), GSM8k (math), BBH (reasoning), TydiQA (multilingual), Codex (code), SQuAD (reading comprehension), and AlpacaEval (chat).

Key Results

The Scaling Failure

A critical finding is that many sophisticated methods, such as IFD and Top-PPL, see a decline in performance as the data pool size increases. These methods often over-select for specific biases at the expense of general reasoning. In many large-scale scenarios, simple random sampling remains a difficult baseline to beat, highlighting the importance of data diversity.

RDS+ Performance

RDS+ consistently outperforms other methods across different pool sizes and selection targets. When selecting 10k points from the 5.8M pool, RDS+ achieved an average score of 50.5, significantly higher than the 41.1 achieved by balanced random selection.

Detailed benchmark results for selecting 10k datapoints from both a 200k pool and the full 5.8M pool.

Multi-Task Scaling and Transfer

In a massive experiment selecting 326k samples, RDS+ achieved an average of 50.9, surpassing the human-curated TÜLU 2 mixture (49.5). Furthermore, the authors demonstrated cross-model transfer: using a smaller model (e.g., Llama-2-7B) to select data for a larger model (e.g., Llama-3.1-8B) still yields excellent results.

Conclusion and Limitations

RDS+ offers a promising, scalable path for data selection in instruction tuning. However, challenges remain. Even with its efficiency, RDS+ requires a forward pass over every example, which is prohibitively expensive for datasets in the trillions of tokens. Additionally, the study relies on existing open-source collections; it remains to be seen if these results hold for completely unfiltered web crawls. Finally, automated selection might inadvertently upweight toxic content if not explicitly filtered for safety.

In summary, this work demonstrates that data selection methods must be evaluated at scale to be relevant for modern LLM training, and RDS+ provides a robust solution for this challenge.

Summary updated

BibTeX
@misc{ivison2025large,
  author = {Hamish Ivison and Muru Zhang and Faeze Brahman and Pang Wei Koh and Pradeep Dasigi},
  title = {{Large-Scale Data Selection for Instruction Tuning}},
  year = {2025},
  eprint = {2503.01807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01807},
}
Figure