Document-Level and Context-Aware Translation › Evaluating Long-Form Translation
Language AI HandbookAll chapters You can report BLEU, chrF, COMET, BLEURT, or human assessments on aligned segments. For document-level evaluation, add tests whose units span sentences, such as repeated terms or a pronoun with an antecedent in a preceding sentence.
Document-level metrics
One document BLEU convention joins the hypothesis sentences within each document and joins the corresponding reference sentences the same way. Use the resulting document pairs as the scoring segments. The BLEU algorithm clips n-gram matches against the reference within each scoring segment. Joining sentences lets n-grams cross their boundaries and changes where counts are clipped. With one reference, the corpus brevity penalty stays the same if each joined token sequence consists of the existing sentence tokens in order, with no added boundary tokens. The total hypothesis and reference lengths then stay the same. Report the segmentation and aggregation convention. The resulting BLEU score does not directly measure terminology consistency.
One way to extend a learned metric is to give it context at scoring time. Vernikos et al. (2022) adapted pretrained COMET and COMET-QE to use neighboring sentences. They used WMT 2021 human MQM annotations to evaluate the extension. In separate contrastive tests for pronoun resolution and word-sense disambiguation, the document-level, reference-free COMET-QE ranked the correct translation highest more often than sentence-level COMET-QE. Use the scores to compare systems on a specified evaluation set, and inspect individual errors to see where the systems differ.
Use automatic metrics to screen systems on a specified evaluation set. Check terminology and discourse separately, and ask reviewers to inspect the translated documents for the properties that matter to readers.
Terminology metrics
With source occurrences aligned to observed target variants, compute all three scores for each glossary term. Use the same denominator throughout. It is the total number of source occurrences, including those without an aligned rendering. Report whether you match surface forms exactly or group acceptable forms into predefined variants.
- Term accuracy counts occurrences with the required target .
- Term consistency counts occurrences with the most frequent observed variant.
- Term coverage counts occurrences with any aligned rendering, whether correct or incorrect.
The scores help distinguish omissions from a uniform choice of the wrong term. You can report them per term or aggregate them by document or corpus. A system with 95% term accuracy overall might still fail on a specific term, which the per-term view can reveal.
Pronoun and discourse evaluation
A Spanish reference for the engineer–manager example can preserve the ambiguity with a clause such as Dijo que revisaría el informe. Both subjects are unstated. To isolate a phenomenon, you can use a targeted test suite. Cai and Xiong (2020) test pronouns, discourse connectives and ellipsis in English-to-Chinese translation. WMT 2021 instead asked human evaluators to assess translation with surrounding context in view. These procedures answer different questions about the system.
Ask raters to mark specific errors so you can see where a system struggles. The full MQM typology includes a coherence error type. Accuracy and terminology are among the high-level dimensions in MQM Core. State which version and error types you used so readers can interpret the breakdown.
Contamination and benchmark hygiene
Check whether benchmark documents or their translations might have reached the model during training. Li et al. (2024) found that the effect of contamination on scores varied across the question-answering benchmarks they examined. For document translation, report what you could check about overlap and evaluate on newly collected or held-out material where possible.
When reporting document-level results, include:
- The source of the test documents, with dates and licenses.
- Whether the documents could plausibly appear in web-crawled pretraining data.
- A held-out or newly collected set, if possible.
- The exact decoding configuration and model version.
- Human evaluation results alongside automatic metrics.
Measure targeted discourse performance alongside aggregate scores. In Voita et al.'s English-to-Russian study, the context-aware decoder CADec improved on targeted tests of deixis, ellipsis and lexical cohesion. Its BLEU difference from the context-agnostic system trained on 6 million sentence pairs did not reach statistical significance. Report the language pair, data and comparison system before generalizing a gain. For a result on public text, check overlap and try to replicate it on a separate test set.
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!