Translation Evaluation Beyond BLEU › Classical Successors to BLEU

Michael BrenndoerferNovember 25, 20265 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 194Translation Evaluation Beyond BLEU › Classical Successors to BLEU
Reading section 5 of 16 · Classical Successors to BLEU · 5 minSection 5 of 16 · 5 min

Section 5 of 16 · 5 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Use classical metrics as inexpensive diagnostic checks. If a learned score surprises you, inspect tokenization, output length and the overlapping phrases to see which visible changes were captured.

METEOR

METEOR (Banerjee and Lavie, 2005) aligns hypothesis and reference words. The original English-target matcher applies these modules in order:

  1. Exact word match.
  2. Porter stemming.
  3. WordNet synonym matching.

Later versions add other modules, such as phrase paraphrases, and choose resources for the target language.

The original unweighted unigram formulation computes precision PP and recall RR, combines them with a harmonic mean that gives recall more weight, and applies a fragmentation penalty:

Fmean=PRαP+(1−α)R,METEOR=Fmean⋅(1−γ fragβ)F_{\text{mean}} = \frac{P R}{\alpha P + (1-\alpha) R}, \qquad \text{METEOR} = F_{\text{mean}} \cdot (1 - \gamma \, \text{frag}^{\beta})

where:

  • PP: unigram precision, the fraction of hypothesis tokens matched by the alignment
  • RR: unigram recall, the fraction of reference tokens matched by the alignment
  • α\alpha: the recall weight. The original formula 10PR/(R+9P)10PR/(R+9P) corresponds to α=0.9\alpha=0.9 here. Later versions tune it by language and task.
  • frag\text{frag}: the number of chunks divided by the number of matched unigrams. Within a chunk the matched tokens are adjacent and ordered the same way in both strings.
  • γ\gamma and β\beta: penalty parameters (γ=0.5\gamma = 0.5 and β=3\beta = 3 in this worked configuration)

A hypothesis with no matched unigrams scores zero. The fragmentation penalty distinguishes a contiguous alignment from dispersed matches. BLEU responds to local order through adjacent exact n-grams.

METEOR's main contributions were explicit recall, stemming and synonymy, and a word-order term. Its matches still depend on the reference and the modules available for the target language. Meteor 1.5 uses its synonym module for English and selects other matching resources by language.

TER

Translation Edit Rate (Snover et al., 2006) counts edits between a hypothesis and a reference under a particular edit model. With one nonempty reference, as in this notebook:

TER=#insertions+#deletions+#substitutions+#shifts#reference words\text{TER} = \frac{\#\text{insertions} + \#\text{deletions} + \#\text{substitutions} + \#\text{shifts}}{\#\text{reference words}}

where:

  • #insertions\#\text{insertions}, #deletions\#\text{deletions}, #substitutions\#\text{substitutions}: the remaining edit counts for the selected reference after handling shifts. Snover et al. define TER by minimum edit count and use a greedy search over shifts in their implementation.
  • #shifts\#\text{shifts}: the number of contiguous word-span moves used by the edit sequence
  • #reference words\#\text{reference words}: the length of that single reference in words. With multiple references and a positive mean reference length, SacreBLEU divides the smallest edit count by that mean length.

Lower is better, and the unscaled ratio can exceed one. SacreBLEU reports the result multiplied by 100. A shift moves a contiguous sequence of words as a single operation.

TER depends on the supplied reference and edit costs. Actual post-editing time needs its own measurement, and a valid reordering may still incur an edit charge.

chrF and chrF++

chrF (Popović, 2015) combines average character n-gram precision and recall in an FβF_\beta score. The usual β=2\beta=2 gives recall more weight.

chrFβ=(1+β2)P⋅Rβ2P+R\text{chrF}_\beta = (1+\beta^2)\frac{P \cdot R}{\beta^2 P + R}

where:

  • PP: character n-gram precision, averaged over n-gram orders
  • RR: character n-gram recall, averaged over n-gram orders
  • β\beta: the recall weighting parameter, which appears squared in the formula

Character n-grams make standard chrF less dependent on word segmentation. Different versions can still handle spaces, casing, and punctuation differently. A compound with a shared stem and a different ending can get partial credit for its shared characters.

chrF++ (Popović, 2017) adds word unigrams and bigrams to the character n-gram statistics, which recovers some of the word-level signal while keeping the character-level robustness. In sacrebleu, CHRF(word_order=2) is chrF++.

BLEU and chrF measure different units of surface overlap. A large disagreement can help you identify where to inspect the texts. Their agreement alone does not establish semantic equivalence.

The distinction is easiest to see on a small set of controlled edits. Here a one-letter suffix change, a synonym substitution, and a short omission are scored against the same reference.

PythonIn [9]
CollapseExpand
import numpy as np

chrf_ref = "The committee reviewed the proposed amendments."
chrf_cases = {
    "Exact": chrf_ref,
    "Suffix": "The committee reviewed the proposed amendment.",
    "Synonym": "The committee examined the proposed amendments.",
    "Omission": "The committee reviewed the proposed.",
}
chrf_bleu = []
chrf_scores = []
for hyp in chrf_cases.values():
    chrf_bleu.append(bleu_metric.sentence_score(hyp, [chrf_ref]).score)
    chrf_scores.append(chrf_metric.sentence_score(hyp, [chrf_ref]).score)
chrf_labels = list(chrf_cases)
chrf_positions = np.arange(len(chrf_labels))
VisualizationOut [10]
CollapseExpand
Bar chart of BLEU and chrF++ for exact, suffix, synonym, and omission variants.
Sentence BLEU and chrF++ for small wording changes against one reference. Character n-grams retain partial credit for a one-letter suffix change, while word n-gram precision falls more sharply.

SacreBLEU and the reproducibility problem

Post found that commonly used BLEU configurations differed by as much as 1.8 points on the same test data. Much of the variation came from how the references were tokenized and normalized. Post (2018)

SacreBLEU (Post, 2018) makes preprocessing and implementation settings explicit. It offers multiple tokenizers and outputs a signature describing the chosen configuration. The following cell prints the signature for the corpus BLEU settings used in the paired comparison later in this chapter.

ConsoleOut [11]
CollapseExpand
nrefs:1|case:mixed|eff:no|tok:13a|smooth:exp|version:2.6.0

Report the signature and the test set together. For learned metrics, record the checkpoint, software version, and preprocessing.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy