Table of Contents
Fetching ...

The Best Instruction-Tuning Data are Those That Fit

Dylan Zhang, Qirun Dai, Hao Peng

TL;DR

GRAPE proposes a data-centric approach to instruction tuning that selects per-instruction responses most aligned with a target model's pre-trained distribution, rather than simply increasing data size. By scoring candidate responses with the base model's own probability and choosing in-distribution examples, GRAPE achieves data-efficient SFT that preserves pre-training knowledge while mitigating distribution shift. Empirical results on UltraInteract-SFT and real post-training datasets (Tulu-3, Olmo-2, OpenHermes) show consistent performance gains over baselines, including far larger data baselines and state-of-the-art data selection methods. The work highlights that distribution-aligned, model-specific data selection can yield substantial improvements with reduced computational overhead, challenging the notion that more synthetic data always yields better fine-tuning outcomes.

Abstract

High-quality supervised fine-tuning (SFT) data are crucial for eliciting strong capabilities from pretrained large language models (LLMs). Typically, instructions are paired with multiple responses sampled from other LLMs, which are often out of the distribution of the target model to be fine-tuned. This, at scale, can lead to diminishing returns and even hurt the models' performance and robustness. We propose **GRAPE**, a novel SFT framework that accounts for the unique characteristics of the target model. For each instruction, it gathers responses from various LLMs and selects the one with the highest probability measured by the target model, indicating that it aligns most closely with the target model's pretrained distribution; it then proceeds with standard SFT training. We first evaluate GRAPE with a controlled experiment, where we sample various solutions for each question in UltraInteract from multiple models and fine-tune commonly used LMs like LLaMA3.1-8B, Mistral-7B, and Qwen2.5-7B on GRAPE-selected data. GRAPE significantly outperforms strong baselines, including distilling from the strongest model with an absolute gain of up to 13.8%, averaged across benchmarks, and training on 3x more data with a maximum performance improvement of 17.3%. GRAPE's strong performance generalizes to realistic settings. We experiment with the post-training data used for Tulu3 and Olmo-2. GRAPE outperforms strong baselines trained on 4.5 times more data by 6.1% and a state-of-the-art data selection approach by 3% on average performance. Remarkably, using 1/3 of the data and half the number of epochs, GRAPE enables LLaMA3.1-8B to surpass the performance of Tulu3-SFT by 3.5%.

The Best Instruction-Tuning Data are Those That Fit

TL;DR

GRAPE proposes a data-centric approach to instruction tuning that selects per-instruction responses most aligned with a target model's pre-trained distribution, rather than simply increasing data size. By scoring candidate responses with the base model's own probability and choosing in-distribution examples, GRAPE achieves data-efficient SFT that preserves pre-training knowledge while mitigating distribution shift. Empirical results on UltraInteract-SFT and real post-training datasets (Tulu-3, Olmo-2, OpenHermes) show consistent performance gains over baselines, including far larger data baselines and state-of-the-art data selection methods. The work highlights that distribution-aligned, model-specific data selection can yield substantial improvements with reduced computational overhead, challenging the notion that more synthetic data always yields better fine-tuning outcomes.

Abstract

High-quality supervised fine-tuning (SFT) data are crucial for eliciting strong capabilities from pretrained large language models (LLMs). Typically, instructions are paired with multiple responses sampled from other LLMs, which are often out of the distribution of the target model to be fine-tuned. This, at scale, can lead to diminishing returns and even hurt the models' performance and robustness. We propose **GRAPE**, a novel SFT framework that accounts for the unique characteristics of the target model. For each instruction, it gathers responses from various LLMs and selects the one with the highest probability measured by the target model, indicating that it aligns most closely with the target model's pretrained distribution; it then proceeds with standard SFT training. We first evaluate GRAPE with a controlled experiment, where we sample various solutions for each question in UltraInteract from multiple models and fine-tune commonly used LMs like LLaMA3.1-8B, Mistral-7B, and Qwen2.5-7B on GRAPE-selected data. GRAPE significantly outperforms strong baselines, including distilling from the strongest model with an absolute gain of up to 13.8%, averaged across benchmarks, and training on 3x more data with a maximum performance improvement of 17.3%. GRAPE's strong performance generalizes to realistic settings. We experiment with the post-training data used for Tulu3 and Olmo-2. GRAPE outperforms strong baselines trained on 4.5 times more data by 6.1% and a state-of-the-art data selection approach by 3% on average performance. Remarkably, using 1/3 of the data and half the number of epochs, GRAPE enables LLaMA3.1-8B to surpass the performance of Tulu3-SFT by 3.5%.

Paper Structure

This paper contains 34 sections, 3 figures, 10 tables.

Figures (3)

  • Figure 1: An overview of GRAPE. GRAPE takes multiple off-the-shelf existing datasets and optionally generates new responses, finds overlapping instructions with multiple different responses and selects responses that align with the base model's distribution. This dataset is then used for standard supervised fine-tuning.
  • Figure 2: The training loss curve of Llama3.1-8B on Tulu-3-Olmo-2 combo. Best stands for training with highest-probability responses (GRAPE-selected); Random stands for randomly chosen responses for each instruction in the pool, Worst stands for lowest probability responses in the base model's distribution. Throughout training, Best has lower loss than Random than Worst.
  • Figure 3: The average performance curve of Llama3.1-8B on Tulu-3-Olmo-2 combo. Best stands for training with highest-likelihood responses (GRAPE-selected); Random stands for randomly chosen responses for each instruction in the pool. The average is taken over all items on table \ref{['tab:olmo-tulu']} except AlpacaEval2.