Putting Evaluation in Context: Contextual Embeddings Improve Machine Translation Evaluation

Nitika Mathur, Timothy Baldwin, Trevor Cohn

Abstract

Traditional machine translation (MT) evaluation metrics like BLEU rely on surface-level n-gram matching, failing to capture semantic nuances. This paper demonstrates that contextual word embeddings, specifically from BERT, significantly enhance automatic MT evaluation. By proposing both unsupervised (BERTr) and supervised (ESIM) metrics, the authors show that context-aware representations correlate much more strongly with human judgment than previous state-of-the-art models. Furthermore, the study reveals that training on large-scale noisy data is more effective than training on small-scale high-quality data.

The Challenge of MT Evaluation

Evaluating the quality of machine-generated translation is a persistent hurdle in NLP. For decades, the industry has relied on "shallow" metrics such as BLEU or TER, which primarily count overlapping n-grams between a translation and a human reference. These metrics are inherently limited: they penalize valid synonyms and structural variations, failing to account for how a word's meaning shifts based on its context. This paper addresses the gap between automatic scores and human intuition by leveraging the power of contextual embeddings.

Methods: From Unsupervised to Supervised Metrics

The authors propose three main approaches utilizing pre-trained BERT embeddings:

  1. BERTr (Unsupervised): A parameter-free metric that calculates the cosine similarity between BERT embeddings of the translation and the reference. It uses an "approximate recall" mechanism to ensure the translation covers the key concepts found in the reference.
  2. Trained BiLSTM (+ Attention): A supervised model where BERT embeddings are processed through a Bidirectional LSTM. An attention mechanism explicitly aligns words between the translation and reference for more nuanced comparison.
  3. ESIM (Enhanced Sequential Inference Model): Adapted from Natural Language Inference (NLI), this model treats evaluation as an entailment task, using complex interaction layers to determine if the reference logically supports the translation.

Data Efficiency: Quantity Over Quality

A significant finding of this research concerns the nature of training data for neural evaluation metrics. The authors compared two training sets: TrainS (3,360 instances with averaged, high-quality human scores) and TrainL (125,000 instances with single, potentially noisy human annotations).

Pearson's r correlation improves significantly with more annotations, even if they are single/noisy, compared to a fixed set of high-quality annotations.

As shown in Figure 1, increasing the number of annotations—even if they are individual, noisy judgments—leads to a much higher correlation with human scores than relying on a smaller, cleaner dataset. This suggests that for neural metrics, exposure to a wide variety of linguistic phenomena is more critical than the absolute precision of any single data point.

Performance Benchmarks

The proposed metrics were evaluated on the WMT 2017 News dataset across various language pairs. The results demonstrate a clear superiority over traditional baselines and previous state-of-the-art trained metrics like RUSE.

Sentence-level Pearson correlation for various metrics on WMT 2017 to-English tasks. Trained models (TrainL) and BERTr significantly outperform traditional baselines.

At the sentence level (Figure 3), the supervised ESIM model trained on large data (TrainL) achieved an average Pearson correlation of 0.746, vastly outperforming BLEU (0.481) and the previous best metric, RUSE (0.682). Notably, even the unsupervised BERTr metric outperformed almost all previous trained models, highlighting the inherent strength of contextual representations.

Discussion and Future Directions

While contextual embeddings provide a massive boost, limitations remain. The models can occasionally be over-permissive, failing to penalize small but critical word changes (like the addition of "not") that invert a sentence's meaning. They also still struggle with highly complex syntactic paraphrasing.

Future work points toward Quality Estimation, where translations are evaluated by comparing them directly to the source sentence using cross-lingual embeddings, potentially removing the need for human-written references entirely. For now, this study proves that putting evaluation in context is the key to closing the gap between machine scores and human judgment.

Summary updated

BibTeX
@inproceedings{mathur2019putting,
  author = {Nitika Mathur and Timothy Baldwin and Trevor Cohn},
  title = {{Putting Evaluation in Context: Contextual Embeddings Improve Machine Translation Evaluation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1269},
}
Figure