Two metrics, two directions
BLEU is a precision measure and ROUGE is a recall measure.
BLEU asks how much of what the model produced appears in the reference. ROUGE asks how much of the reference appears in what the model produced.
That is why BLEU belongs to translation, where inventing material is the failure, and ROUGE belongs to summarisation, where leaving material out is.
BLEU, written out
- : how often an n-gram appears in the candidate.
- : how often it appears in the reference.
The clip by the reference count is what stops a candidate of the word the repeated seven times from scoring a perfect precision.
Precisions for from 1 to 4 are combined by a geometric mean with equal weights, so a zero at any order sends the whole score to zero.
The brevity penalty is the recall half. Without it, emitting one very likely word would score a perfect precision, and the penalty is the only thing punishing an output that is too short.
ROUGE, and its three common forms
ROUGE-N is n-gram recall, with ROUGE-1 and ROUGE-2 the two that are always reported.
ROUGE-L uses the longest common subsequence instead of fixed n-grams, so it rewards words in the right order without requiring them to be adjacent.
One evaluation, in order
- Tokenise the candidate and every reference the same way, with the same casing rule.
- Count the n-grams of each order.
- Clip the candidate counts by the maximum over the references.
- Compute the precisions or recalls, then combine them.
- Report the tokeniser and the number of references alongside the number.
Step five is not a formality.
The same system scores several points differently under different tokenisers, which is why sacreBLEU exists and why a BLEU score without its configuration is not comparable to anything.
What both of them miss
Compare "The cat is on the mat" with "The mat has a cat on it".
A correct paraphrase that shares few n-grams scores badly, and a fluent sentence that shares many while reversing the meaning scores well.
Neither metric knows what a word means, so both are measuring surface overlap and calling it quality.
The learned alternatives match tokens by embedding similarity instead, which handles paraphrase and costs a forward pass per pair.
They remain useful because they are fast, deterministic and comparable across papers.
They also correlate well enough in aggregate, even though they are unreliable on any single sentence.