Lesson 2 of 6 Evaluating Generative AI

Choosing NLP Evaluation Metrics: BLEU, ROUGE and BERTScore

This lesson explains NLP metrics that compare generated text with reference text automatically, and how to match each metric to the task it measures.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain what BLEU measures and where it suits.
  • Explain what ROUGE measures and where it suits.
  • Explain BERTScore and semantic similarity.

BLEU

BLEU (Bilingual Evaluation Understudy) measures how many n-grams, word sequences of length one to four, in the generated text also appear in one or more reference texts. It is therefore a form of precision, with a brevity penalty so that very short outputs, which could score high precision by saying little, are penalised.

BLEU was designed for machine translation, where good translations share much wording with reference translations. Because it rewards exact wording, a correct paraphrase can score low, which is why BLEU is a poor measure for open-ended generation.

Match the pairs

Which NLP metric?

Exam skills 2.3.8

Match each NLP metric with what it measures.

Log in to try this activity Interactive activities are free with an account.

ROUGE

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) measures how much of the reference text appears in the generated text, which makes it a form of recall. ROUGE-N counts overlapping n-grams: ROUGE-1 for single words and ROUGE-2 for word pairs. ROUGE-L uses the longest common subsequence, which respects word order without requiring the matching words to be contiguous.

ROUGE is the standard metric for summarisation, where the key question is whether the summary covers the important content of the reference. Like BLEU, it rewards wording overlap, so it is usually combined with LLM-as-a-judge or human evaluation for a fuller picture of quality.

Fill in the value

Compute ROUGE-1

Exam skills 2.3.8

Calculate ROUGE-1 recall and precision by counting words.

Log in to try this activity Interactive activities are free with an account.

BERTScore and semantic similarity

BERTScore embeds each token of the candidate and reference with a contextual model (such as BERT) and matches tokens by cosine similarity, giving precision, recall and F1 based on meaning. It recognises paraphrases and synonyms that BLEU and ROUGE miss. Semantic similarity embeds whole texts with a sentence embedding model and computes cosine similarity. Neither metric checks factual correctness: a fluent answer with a wrong number can still score highly. Perplexity measures how well a language model predicts text and is used to compare language models, not individual answers.

The following table summarises the metrics.

MetricMeasuresTypical taskLimitation
BLEUN-gram precision vs referencesTranslationPenalizes valid paraphrases
ROUGE-N / ROUGE-LN-gram or subsequence recallSummarizationSurface overlap only
BERTScoreToken-level semantic matchParaphrase-tolerant comparisonNot factual accuracy
Semantic similarityCosine of sentence embeddingsAnswer similarity, retrieval checksNot factual accuracy
PerplexityHow well a model predicts textComparing language modelsNot per-answer quality

The following diagram compares the three metrics for the two candidates.

Three metrics on two correct summaries. Candidate A repeats the reference's wording and scores high on all three. Candidate B is a correct paraphrase, so ROUGE and BLEU, which reward exact word overlap, score it low, while BERTScore recognises the shared meaning. None of them would catch a wrong number.
Scores are approximate; the lesson gives BLEU only as high or low.
Scenario questions

Pick the metric

Exam skills 2.3.8

Choose the NLP metric that fits each evaluation.

Log in to try this activity Interactive activities are free with an account.
Worked example

One answer, three scores

A reference summary and two candidate summaries are compared.

Reference:   "Revenue rose 8% because of strong cloud sales."
Candidate A: "Revenue rose 8% because of strong cloud sales in Europe."
Candidate B: "Thanks to robust demand for cloud services, income grew by eight per cent."

            ROUGE-1 (recall)   BLEU     BERTScore F1
A           1.00               high     0.97
B           ~0.30              low      0.93

Candidate B is a correct paraphrase but scores poorly on ROUGE and BLEU because it shares few exact words. BERTScore recognises both as close in meaning. Neither metric would flag a candidate that said "Revenue rose 18%", which shows why factual checks or an LLM judge are also needed.

Check yourself

Which metric tolerates paraphrases when comparing with a reference?

Show answer

BERTScore or semantic similarity. BLEU and ROUGE compare exact words.

Exam Tips

Remember for the exam

  • Translation: BLEU (n-gram precision with brevity penalty).
  • Summarization: ROUGE (n-gram recall; ROUGE-L uses longest common subsequence).
  • Paraphrase-tolerant comparison: BERTScore or semantic similarity.
  • No NLP overlap metric checks factual correctness.
  • Perplexity compares language models, not individual answers.