flores-200-eval
No Language Left Behind: Scaling Human-Centered Machine Translation — NLLB Team et al. (2022) (arXiv:2207.04672, 2022)
What this evaluates
Evaluates machine translation quality across 200 languages by measuring meaning preservation and fluency. It compares automatic metrics (spBLEU, chrF++) against calibrated human judgments using the XSTS protocol, while also assessing translation safety/toxicity.
Datasets
- FLORES-200 — total 1000; splits: test (1000); repo https://github.com/facebookresearch/fairseq/tree/nllb
Metrics
spBLEU— range: [0, 1]- BLEU score using a standardized SentencePiece tokenizer covering 101+ languages, combining 1-gram to 4-gram precision with a brevity penalty.
chrF++— range: [0, 1]- Character n-gram F-score (n=1 to 6) complemented with word unigrams and bi-grams, computed using sacrebleu settings.
XSTS(primary) — range: [1, 5]- Crosslingual Semantic Text Similarity score on a 1-5 scale assessing meaning preservation. Calibrated scores are computed by taking the median of 3 annotator scores per sentence, averaging across sentences, and applying moderated calibration to adjust for annotator harshness/generosity.
Input / output format
Input: Source sentence and machine-translated target sentence (for human evaluation); source sentence and reference translation (for automatic metrics).
Output: Human: integer score from 1 to 5. Automatic: continuous float score.
Scoring recipe
# 1. Aggregate raw human scores
median_scores = [median(annotator_scores) for annotator_scores in sentence_scores]
H_raw = mean(median_scores)
# 2. Compute calibration offset
C_raw = mean([median(annotator_scores) for annotator_scores in calibration_scores])
C_mean = 3.01 # mean across all directions
# 3. Apply moderated calibration
C_shift = C_raw - C_mean
S = tanh(-C_shift)
E = tanh(H_raw - 5) if C_shift <= 0 else tanh(H_raw - 1)
H_cal = H_raw + S * E
Common pitfalls
- Using uncalibrated human scores, which vary significantly due to annotator harshness/generosity across language pairs.
- Assuming BLEU is sufficient for non-space-separated languages without using spBLEU or chrF++.
- Confusing corpus-level chrF++ with average sentence-level chrF++, which show different correlation strengths with human judgment.
Evidence (verbatim from paper)
We find that automated metrics like spBLEU and chrF++ correlate reasonably well with calibrated human evaluations of translation quality, as seen in Figure 24. In particular, we find that the Spearman R correlation coefficients between aggregated XSTS and spBLEU, chrF++ (corpus) and chrF++ (average sentence-level) are 0.710, 0.687, and 0.694 respectively.
Citation
@misc{nllb2022scaling,
title={No Language Left Behind: Scaling Human-Centered Machine Translation},
author={NLLB Team et al. (2022)},
year={2022},
note={arXiv:2207.04672}
}
- arXiv: 2207.04672