AlpacaEval
by Stanford Tatsu Lab
What is AlpacaEval? AlpacaEval is a writing & instruction following eval made by Stanford Tatsu Lab. Compares a model's answers against a reference model's answers using an automatic LLM judge, with a correction for judges that prefer longer answers.
Editor note
Compares a model's answers against a reference model's answers using an automatic LLM judge, with a correction for judges that prefer longer answers.
- What it tests
- General helpfulness of chat responses.
- Original source
- github.com/tatsu-lab/alpaca_eval
- Last updated
- Repo last commit 2025-08-09
- License
- Apache-2.0
When to use AlpacaEval
- You want a fast, low-cost automatic comparison of instruction-following chat models, where an LLM judge compares your model's answers with a baseline's.
- You want a judge-based score that tracks human preference: the length-controlled win rate has a Spearman correlation of 0.98 with Chatbot Arena, per the authors.
Limitations
- LLM judges favour longer answers. Length-controlled win rates (the default in AlpacaEval 2.0) reduce this, but the raw win rate is still easy to game with verbosity.
- Scores depend on the judge (annotator) and baseline you use, so report both. The recommended default annotator is weighted_alpaca_eval_gpt4_turbo.
How to run it
- Install the package and set an API key for the judge model.
- Generate your model's outputs on the AlpacaEval instructions and save them as JSON.
- Run alpaca_eval on the outputs to get the leaderboard row and annotations.
pip install alpaca-eval
alpaca_eval --model_outputs 'example/outputs.json'Notable results
- Length control raised the Spearman correlation with LMSYS Chatbot Arena from 0.94 to 0.98 in the length-controlled AlpacaEval paper. [Length-controlled AlpacaEval paper (arXiv)]
Sources
Compare AlpacaEval
Related writing & instruction following evals
- EQ-Bench Creative Writing — Creative writing quality judged against a rubric.
- MT-Bench (LLM-as-a-judge paper) — Multi-turn conversation quality; how reliable LLM judges are.
- IFEval — Following explicit, verifiable instructions.
- LMArena (Chatbot Arena) — Which models people prefer on their own real prompts, by pairwise human votes.
Discussion
No one has discussed AlpacaEval yet. Have you run it? Share what it caught, what it missed or how you set it up.