CertBrain
CoursesBlog
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Foundation Model Evaluation Metrics

When a foundation model writes text, you need a number that says how good that text is. The exam names four ways to get one: ROUGE, BLEU, BERTScore and LLM-as-a-judge. The first three compare the model's output with a reference answer written by a person. The fourth asks another model to grade the…

12 cards
Study this deck

Foundation Model Evaluation Metrics

When a foundation model writes text, you need a number that says how good that text is. The exam names four ways to get one: ROUGE, BLEU, BERTScore and LLM-as-a-judge. The first three compare the model's output with a reference answer written by a person. The fourth asks another model to grade the output, often with no reference at all. Most exam questions come down to matching the metric to the task and noticing whether a reference answer exists.

Reference-Based Metrics

ROUGE, BLEU and BERTScore all need reference text: an ideal answer, written or approved by a person, to compare against. They're fast, cheap and objective, so they suit large automated test runs. Their shared weakness is that they reward similarity to one particular answer. A response that is correct but worded very differently can score poorly. Without reference answers, you can't use them at all.

ROUGE for Summaries

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) counts how many words and short word sequences from the reference also appear in the model's output. It leans toward recall: did the output include the content the reference contains? That makes it the usual choice for summarization. Common variants are ROUGE-1 (single words), ROUGE-2 (word pairs) and ROUGE-L (the longest shared sequence). Its weakness is that it only sees matching words, so a summary that paraphrases heavily can score low even when its meaning is right.

BLEU for Translation

BLEU (Bilingual Evaluation Understudy) also counts overlapping word sequences, but it leans toward precision: how much of the output appears in the reference? It also penalizes outputs that are too short, so a model can't score well by writing only a few safe words. BLEU is the classic metric for machine translation, where it tracks human judgment fairly well. It's a poor fit for creative writing, where many different answers are equally good.

BERTScore for Meaning

BERTScore compares meaning rather than exact words. It turns the output and the reference into embeddings (numeric representations of meaning) and measures how similar they are. So "the meeting was postponed" and "the meeting was pushed back" score as close, even though they share few words. It handles paraphrasing far better than ROUGE or BLEU, at the cost of more computing. Amazon Bedrock's automatic evaluation uses BERTScore to measure accuracy for text summarization.

LLM-as-a-Judge

With LLM-as-a-judge, a second model reads each response and scores it against a rubric, explaining its reasoning. It can measure qualities that word overlap can't, such as helpfulness, relevance, logical coherence, following instructions, professional tone, and harm or stereotyping. Many of these need no reference answer. Bedrock provides built-in judge metrics and also lets you write custom ones. Watch for judge bias: a model tends to favour answers that look like its own. AWS recommends choosing a judge from a different model family and checking its scores against human ratings.

On the Exam

Task or clueMetric
Summaries compared with reference summariesROUGE
Translations compared with reference translationsBLEU
Paraphrased output, meaning matters more than wordingBERTScore
No reference answers; helpfulness, tone or instruction followingLLM-as-a-judge

The usual trap is offering ROUGE, BLEU or BERTScore when the scenario says no reference answers exist. All three need one.

Quiz me on this
A news app compares its AI-written article summaries with summaries written by its editors. It wants a fast metric that checks how much of the editors' content each AI summary includes, based on overlapping words. Which metric fits BEST?
  1. BLEU
  2. Accuracy
  3. ✓ ROUGE
  4. Toxicity
A travel company uses a foundation model to translate property listings from English into German. It has a set of listings already translated by professional translators. Which automated metric is the standard choice for scoring the model's translations against these?
  1. ✓ BLEU
  2. ROUGE
  3. Context relevance
  4. Recall
A legal-tech firm's model writes summaries that paraphrase heavily. Its ROUGE scores are low, yet lawyers reviewing a sample say the summaries capture the meaning correctly. Which metric would better reflect what the lawyers see?
  1. BLEU
  2. ROUGE-L
  3. Word error rate
  4. ✓ BERTScore
A software company wants to score thousands of support-chatbot answers for helpfulness and for following the company's instructions. No reference answers exist, and engineers want an explanation with each score. Which approach fits?
  1. ROUGE scores against the product manual
  2. ✓ LLM-as-a-judge with built-in metrics
  3. BLEU scores against last year's chat logs
  4. BERTScore against a sample of agent replies
A company built its assistant on one model family. It plans to use LLM-as-a-judge to compare its assistant against a rival vendor's model, and worries the comparison could be unfair. Which practice BEST reduces that risk?
  1. ✓ Use a judge from another model family and check it against human ratings
  2. Use the assistant's own model as the judge, because it best understands the expected answers
  3. Replace the judge with BLEU scores, because BLEU works without any reference text
  4. Raise the judge model's temperature so that its scores cover a wider range of values
In an Amazon Bedrock automatic evaluation job for the text summarization task, which computed metric measures accuracy?
  1. Word error rate
  2. NLP-F1
  3. Toxicity
  4. ✓ BERTScore
ROUGE
Counts word and phrase overlap with a reference, leaning toward recall. The usual metric for summarization.
BLEU
Counts word-sequence overlap with reference translations, leaning toward precision and penalising short output. The classic translation metric.
BERTScore
Compares the meaning of output and reference using embeddings, so correct paraphrases still score well.
What do ROUGE, BLEU and BERTScore all need?
A reference answer written or approved by a person. Without references, use LLM-as-a-judge or human review.
Self-preference bias in LLM-as-a-judge
A judge model tends to favour answers like its own. Reduce it with a judge from a different model family, checked against human ratings.
Example built-in judge metrics in Amazon Bedrock
Correctness, completeness, faithfulness, helpfulness, relevance, following instructions, harmfulness, stereotyping and refusal.