Small Language Model as Data Prospector for Large Language Model

Shiwen Ni, Haihong Wu, Di Yang, Qiang Qu, Hamid Alinejad-Rokny, Min YangarXiv 2024 · DOI

Introduction

Instruction fine-tuning is the critical process that transforms a raw base model into a functional assistant. Recent advancements have shifted the focus from data quantity to data quality, demonstrating that a small set of high-quality examples often outperforms massive, mediocre datasets. However, identifying these "gold" instructions is computationally expensive. The NUGGETS method previously addressed this by evaluating how much a single example improved model performance via one-shot learning, but it required millions of inferences and used a noisy evaluation set.

Methodology: From NUGGETS to SuperNUGGETS

SuperNUGGETS optimizes the data prospecting process through two primary innovations: Small Language Model (SLM) prospecting and task set refinement.

Instead of using a large 7B parameter model to judge data quality, SuperNUGGETS utilizes tiny models like Opt-125m. The underlying hypothesis is that high-quality instructions are universally beneficial; if an example helps a tiny model, it is likely to help a large one. Additionally, the evaluation process is streamlined by replacing a 1,000-item random test set with a "Golden Test Set" of 100 diverse, high-quality tasks selected via reward modeling and k-center greedy clustering.

The effectiveness of an instruction is measured by its Golden Score (GS), which reflects the SLM's performance improvement on the refined test set when the instruction is used as a one-shot prompt.

Key Results and Efficiency

The transition to SLM-based prospecting yields dramatic efficiency gains. SuperNUGGETS achieves a 58x speedup compared to the original NUGGETS method by drastically reducing the size of the prospector model.

Efficiency gains and performance trade-offs of using an SLM prospector.

Empirical results on the Alpaca dataset (52k instructions) show that training on just the top 5% of data identified by SuperNUGGETS (using Opt-125m) resulted in a 22.11% win rate on Alpaca-Eval. This significantly outperforms training on the full 100% of the dataset, which yielded only 18.51%. Remarkably, the performance gap between using a 125m prospector and a 7B prospector is only approximately 1-2%, making high-quality data selection accessible even with limited computational resources.

Conclusion

SuperNUGGETS demonstrates that "quality" is a fundamental trait recognizable even by very small models. By prioritizing diversity over density in the evaluation set and leveraging SLMs, researchers can identify superior fine-tuning data at a fraction of the traditional cost. Future work will explore the scaling limits of this approach and whether even smaller models can serve as effective prospectors for frontier-scale LLMs.

Summary updated

BibTeX
@misc{ni2024small,
  author = {Shiwen Ni and Haihong Wu and Di Yang and Qiang Qu and Hamid Alinejad-Rokny and Min Yang},
  title = {{Small Language Model as Data Prospector for Large Language Model}},
  year = {2024},
  eprint = {2412.09990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09990},
}
Figure