Add-One-In: Incremental Sample Selection for Large Language Models via a Choice-Based Greedy Paradigm

Zhuo Li, Yuhao Du, Xiaoqi Jiao, Yiwen Guo, Yuege Feng, Xiang Wan, Anningzhe Gao, Jinpeng HuarXiv 2025 · DOI

Abstract

Training Large Language Models (LLMs) on massive datasets is computationally expensive and often involves significant data redundancy. We introduce Add-One-In, a novel choice-based greedy selection framework that incrementally constructs high-quality training subsets. By utilizing an LLM to evaluate the marginal gain of candidates in terms of both quality and diversity, our method identifies optimal samples more effectively than traditional pointwise scoring. Experimental results demonstrate that models trained on as little as 15% of a dataset can outperform those trained on the full 100%, while achieving up to a 20x speedup in the selection process.

Introduction

Supervised Fine-Tuning (SFT) is critical for aligning pre-trained LLMs with human instructions. However, the common practice of using entire datasets is inefficient due to low-quality or repetitive examples. Existing data selection methods typically rely on pointwise scoring, which evaluates samples in isolation. This approach suffers from three primary limitations:

  1. Lack of Differentiation: Many samples receive identical scores, complicating the selection of the truly "best" data.
  2. Diversity Blindness: Pointwise scoring ignores inter-sample relationships, leading to the selection of redundant high-scoring examples.
  3. Computational Inefficiency: Most methods require scoring the entire dataset ($N$) before selecting the top $K$ samples, which is prohibitively slow for massive datasets.

The Add-One-In Framework

To address these issues, we propose a Choice-Based Greedy Paradigm. Instead of absolute scoring, selection is treated as a series of comparative choices.

Comparison of traditional pointwise scoring vs. the proposed Add-One-In choice-based greedy selection.

Methodology

  • Incremental Greedy Selection: The process begins with a small random subset. In each iteration, the algorithm evaluates a pool of candidates and selects the one that offers the highest marginal contribution to the existing set.
  • LLM-as-Judge: Advanced LLMs (e.g., GPT-4o, Qwen2.5) act as selectors. They are prompted to justify their choices based on both the intrinsic quality of a sample and its ability to improve the diversity of the current collection.
  • Windowed Sampling: To manage context window constraints and reduce costs, the evaluator considers a fixed-size "window" (e.g., 20 samples) of the already-selected data and the candidate pool, effectively approximating the global distribution.
  • Efficiency: By stopping once the target subset size $K$ is reached, the complexity shifts from $O(N)$ to $O(K)$, making it significantly faster for large-scale data.

Experimental Results

We evaluated Add-One-In on the Alpaca (52K) and HuatuoGPT (226K) datasets across various benchmarks, including Vicuna, Koala, and MMLU.

Performance and Efficiency

Our findings confirm that "less is more" in SFT. On the Alpaca dataset, a model trained on just 9,000 samples (17%) selected by Add-One-In outperformed the model trained on the full 52,000 samples. As shown in the figure below, the win score against the full dataset typically peaks around the 15% mark.

Win scores of Add-One-In vs. the full dataset across different data percentages, showing a peak at 15%.

Key highlights include:

  • Beating SOTA: Add-One-In consistently outperformed state-of-the-art methods like AlpaGasus and IFD. At 15% data usage, it achieved a win score of 1.257 against the full dataset.
  • Speedup: Selecting the top 10% of Alpaca took 118 minutes with Add-One-In, compared to 2,466 minutes for AlpaGasus—a 20x improvement.
  • Domain Adaptation: In the Chinese medical domain, using 20% of selected data yielded a 7.04% improvement over the base model and a 4.36% improvement over other selection methods.

Discussion and Limitations

The success of Add-One-In stems from the fact that diversity is inherently contextual; a sample's value depends on what has already been collected. Furthermore, LLMs are naturally better at ranking and choosing between options than providing consistent absolute scores.

However, the method is not without limitations. The selection quality is tied to the capabilities and potential biases of the "judge" LLM. Additionally, performance can be sensitive to hyperparameters like window size. Future work will explore extending this paradigm to streaming data scenarios and improving candidate pool initialization through more advanced heuristics.

Conclusion

Add-One-In provides a scalable and effective solution for high-quality data selection in LLM training. By prioritizing marginal gain over isolated scoring, it enables superior model performance with a fraction of the data and computational cost of traditional methods.

Summary updated

BibTeX
@misc{li2025add,
  author = {Zhuo Li and Yuhao Du and Xiaoqi Jiao and Yiwen Guo and Yuege Feng and Xiang Wan and Anningzhe Gao and Jinpeng Hu},
  title = {{Add-One-In: Incremental Sample Selection for Large Language Models via a Choice-Based Greedy Paradigm}},
  year = {2025},
  eprint = {2503.02359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.02359},
}
Figure