Skip to main content
QUICK REVIEW

[Paper Review] From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuning

Ming Li, Yong Zhang|arXiv (Cornell University)|Aug 23, 2023
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

The paper presents a self-guided data selection method for instruction tuning of LLMs, introducing the Instruction-Following Difficulty (IFD) metric to cherry-pick high-impact data from open-source datasets, achieving stronger results with much less data.

ABSTRACT

In the realm of Large Language Models (LLMs), the balance between instruction data quality and quantity is a focal point. Recognizing this, we introduce a self-guided methodology for LLMs to autonomously discern and select cherry samples from open-source datasets, effectively minimizing manual curation and potential cost for instruction tuning an LLM. Our key innovation, the Instruction-Following Difficulty (IFD) metric, emerges as a pivotal metric to identify discrepancies between a model's expected responses and its intrinsic generation capability. Through the application of IFD, cherry samples can be pinpointed, leading to a marked uptick in model training efficiency. Empirical validations on datasets like Alpaca and WizardLM underpin our findings; with a mere $10\%$ of original data input, our strategy showcases improved results. This synthesis of self-guided cherry-picking and the IFD metric signifies a transformative leap in the instruction tuning of LLMs, promising both efficiency and resource-conscious advancements. Codes, data, and models are available: https://github.com/tianyi-lab/Cherry_LLM

Motivation & Objective

  • Motivate reducing data quantity while maintaining or improving instruction-following quality in LLM tuning.
  • Introduce a self-guided data selection process to identify cherry data from large open-source datasets.
  • Define and utilize the Instruction-Following Difficulty (IFD) metric to measure how well instructions guide model outputs.
  • Demonstrate efficiency gains by achieving competitive or superior results using around 5-10% of conventional data on Alpaca and WizardLM benchmarks.

Proposed method

  • Phase 1: Learning from Brief Experience uses K-Means clustering on instruction embeddings to create a small pre-experienced dataset and trains the initial model for 1 epoch.
  • Phase 2: Evaluating Based on Experience defines the Instruction-Following Difficulty (IFD) score by comparing the conditioned answer loss to the direct answer loss, guiding cherry data selection.
  • Phase 3: Retraining from Self-Guided Experience trains cherry models using the selected high-IFD samples, with the underlying model being a Meta LLaMA-7B baseline in experiments.
  • IFD is computed as IFD(Q,A) = s_theta(A|Q) / s_theta(A), where s_theta(A|Q) is the conditioned answer score and s_theta(A) is the direct answer score.
  • The method filters samples with IFD scores higher than 1 and uses pre-experienced model outputs to obtain IFD scores on the target dataset.
  • Experiments use Alpaca and WizardLM datasets; models are trained with ~5-10% of data and evaluated on multiple test sets.
  • Evaluation relies on pairwise comparisons via GPT-4/ChatGPT judging models, plus human evaluation on sampled instances.

Experimental results

Research questions

  • RQ1Can LLMs identify high-impact instruction-following data from large open-source datasets without extensive human curation?
  • RQ2Does the Instruction-Following Difficulty (IFD) metric effectively distinguish instructional samples that lead to better instruction-following performance?
  • RQ3What data efficiency gains can be achieved in instruction tuning by cherry-picking data using self-guided IFD-based strategies?
  • RQ4Are cherry data approaches generalizable across model sizes and open-source baselines (e.g., Alpaca, WizardLM, LLaMA2)?
  • RQ5How does data diversity alone compare to quality-focused cherry data in driving instruction tuning performance?

Key findings

  • Models trained with about 5-10% of data selected via the proposed method outperform or match models trained on full data on Alpaca and WizardLM benchmarks.
  • Cherry models trained on selective data achieve competitive results on Huggingface Open LLM Leaderboard and AlpacaEval Leaderboard compared to stronger baselines.
  • Ablations show random data, diversity-focused sampling, and low-IFD-score selections perform worse, highlighting the value of the IFD-based selection.
  • Experiments on LLaMA2-7B and LLaMA2-13B indicate the approach remains effective across different base models and data scales.
  • Human evaluation corroborates that cherry data selections align with instructions that are more challenging and significant for instruction alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.