Abstract
Selecting high-quality and diverse training samples from extensive datasets plays a crucial role in reducing training overhead and enhancing the performance of Large Language Models (LLMs). However, existing studies fall short in assessing the overall value of selected data, focusing primarily on individual quality, and struggle to strike an effective balance between ensuring diversity and minimizing data point traversals. Therefore, this paper introduces a novel choice-based sample selection framework that shifts the focus from evaluating individual sample quality to comparing the contribution value of different samples when incorporated into the subset. Thanks to the advanced language understanding capabilities of LLMs, we utilize LLMs to evaluate the value of each option during the selection process. Furthermore, we design a greedy sampling process where samples are incrementally added to the subset, thereby improving efficiency by eliminating the need for exhaustive traversal of the entire dataset with the limited budget. Extensive experiments demonstrate that selected data from our method not only surpasses the performance of the full dataset but also achieves competitive results with recent powerful studies, while requiring fewer selections. Moreover, we validate our approach on a larger medical dataset, highlighting its practical applicability in real-world applications.
Introduction
Supervised Fine-Tuning (SFT) is a critical stage where pre-trained LLMs are aligned with human instructions. However, SFT is computationally expensive, and research increasingly shows that "more data" is not necessarily "better data." Low-quality or redundant samples can actually degrade model performance.
Existing data selection methods typically rely on pointwise scoring, evaluating each sample in isolation to assign a quality score based on metrics like perplexity or LLM-generated ratings. This approach suffers from two major flaws: it ignores the contextual relationship between a new sample and the existing subset (making diversity hard to ensure), and it requires traversing the entire dataset ($N$ samples) to find the top $K$ samples, creating a massive efficiency bottleneck as datasets scale.
Methodology: The Add-One-In Framework
To address these limitations, we propose Add-One-In, a greedy selection paradigm inspired by the game-theoretic concept of Shapley values. Instead of scoring samples individually, the framework uses an iterative, choice-based loop.
The process follows these steps:
- Initialization: Start with a small, random subset of data ($A$).
- Candidate Sampling: In each step, randomly sample a small "window" of the current subset ($A'$) and a small "window" of candidates from the remaining pool ($B'$).
- LLM-as-a-Judge: An LLM (the "Selector") is presented with both $A'$ and $B'$. It is tasked with choosing which sample from $B'$ provides the highest marginal contribution to the subset in terms of both quality and diversity.
- Incremental Growth: The chosen sample is added to $A$, and the process repeats until the desired budget $K$ is reached.
This approach shifts computational complexity from $O(N)$ to $O(K)$, proportional only to the size of the final subset. By leveraging "listwise" comparison, the method exploits the LLM's superior ability to rank and compare rather than provide absolute, often compressed, scores.
Experimental Setup
We evaluated the method across two primary domains:
- General Instruction Tuning: Using the Alpaca dataset (52K samples), we evaluated performance on four popular test sets: Vicuna, Koala, WizardLM, and Self-instruct.
- Medical Domain: To test real-world applicability, we utilized the HuatuoGPT-sft-data-v1 (226K Chinese medical QA pairs) and evaluated on the Chinese Medical Benchmark (CMB).
- General Reasoning: Models were also tested on standard benchmarks like MMLU, BBH, and Hellaswag to ensure general capabilities remained intact.
Key Results and Insights
Our experiments yielded several critical findings regarding data efficiency and model performance:
- The "Less is More" Phenomenon: We found that using just 15% of the Alpaca dataset selected via Add-One-In resulted in peak performance, significantly outperforming the model trained on 100% of the data.
- Superior Win Rates: Using Qwen2.5-72B as a selector, the method achieved an average win score of 1.257 against the full dataset at the 15% usage mark.
- Efficiency Gains: Selecting the top 10% of the Alpaca dataset took approximately 118 minutes with Add-One-In, compared to 2,466 minutes for AlpaGasus—a ~20x speedup.
Conclusion and Future Work
The Add-One-In framework demonstrates that comparative, incremental selection is both more effective and more efficient than traditional pointwise scoring. By treating diversity as a set property and leveraging the comparative strengths of LLMs, we can achieve superior alignment with a fraction of the data.
Future work will address current limitations, such as the inherent biases of the "Selector" LLM and the sensitivity of the selection process to prompt design. Additionally, we aim to extend this greedy paradigm to online/sequential data settings where datasets grow continuously.
Summary updated