Extending Automatic Machine Translation Evaluation to Book-Length Documents

Kuang-Da Wang, Shuoyang Ding, Chao-Han Huck Yang, Ping-Chun Hsieh, Wen-Chih Peng, Vitaly Lavrukhin, Boris Ginsburg · DOI

Introduction: The Evaluation Lag in the Era of Long Context

Large Language Models (LLMs) have rapidly expanded their context windows, with some models now supporting up to 1 million tokens. However, our ability to evaluate the quality of translations at this scale has not kept pace. State-of-the-art metrics like COMET and MetricX are primarily designed for sentence-level evaluation, typically capped at around 512 tokens. These metrics rely on a strict one-to-one mapping between source and target sentences—a requirement that often fails in document-level translation.

When an LLM translates a book chapter, it may merge sentences, skip paragraphs (under-translation), or hallucinate additional content (over-translation). Traditional evaluation methods that rely on simple concatenation or string-based alignment fail to capture these "messy" outputs accurately. There is a critical need for a framework that can handle the structural flexibility of long-form machine translation (MT).

SEGALE: A Robust Framework for Document-Level Evaluation

To bridge this gap, we introduce SEGALE (SEGment, ALign, and Evaluate). SEGALE is a three-step pipeline designed to adapt sentence-level metrics for book-length documents.

  1. Segment: The document-level translation is first broken into individual sentences using standard NLP tools like ersatz or spaCy.
  2. Align: This is the core innovation of the framework. SEGALE utilizes a robust semantic aligner (Vecalign) powered by a fine-tuned BGE-M3 embedding model. Unlike traditional string-matching methods, semantic alignment is resilient to the creative paraphrasing and structural shifts common in LLM outputs.
  3. Evaluate: Once aligned into blocks (which may be many-to-one or one-to-many), standard metrics are applied. If a sentence has no match (a "null alignment"), it receives a fixed penalty score.

A key component of the alignment phase is the Adaptive Penalty Search. This algorithm automatically adjusts the "skip cost" ($eta_{skip}$)—the penalty incurred when a sentence is left unaligned. By searching for an optimal penalty, SEGALE can distinguish between legitimate translations and errors like hallucinations or omissions.

Adaptive Penalty Search in SEGALE: Adjusting the skip cost (beta_skip) allows the framework to correctly identify over- and under-translations by finding the optimal alignment balance.

Identifying the "Context Gap" in Modern LLMs

We applied SEGALE to evaluate several leading LLMs on the WMT 2024 Discourse-Level Literary Translation task. Our analysis revealed a significant "Context Gap": a discrepancy between a model's theoretical context window and its effective translation window. Many models start "forgetting" or summarizing content once the input exceeds a few thousand tokens.

As context length increases, many models begin to struggle. We monitored both the translation quality (using MetricX) and the Null Alignment Ratio (NA Ratio), which tracks how often content is skipped or hallucinated. A higher NA Ratio indicates that the model is failing to maintain a faithful translation of the source text.

Translation quality (a) and null alignment ratio (b) as a function of context length. Most models exhibit significant degradation and increased omissions (higher NA ratio) well before reaching their maximum context limits.

The results were striking. While Qwen2.5-72B remained remarkably stable up to 8k tokens, other models like Llama-3.1-70B and Aya-Expanse-32B showed sharp quality degradation and a spike in the NA Ratio as context reached 8k tokens. In extreme cases, such as EuroLLM-9B, the model essentially ceased translating and began summarizing the input once the context exceeded 4k tokens.

Conclusion and Future Directions

SEGALE provides a necessary tool for the rigorous evaluation of long-form machine translation. By moving beyond simple string matching to semantic alignment with adaptive penalties, it achieves a correlation with human judgment that rivals ground-truth "Gold" alignments, significantly outperforming existing baselines like mwerSegmenter.

Future work will focus on refining the scoring of null alignments to better reflect the severity of specific errors and exploring more cost-effective LLM-based metrics for document-level evaluation. As LLMs continue to push the boundaries of context, frameworks like SEGALE will be essential for ensuring that translation quality remains high across entire volumes of text.

Summary updated

BibTeX
@inproceedings{wang2025extending,
  author = {Kuang-Da Wang and Shuoyang Ding and Chao-Han Huck Yang and Ping-Chun Hsieh and Wen-Chih Peng and Vitaly Lavrukhin and Boris Ginsburg},
  title = {{Extending Automatic Machine Translation Evaluation to Book-Length Documents}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=3WR17h0Pj3},
}
Figure