esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

BLEU and ROUGE, and Their Limits

What BLEU and ROUGE measure, how they score one sentence, and why counting shared words misses meaning, explained for your AI interview.

In short

BLEU and ROUGE score a model's text by counting word chunks it shares with a human reference. They are deterministic, so the same input gets the same score, but they only see shared words, so a sentence with one word reversed can score higher than a correct rewording.

10 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

BLEU and ROUGE are old scoring tools. BLEU counts the word chunks a model's text shares with a human reference, and it was built for machine translation. ROUGE does the same and is commonly used for summaries. Both are deterministic, so I use them as a cheap alarm. But they only see words. A correct rewording can score low, and a sentence with one word flipped can score high. So I never ship on them alone. I add a person reading a sample, or a meaning check.

What are BLEU and ROUGE, in plain words?

A translation or a summary is hard to grade by hand at scale. BLEU and ROUGE grade it by machine, by comparing the model's text with a reference: a version a person wrote and approved.

Both tools count words that the output shares with the reference. BLEU counts runs of words in a row (chunks). The simple ROUGE-1 version counts single words. A one-word run is a unigram, and two words in a row is a bigram. The more the model's text shares with the reference, the higher the score.

Think of a bank's compliance reviewer checking a translated dispute letter against the approved Spanish wording. She ticks off phrases one by one. A machine can tick off quickly, but it only ticks words. In a real AI setup, a bank's translation model writes the Spanish version of thousands of letters, and BLEU scores each one against an approved Spanish version.

Key words

BLEU
A word-overlap score first built for machine translation.
ROUGE
A word-overlap score that asks how much of the reference the output covers. Commonly used for summaries.
Reference
The human-written answer that the model's text is compared with.
N-gram
A run of n words in a row. One word is a unigram, two words a bigram.

How does BLEU score a sentence, and what was it built for?

BLEU comes from a 2002 paper titled "Bleu: a Method for Automatic Evaluation of Machine Translation". A 2018 structured review says the evidence supports BLEU for diagnosing machine translation systems, which is what it was first proposed for.

How BLEU scores one sentence

Model's sentence

the output being scored

Human reference

the approved wording to check against

Matching word chunks

counts runs of words in a row

Overlap score

share of chunks found in the reference

BLEU number

higher means more overlap

  1. 1The model's sentence goes in to be scored.
  2. 2The human reference is the answer key it is checked against.
  3. 3Each chunk counts only as often as the reference holds it.
  4. 4The overlap is turned into one score.
BLEU compares word chunks in the model's sentence with a human reference, then turns the overlap into one score. It only counts chunks.

In plain steps: BLEU counts how often each chunk of words in the output appears in the reference. Our code keeps it to one- and two-word chunks. BLEU caps each chunk at the count the reference holds, so repeating a word does not win points. It combines the match rates (two in our code), then applies a brevity penalty when the output is not longer than the reference, so a model cannot score well by saying very little.

Here is a worked case. The reference is "We will refund the fee within five working days". A reworded but correct candidate is "The fee will be refunded within five working days". A candidate with one word added is "We will not refund the fee within five working days".

The code below scores both against the reference. BLEU-2 is a simplified version that checks single words and word pairs. ROUGE-1 recall checks single words only. The correct rewording scores lower on both, and the reversed sentence wins on both, because it shares almost every word.

Python
# Two sentence scores for a bank's dispute letters, with made-up numbers.
# A simplified BLEU-2 (single words and word pairs only) and ROUGE-1 recall.
import math
from collections import Counter

def chunks(words, n):
    return Counter(tuple(words[i:i + n]) for i in range(len(words) - n + 1))

def bleu2(candidate, reference):
    cand, ref = candidate.lower().split(), reference.lower().split()
    precisions = []
    for n in (1, 2):
        c, r = chunks(cand, n), chunks(ref, n)
        matched = sum(min(count, r[g]) for g, count in c.items())
        precisions.append(matched / sum(c.values()))
    brevity = 1.0 if len(cand) > len(ref) else math.exp(1 - len(ref) / len(cand))
    return brevity * math.sqrt(precisions[0] * precisions[1])

def rouge1_recall(candidate, reference):
    cand, ref = Counter(candidate.lower().split()), Counter(reference.lower().split())
    matched = sum(min(count, cand[w]) for w, count in ref.items())
    return matched / sum(ref.values())

reference = "We will refund the fee within five working days"
paraphrase = "The fee will be refunded within five working days"
wrong = "We will not refund the fee within five working days"
for label, sentence in [("Correct, new words", paraphrase), ("Wrong meaning", wrong)]:
    print(f"{label}: BLEU-2 {bleu2(sentence, reference):.2f}, ROUGE-1 recall {rouge1_recall(sentence, reference):.2f}")

Output

Correct, new words: BLEU-2 0.62, ROUGE-1 recall 0.78
Wrong meaning: BLEU-2 0.84, ROUGE-1 recall 1.00

Right words, wrong meaning

Right meaning, new words

Reworded, correct

same meaning, fewer shared chunks

Wrong meaning, shared words

One word added: not

meaning reversed, most chunks still match

BLEU 0.62

the right answer scores lower

BLEU 0.84

the reversed answer scores higher

  1. 1The correct rewording gets 0.62 in our made-up example.
  2. 2The reversed sentence gets 0.84, because almost every word matches.
The two made-up sentences from the code. The reversed one is the trap: a single added word keeps most chunks matched, so the number goes up.

Where do BLEU and ROUGE break?

Every limit comes from one design choice: the tools only count words. The main ones are these.

  • Rewording

    A correct paraphrase uses different chunks, so it shares fewer and scores lower.

  • One small edit

    A single word like not can reverse the meaning and still leave most chunks matched.

  • A reference is needed

    No reference, no score. Someone has to write each reference first, and for free-form answers that is a real job.

  • Single texts

    The 2018 review does not support using BLEU to judge individual texts, so read the trend across many examples.

  • “They require a ground truth in your dataset”

    Google Cloud, Gen AI evaluation

  • “We show that these metrics correlate very weakly with human judgements in the non-technical Twitter domain, and not at all in the technical Ubuntu domain.”

    Liu and colleagues, 2016

  • “but does not support using BLEU outside of MT, for evaluation of individual texts, or for scientific hypothesis testing”

    Reiter, 2018 review

The 2018 review covered 284 correlations reported in 34 papers. Its verdict was narrow: BLEU fits diagnosing machine translation, and it does not carry over to judging one text or to testing a scientific claim.

Tip

Asked what is wrong with BLEU? Say it counts shared words, so it can reward a wrong answer that uses the right words. Then name what you add beside it: a person reading a sample, or a meaning check.

What does the interviewer want to hear?

A strong answer covers

  • What BLEU and ROUGE count: shared word chunks against a reference.
  • Where each came from: BLEU for machine translation, ROUGE for summaries.
  • Why a wrong sentence can score high, with a concrete example.
  • Why a correct rewording can score low.
  • Where they still help: a repeatable check that flags big drops across model versions.
  • What to add: a person reading samples, or a meaning-based check.

Common traps

  • Trap"A higher BLEU means a better answer."

    BetterIt means more shared words with one reference. Check meaning with people or a second AI grader before you trust it.

  • Trap"BLEU works for any generated text."

    BetterThe 2018 review supports it for diagnosing machine translation. It does not support using BLEU outside MT or for judging individual texts.

  • Trap"ROUGE checks whether the answer is true."

    BetterROUGE counts overlapping words with the reference. It cannot tell a true sentence from a false one that uses the same words.

Can you spot the weak metric?

Spot the trap

Your team's summary model scores 0.41 ROUGE on 500 summaries, up from 0.38. Which conclusion is safe?

Quick check

In your bank's translation test, a reversed sentence scores higher on BLEU than a correct rewording. What explains it?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q248What is a golden dataset, and how do you build one?11 min
  2. Q249What is LLM-as-a-judge?12 min
  3. Q251How do you calibrate a judge against humans?11 min
  4. Q253Exact match, accuracy and F1 for LLM tasks?12 min
  5. Q254Faithfulness vs relevance?10 min

Learn it in depth

Last updated on 26 November 2026

Scoring an AI feature that writes text for customers?

I design and build AI products and agents, the interface and the system behind it. Book a short call and say what you need to measure.