Translation Evaluation Beyond BLEU › Classical Successors to BLEU
Language AI HandbookAll chapters 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:
- Exact word match.
- Porter stemming.
- 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 and recall , combines them with a harmonic mean that gives recall more weight, and applies a fragmentation penalty:
where:
- : unigram precision, the fraction of hypothesis tokens matched by the alignment
- : unigram recall, the fraction of reference tokens matched by the alignment
- : the recall weight. The original formula corresponds to here. Later versions tune it by language and task.
- : 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.
- and : penalty parameters ( and 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:
where:
- , , : 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.
- : the number of contiguous word-span moves used by the edit sequence
- : 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 score. The usual gives recall more weight.
where:
- : character n-gram precision, averaged over n-gram orders
- : character n-gram recall, averaged over n-gram orders
- : 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]Expand
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]Expand

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]Expand
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!