Two old metrics, still relevant when used carefully
BLEU and ROUGE were invented in the early 2000s for machine translation and summarization. They are imperfect, often criticized, and yet still useful for the narrow tasks they were built for: when you have reference outputs and you want a fast, free, language-agnostic similarity score.
BLEU — for translation
BLEU (Bilingual Evaluation Understudy) measures n-gram overlap between candidate output and one or more references, with a brevity penalty to discourage suspiciously short outputs. Scores range 0-1 (or 0-100 in some libraries). 0.3 is decent, 0.5 is good, 0.7+ is rare on real translation tasks.
ROUGE — for summarization
ROUGE (Recall-Oriented Understudy for Gisting Evaluation) is the summarization sibling. ROUGE-N measures n-gram overlap, ROUGE-L measures longest common subsequence, ROUGE-W weights consecutive matches. Higher recall = the candidate covers more of the reference.
When NOT to use them
- Open-ended generation (creative writing, brainstorming) — many valid outputs, low overlap with any single reference.
- Code generation — different code can be functionally identical and lexically distant.
- Dialogue — a good response can share zero words with a reference.
- Anything where meaning matters more than surface form. Use BERTScore or LLM judges instead.