Abstract
Instruction tuning has underscored the significant potential of large language models (LLMs) in producing more human controllable and effective outputs in various domains. In this work, we focus on the data selection problem for task-specific instruction tuning of LLMs. Prevailing methods primarily rely on the crafted similarity metrics to select training data that aligns with the test data distribution. The goal is to minimize instruction tuning loss on the test data, ultimately improving performance on the target task. However, it has been widely observed that instruction tuning loss (i.e., cross-entropy loss for next token prediction) in LLMs often fails to exhibit a monotonic relationship with actual task performance. This misalignment undermines the effectiveness of current data selection methods for task-specific instruction tuning. To address this issue, we introduce ROSE, a novel Reward-Oriented inStruction data sElection method which leverages pairwise preference loss as a reward signal to optimize data selection for task-specific instruction tuning. Specifically, ROSE adapts an influence formulation to approximate the influence of training data points relative to a few-shot preference validation set to select the most task-related training data points. Experimental results show that by selecting just 5% of the training data using ROSE, our approach can achieve competitive results compared to fine-tuning with the full training dataset, and it surpasses other state-of-the-art data selection methods for task-specific instruction tuning. Our qualitative analysis further confirms the robust generalizability of our method across multiple benchmark datasets and diverse model architectures.
Introduction: The Misalignment Problem
Instruction tuning is essential for adapting Large Language Models (LLMs) to specific downstream tasks. However, training on massive, often noisy, datasets is computationally expensive. Existing data selection methods like LESS or DSIR aim to select training data that minimizes the model's cross-entropy loss on a validation set.
A critical observation in this work is the "misalignment" between loss and performance: lower next-token prediction loss does not consistently translate to higher task performance (e.g., win rates). This lack of a monotonic relationship suggests that selecting data based purely on loss minimization is suboptimal for task-specific tuning.
Methodology: Reward-Oriented Selection
ROSE (Reward-Oriented inStruction data sElection) shifts the selection objective from traditional loss minimization to reward maximization.
The framework operates through several key steps:
- Few-Shot Preference Validation: Instead of standard SFT validation data, ROSE utilizes a small set of pairwise preference samples (a "winning" and "losing" response) for the target task.
- Reward Signal: It leverages the Direct Preference Optimization (DPO) loss function as a proxy for reward, measuring how much a training point increases the probability of preferred responses.
- Influence Estimation: ROSE calculates the influence of each training point by taking the inner product between its standard cross-entropy gradient and the preference-based reward gradient of the validation set.
- Efficiency: To handle the high dimensionality of LLM gradients, ROSE employs LoRA for gradient extraction and the TRAK framework to project gradients into a manageable 8192-dimensional space.
Experimental Setup
The study utilized a pool of approximately 270,000 instruction-tuning examples from diverse sources including FLAN V2, CoT, Dolly, and OpenAssistant 1. Evaluation was conducted across three major preference benchmarks: Stanford Human Preference (SHP), Stack Exchange (SE), and Helpfulness & Harmlessness (HH-RLHF).
Key Insights and Results
The primary advantage of ROSE lies in its ability to select data that correlates better with actual task performance metrics.
- The Loss-Performance Gap: Empirical evidence shows that while next-token prediction loss often fluctuates relative to win rates, the pairwise preference loss used by ROSE maintains a strong, consistent correlation.
- Efficiency and Performance: On the SHP benchmark, Llama-2-7B trained on only 5% of ROSE-selected data achieved a 32.0% win rate, significantly outperforming the model trained on the full 100% dataset (22.7%).
- Superiority over SOTA: ROSE consistently outperformed other selection methods such as LESS and RDS across various benchmarks and model architectures (Llama-2, Llama-3.1, Mistral).
- Generalizability: Data selected using a smaller proxy model (e.g., Llama-2-7B) proved highly effective for training larger or different architectures, indicating that ROSE identifies inherently high-quality task-specific data.
Limitations and Future Work
While effective, ROSE's performance is sensitive to the quality of the few-shot preference validation set. Future work will explore larger model scales (70B+) and "meta-learning" techniques to adaptively determine the optimal number of validation examples.
Summary updated