What is the difference between reference-based and reference-free evaluation, and why do BLEU, ROUGE and exact match fail on LLM output?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Reference-based grading compares the output to a gold answer: exact match, BLEU, ROUGE, embedding similarity, BERTScore. Reference-free grading judges the output on its own merits against a criterion or against the input context: code execution, JSON schema checks, an LLM judge scoring faithfulness against retrieved chunks.
Full worked answer
Reference-based grading compares the output to a gold answer: exact match, BLEU, ROUGE, embedding similarity, BERTScore. Reference-free grading judges the output on its own merits against a criterion or against the input context: code execution, JSON schema checks, an LLM judge scoring faithfulness against retrieved chunks.
The n-gram metrics fail because they were designed for machine translation and summarisation, where references are dense and the output space is narrow. LLM output has an enormous space of correct phrasings. BLEU punishes a correct answer worded differently from the reference and rewards a wrong answer that happens to borrow the reference's vocabulary. ROUGE measures overlap with reference n-grams, so an extractive summary that copies phrases while inventing a relationship between them scores well. Neither has any notion of whether the claim is true.
BERTScore and embedding similarity are a real improvement because contextual embeddings catch paraphrase. But they are insensitive to exactly the things that matter most: negation, numbers, and entity swaps. "The dose is 5mg" and "The dose is not 5mg" sit close together in embedding space and are opposite in the only way anyone cares about. A high similarity score is not evidence of correctness.
Exact match is fine, but only where the answer space is genuinely closed: a classification label, an extracted field, a final numeric answer. Its failure mode is formatting, not semantics, so normalise first (case, whitespace, date and currency formats) or you will measure your parser.
What to do instead: decompose. Execute code against hidden tests. Extract atomic claims and check each against the source. Use a judge with a rubric for genuinely open-ended criteria. Keep reference-based grading where the answer is closed and the comparison is cheap and valid.
What a good answer covers
- Reference-based grading compares the output to a gold answer
- Reference-free grading judges the output on its own merits against a criterion or against the input context
- The n-gram metrics fail because they were designed for machine translation and summarisation, where…
- LLM output has an enormous space of correct phrasings
- ROUGE measures overlap with reference n-grams, so an extractive summary that copies phrases while…
In the glossary: Judge (LLM-as-judge) · Faithfulness
Interviewer follow-ups to expect
When is BLEU still the right tool?
How would you grade a summarisation feature where every summary is legitimately different?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep