atlas

Research map / Large language models / Instruction and fine-tuning

AlpaGasus: Training a Better Alpaca with Fewer Data

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Instruction data selection · 15 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Filters Alpaca's 52k instruction data with ChatGPT accuracy scores to keep 9k high-quality samples, then fine-tunes LLaMA to get AlpaGasus, which beats full-data Alpaca on GPT-4-judged test sets at a fraction of the training time.

Problem

Widely used instruction-tuning datasets such as Alpaca's 52k contain many low-quality responses (incorrect or irrelevant) that can hurt instruction fine-tuning, and manual quality filtering is expensive.

Approach

Use a strong LLM (ChatGPT) as an automatic grader that scores each (instruction, input, response) triplet for accuracy on a 0-5 scale, then keep only triplets above a threshold (4.5) for standard Alpaca fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 7B · BBHscore: 33.01 -> 33.76Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 7B · DROPscore: 25.87 -> 26.03Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 7B · HumanEvalscore: 11.69 -> 12.20Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 7B · MMLUscore: 40.86 -> 38.78Hurt
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 13B · BBHscore: 38.67 -> 38.92Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 13B · DROPscore: 33.84 -> 34.4Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 13B · HumanEvalscore: 15.74 -> 15.86Helped
Filter Alpaca data by response quality and train on 9k rather than all 52k examplesLLaMA 13B · MMLUscore: 47.89 -> 46.12Hurt
Use quality-filtered rather than randomly selected Alpaca training examplesLLaMA 7B (9k) · BBHscore: 31.89 -> 33.76Helped
Use quality-filtered rather than randomly selected Alpaca training examplesLLaMA 13B (9k) · BBHscore: 38.60 -> 38.92Helped
Filter Dolly training data by response quality instead of using all 15k examplesLLaMA 7B · HumanEvalscore: 7.93 -> 9.78Helped
Use a 4.0 rather than 4.5 filtering threshold, yielding 39k examples (ablation)Alpaca fine-tuning · Vicuna and Self-InstructGPT-4 evaluationNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca 52k Databricks Dolly-15k GPT4LLM (Alpaca-GPT4) Self-Instruct test set Vicuna test set WizardLM test set Koala test set

Benchmarks: Vicuna test set Koala test set WizardLM test set Self-Instruct test set MMLU DROP HumanEval BBH

Metrics: win-tie-lose rate vs baseline GPT-4 score (1-10) human win/tie/lose benchmark accuracy training time and cost

Baselines: Alpaca-52k Alpaca-9k-random Text-Davinci-003 ChatGPT Claude-v1.1

Builds on: Alpaca LLaMA Vicuna evaluation prompt AlpacaEval

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy