atlas

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

PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Instruction data selection · 29 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.

Trains PandaLM, a LLaMA-based judge LLM that compares responses from instruction-tuned models, and uses it to select better fine-tuning hyperparameters, validated against a human-annotated test set.

Problem

Hyperparameter selection for instruction tuning LLMs is hard because evaluation is costly, subjective, and often relies on accuracy metrics or privacy-risky API judges such as GPT-4.

Approach

A locally deployable judge LLM, trained on GPT-3.5-distilled pairwise comparisons (with reasons and reference responses) filtered for position-swap consistency, judges which of two fine-tuned models is better, and is used to search hyperparameters for instruction tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PandaLM-selected hyperparameters instead of Alpaca's default hyperparametersLLaMA-7B, Bloom-7B, Cerebras-GPT-6.7B, OPT-7B, and Pythia-6.9B · 170-instruction validation setpairwise preference: GPT-4: (40,17,113); (44,34,92); (60,20,90); (39,30,101); (52,30,88)Helped
Include evaluation reasons and reference responses alongside the evaluation label (ablation)PandaLM-7B · Human-annotated test setaccuracy: 0.4725 -> 0.5926Helped
Include evaluation reasons and reference responses alongside the evaluation label (ablation)PandaLM-7B · Human-annotated test setF1: 0.3152 -> 0.5456Helped
Scale the judge model from 7B to 70BPandaLM · LSATaccuracy: 0.4717 -> 0.6604Helped
Scale the judge model from 7B to 70BPandaLM · PubMedQAaccuracy: 0.6154 -> 0.7692Helped
Scale the judge model from 7B to 70BPandaLM · BioASQaccuracy: 0.5152 -> 0.7727Helped
Use full fine-tuning instead of LoRA (ablation)Bloom, Cerebras-GPT, LLaMA, OPT, and Pythia · 170-instance pairwise comparisonswins: Bloom: LoRA 35, Full Fine-tuning 66; Cerebras-GPT: LoRA 40, Full Fine-tuning 59; LLaMA: LoRA 28, Full Fine-tuning 48; OPHelped
Increase instruction-tuning data up to the model-specific reported optimal size (ablation)OPT · Instruction tuningperformance: 992,000No clear effect
Use PandaLM-selected hyperparameters instead of Alpaca hyperparametersLLaMA-7B · lm-eval averageaverage score: 0.4879 -> 0.5031Helped
Use PandaLM-selected hyperparameters instead of Alpaca hyperparametersCerebras-GPT-6.7B · lm-eval averageaverage score: 0.3836 -> 0.3752Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca 52K self-instruct human evaluation dataset LSAT PubMedQA BioASQ lm-eval tasks

Benchmarks: PandaLM human-annotated test set LSAT PubMedQA BioASQ lm-eval (ARC, HellaSwag, MMLU, TruthfulQA)

Metrics: accuracy precision recall F1 win/tie/lose counts Cohen's kappa IAA win rate

Baselines: GPT-3.5 GPT-4 BERTScore MAUVE lm-eval Alpaca default hyperparameters

Builds on: Alpaca self-instruct LLaMA DeepSpeed ZeRO LoRA

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