instruction-tuning-eval
Instruction Tuning with GPT-4 — Peng et al. (2023) (arXiv:2304.03277, 2023)
What this evaluates
Evaluates the instruction-following capability and alignment (helpfulness, honesty, harmlessness) of instruction-tuned LLMs on unseen tasks across English and Chinese.
Datasets
- User-Oriented-Instructions-252 — total 252; splits: test (252)
- Vicuna-Instructions-80 — total 80; splits: test (80)
- Unnatural Instructions — total 68478; splits: test (68478)
Metrics
Relative Score (GPT-4) (primary) — range: percent
- Pairwise comparison rated 1-10 by GPT-4. Relative score = (sum of scores for model A) / (sum of scores for model A + sum of scores for model B) * 100%.
HHH Human Vote % — range: percent
- Human annotators on MTurk vote on three criteria: Helpfulness, Honesty, Harmlessness. Reported as percentage of votes for win, tie, or lose against a baseline.
ROUGE-L — range: [0, 1]
- Standard ROUGE-L score averaged over 9,000 samples from Unnatural Instructions, grouped by ground-truth response length.
Input / output format
Input: Instruction prompt (text) provided to the model.
Output: Text response generated by the model.
Scoring recipe
def compute_relative_score(preds_A, preds_B, prompts):
scores_A, scores_B = [], []
for p, a, b in zip(prompts, preds_A, preds_B):
scores_A.append(gpt4_pairwise_score(a, b))
scores_B.append(gpt4_pairwise_score(b, a))
return sum(scores_A) / (sum(scores_A) + sum(scores_B)) * 100
Common pitfalls
- The GPT-4 automatic evaluation uses pairwise comparisons against a specific opponent (ChatGPT or GPT-4), so scores are relative, not absolute.
- Human evaluation only covers the 252-user-oriented instructions, not the full Vicuna or Unnatural Instructions sets.
- ROUGE-L is computed on a 9K subset of Unnatural Instructions, not the full 68K.
Evidence (verbatim from paper)
We compare LLaMA-GPT4 with GPT-4 and Alpaca unnatural instructions in Figure 6. In terms of the average ROUGE-L scores, Alpaca outperforms the other two models.
Citation
@misc{peng2023instructiontuning,
title={Instruction Tuning with GPT-4},
author={Peng et al. (2023)},
year={2023},
note={arXiv:2304.03277}
}
1---2name: instruction-tuning-eval3description: Evaluates the instruction-following capability and alignment (helpfulness, honesty, harmlessness) of instruction-tuned LLMs on unseen tasks across English and Chinese. Use when the user wants to benchmark on User-Oriented-Instructions-252, Vicuna-Instructions-80, Unnatural Instructions, or asks about evaluating this task. Reports Relative Score (GPT-4).4---56# instruction-tuning-eval78> Instruction Tuning with GPT-4 — Peng et al. (2023) (arXiv:2304.03277, 2023)910## What this evaluates1112Evaluates the instruction-following capability and alignment (helpfulness, honesty, harmlessness) of instruction-tuned LLMs on unseen tasks across English and Chinese.1314## Datasets1516- **User-Oriented-Instructions-252** — total 252; splits: test (252)17- **Vicuna-Instructions-80** — total 80; splits: test (80)18- **Unnatural Instructions** — total 68478; splits: test (68478)1920## Metrics2122- `Relative Score (GPT-4)` **(primary)** — range: percent23 - Pairwise comparison rated 1-10 by GPT-4. Relative score = (sum of scores for model A) / (sum of scores for model A + sum of scores for model B) * 100%.24- `HHH Human Vote %` — range: percent25 - Human annotators on MTurk vote on three criteria: Helpfulness, Honesty, Harmlessness. Reported as percentage of votes for win, tie, or lose against a baseline.26- `ROUGE-L` — range: [0, 1]27 - Standard ROUGE-L score averaged over 9,000 samples from Unnatural Instructions, grouped by ground-truth response length.2829## Input / output format3031**Input**: Instruction prompt (text) provided to the model.3233**Output**: Text response generated by the model.3435## Scoring recipe3637```python38def compute_relative_score(preds_A, preds_B, prompts):39 scores_A, scores_B = [], []40 for p, a, b in zip(prompts, preds_A, preds_B):41 scores_A.append(gpt4_pairwise_score(a, b))42 scores_B.append(gpt4_pairwise_score(b, a))43 return sum(scores_A) / (sum(scores_A) + sum(scores_B)) * 10044```4546## Common pitfalls4748- The GPT-4 automatic evaluation uses pairwise comparisons against a specific opponent (ChatGPT or GPT-4), so scores are relative, not absolute.49- Human evaluation only covers the 252-user-oriented instructions, not the full Vicuna or Unnatural Instructions sets.50- ROUGE-L is computed on a 9K subset of Unnatural Instructions, not the full 68K.5152## Evidence (verbatim from paper)5354> We compare LLaMA-GPT4 with GPT-4 and Alpaca unnatural instructions in Figure 6. In terms of the average ROUGE-L scores, Alpaca outperforms the other two models.5556## Citation5758```bibtex59@misc{peng2023instructiontuning,60 title={Instruction Tuning with GPT-4},61 author={Peng et al. (2023)},62 year={2023},63 note={arXiv:2304.03277}64}65```6667- arXiv: 2304.03277