Metrics 101: scoring answers by comparing words
Exact match, F1 and ROUGE-L are fast and cheap. They also have a blind spot you should know about.
5 min read
Before you ask a model to grade answers, there is a simpler option: compare the answer to a reference answer, word by word.
These metrics are fast, free, and the same every time. They are also easy to misread.
The four you will meet most
- Exact match: 1 if the answer equals the reference (after tidying case and punctuation), otherwise 0. Good for short, fixed answers like an ID or a yes or no.
- F1: how many words the answer and the reference share. It balances two questions: how much of the answer is right (precision), and how much of the reference it covered (recall). It gives partial credit.
- ROUGE-L: looks for the longest run of shared words that appear in the same order. Common for summaries.
- BLEU: counts shared groups of words and punishes answers that are too short. It was born in machine translation.
The blind spot
All of them compare words, not meaning. A correct answer in different words scores low. A wrong answer in the right words scores high.
Try it
Reference answer
You can return sale items within 14 days with a receipt.
Sale items can be sent back within two weeks if you have your receipt.
This answer is correct, but word-overlap scores stay low.
Exact match
0.00
F1
0.48
ROUGE-L
0.32
Is the answer actually correct?
- Answer A: Correct
- Answer B: Wrong
- Answer C: Correct
- Answer D: Correct
Sample reference for an imaginary store.
Pick answer B. It says the opposite of the reference, and it scores far higher than the correct answer A.
When to use them
- Short answers with one right form: exact match.
- A quick signal across many test cases: F1 or ROUGE-L, as a rough guide.
- Never as the only judge of open-ended answers.
Common mistakes
- Treating a low score as a wrong answer. It may be a good paraphrase.
- Treating a high score as a right answer. It may be a negation.
- Comparing scores across different tasks. A 0.4 on summaries and a 0.4 on short answers mean different things.
- Using one reference answer when there are many good ones.
Takeaways
- Word-overlap metrics are fast, free and repeatable.
- They measure words, not meaning.
- Use them as a rough signal, and add hard gates and an LLM judge for the rest.