Embarrassingly Easy Document-Level MT Metrics: How to Convert Any Pretrained Metric Into a Document-Level Metric

Giorgos Vernikos, Brian Thompson, Prashant Mathur, Marcello FedericoarXiv 2022

TL;DR

This paper introduces a surprisingly simple yet effective method to upgrade standard sentence-level machine translation (MT) metrics into document-level ones by simply prepending context sentences during the embedding process. The resulting "Doc-" metrics significantly improve correlation with human judgments and dramatically boost performance on discourse-heavy tasks like pronoun resolution and word sense disambiguation.

What Problem Does This Paper Address?

Most automatic MT evaluation metrics (like BLEU or BERTScore) operate on a sentence-by-sentence basis. However, language is inherently contextual. A sentence that looks like a perfect translation in isolation might be wrong in context—for example, by using the wrong gendered pronoun or an inconsistent technical term.

Human evaluators naturally use document-level context to resolve these ambiguities. The authors argue that automatic metrics should do the same. They hypothesize that existing metrics struggle when human reference sentences are ambiguous, and that providing surrounding context allows pretrained models to "disambiguate" these references, leading to more accurate quality scores.

Methods

The authors propose an "embarrassingly easy" extension: instead of feeding a single sentence into a pretrained model (like BERT or XLM-R), they feed the target sentence along with its preceding context (usually two sentences).

  • The Trick: For metrics like BERTScore, they concatenate the reference context to both the hypothesis and the reference during encoding. Crucially, while the model "sees" the context to create better embeddings, the metric only performs alignment and scoring on the tokens of the target sentence itself.
  • Metrics Covered: They applied this to BERTScore, Prism, COMET, and the reference-free COMET-QE.
  • Implementation: Since the underlying models (like RoBERTa or mBART) were already pretrained on long sequences (up to 512 tokens), no additional training or architecture changes were required.
Figure 1: To extend BERTScore to the document level, we add reference context to both the reference sentence and the hypothesis sentence. This context is used to improve the embeddings of the reference and hypothesis sentences, but is not used when performing alignment and scoring, which follows standard sentence-level BERTScore. The same methodology is applied to Prism and COMET/COMET-QE (not shown). Image adapted from Zhang* et al. (2020).

Datasets

The researchers evaluated their method using:

  • WMT 2021 Metrics Shared Task: They used "platinum" Multidimensional Quality Metrics (MQM) annotations—expert human judgments that specifically account for document context—across English→German, Chinese→English, and English→Russian.
  • Contrastive Discourse Sets: To test specific linguistic phenomena, they used ContraPro (pronoun resolution), a similar dataset for English→French, and DiscEvalMT (pronoun resolution and word sense disambiguation). These sets contain translation pairs where only context can reveal which one is correct.

Key Insights and Ideas

  • Context Resolves Reference Ambiguity: The biggest "aha" moment is that human references are often ambiguous. By giving the metric context, it can better understand what the reference meant, making it a fairer judge of the system's output.
  • Reference Context > Hypothesis Context: When scoring a hypothesis sentence, it's better to provide the previous reference sentences as context rather than the previous hypothesis sentences. This prevents "error propagation," where a metric penalizes a good sentence just because the previous translations in the document were poor.
  • Pretrained Models are "Latent" Document Models: Even if a model like COMET was fine-tuned on sentence-level data, it retains the ability to handle inter-sentential dependencies from its initial pretraining phase.
  • Simplicity Outperforms Complexity: This simple concatenation approach outperformed BlonDe, a more complex metric specifically designed for document-level MT.

Key Results

The document-level extensions showed clear, consistent improvements:

  • Better Correlation: Doc-metrics outperformed their sentence-level counterparts in 85% of tested conditions (excluding one outlier dataset with low-quality human references).
  • Discourse Mastery: On targeted tasks, Doc-COMET-QE saw massive jumps. For example, accuracy on pronoun resolution (Anaphora) rose from a baseline of 50% to 83.5%.
Table 1 shows Doc-metrics consistently achieving higher Pearson correlation with human MQM scores.
Table 2 highlights the dramatic accuracy gains on discourse-level phenomena like pronoun resolution and WSD.

The authors also found that performance generally scales with the amount of context provided, with two previous sentences often being the "sweet spot."

Figure 2: System-level Pearson correlation with human correlation vs. number of sentences of context for News (upper) and TED talks (lower). Although the results are noisy, in general we see correlation improve as the amount of context increases. The one exception is Zh→En News, which we attribute to poor human references (see § 4.1).

Limitations and Future Work

  • Garbage In, Garbage Out: The method is sensitive to the quality of the reference context. In the Chinese→English news task, where human references were of poor quality, adding context actually degraded the metric's performance.
  • Fluency Trade-off: By using reference context for the hypothesis, the metric cannot measure "document-level fluency" (how well the system's own sentences flow together).
  • Future Directions: The authors suggest this approach could be applied to other Natural Language Generation (NLG) tasks where discourse matters, such as summarization or chatbots. They also encourage the MT community to move away from sentence-level evaluation as the default.

Summary updated

BibTeX
@misc{vernikos2022embarrassingly,
  author = {Giorgos Vernikos and Brian Thompson and Prashant Mathur and Marcello Federico},
  title = {{Embarrassingly Easy Document-Level MT Metrics: How to Convert Any Pretrained Metric Into a Document-Level Metric}},
  year = {2022},
  eprint = {2209.13654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13654},
}
Figure