TL;DR
Current machine translation evaluation metrics struggle with long documents because they're designed for sentences. This paper introduces SEGALE, a novel scheme that adapts existing metrics for book-length texts by intelligently segmenting and aligning source and translated documents. SEGALE not only enables document-level evaluation but also reveals that many LLMs, despite their claimed long context windows, perform poorly on extended texts.
What Problem Does This Paper Address?
The rise of Large Language Models (LLMs) has revolutionized machine translation (MT), offering impressive performance and the ability to handle long contexts. However, a significant gap exists between what LLMs can generate (long, coherent documents) and what current evaluation metrics can assess. Existing metrics like COMET are limited by token counts (e.g., 512 tokens) and rely on strict sentence boundaries. This forces researchers to either use sentence-level prompting, which doesn't reflect true document-level generation, or artificially segment texts, which can distort results. Furthermore, these metrics often fail to reliably detect common LLM translation errors like under-translation (missing content) and over-translation (hallucinated content) in longer texts. This paper aims to bridge this gap by providing a robust method for evaluating MT at the document level, specifically for book-length documents.
Methods
The core of the proposed solution is SEGALE (SEGment, ALign, and Evaluate). It's a three-step process:
- Sentence Segmentation: Documents (both source and translated) are first broken down into individual sentences using off-the-shelf sentence segmenters like
ersatzandspaCy. - Sentence Alignment: This is the most novel part. SEGALE uses a sophisticated alignment strategy based on
Vecalign. It leverages multilingual sentence embeddings to find many-to-many alignments between source and target sentences, even when sentence boundaries don't perfectly match. A key innovation here is an adaptive penalty search mechanism. This mechanism dynamically adjusts a "skip cost" to balance the risk of aligning unrelated sentences (over-insertion) versus failing to align semantically similar ones (over-deletion). This is crucial for handling the varied sentence boundaries often produced by LLMs. To improve alignment quality, the authors also fine-tune a text embedding model (BGE-M3) on a synthetic dataset designed to better handle sentence segmentation granularities. - Evaluation: Once sentences are aligned, existing sentence-level metrics (like COMET and MetricX) are applied to the aligned sentence pairs. For cases where no alignment is found (indicating potential under- or over-translation), a fixed penalty is assigned. The final document-level score is an average of these segment scores, along with a "Null Alignment Ratio" (NA ratio) to quantify these errors.
Datasets
The authors utilize several datasets:
- WMT 2024 Metrics Shared Task dataset: Used for initial validation and experiments. This dataset includes source texts, system translations, and MQM human evaluations.
- Synthetic Datasets: To specifically test robustness to translation anomalies, they create synthetic datasets by:
- Under-/Over-Translations: Randomly removing sentences from source/reference or system translations.
- Varied Sentence Boundaries: Using GPT-40 to merge adjacent sentences in the source text, simulating LLM-generated sentence boundary variations.
- Book-Length Texts: For evaluating LLMs on book-length translation, they use book chapters from the WMT 2024 Discourse-Level Literary Translation task, specifically focusing on a book from the training split.
Key Insights and Ideas
- The "Long Context" Paradox: LLMs are marketed with massive context windows (up to 1M tokens), yet current evaluation methods can't truly test this capability. SEGALE provides a way to finally assess performance on genuinely long documents.
- LLMs Struggle with True Book-Length Translation: Despite impressive short-context performance, many open-weight LLMs show a sharp degradation in translation quality and a significant increase in under-/over-translation errors when pushed to their claimed maximum context lengths (e.g., 4k or 8k tokens). This suggests their "long context" capabilities might be overstated or not fully utilized in practice for translation.
- Sentence Boundary Variation is a Major Hurdle: LLMs often produce translations with different sentence structures than the source. SEGALE's alignment mechanism, particularly the adaptive penalty search, is crucial for handling these many-to-one and one-to-many alignments effectively.
- Fine-tuning Embeddings Matters: Customizing text embedding models for sentence alignment, especially for handling varied sentence granularities, significantly improves the alignment process and, consequently, the evaluation.
- Existing Metrics are Insufficient Alone: The paper's preliminary experiments show that simply concatenating text and feeding it to standard metrics fails to reliably detect under- and over-translation errors, highlighting the need for a more sophisticated approach like SEGALE.
Key Results
- SEGALE Outperforms Baselines: SEGALE achieves significantly higher correlation with human judgments compared to the
mwerSegmenterbaseline across various test cases (original, over-translate, under-translate, flex-boundary). - Comparable to Gold Standard: SEGALE's performance is comparable to evaluations using groundtruth sentence boundaries and alignments ("Gold"), demonstrating its effectiveness.
- Robustness to Errors: SEGALE shows remarkable robustness to under- and over-translation errors, with performance degradation being much less severe than
mwerSegmenter. For instance, in the "under-translate" case,mwerSegmentersuffers significant performance drops, while SEGALE remains robust. - LLM Performance Degradation: When evaluating LLMs on book-length texts (up to 8k tokens), most models show a sharp decline in translation quality. Qwen2.5-72B-Instruct is noted as an exception, showing more stable performance and even slight improvement with increasing context length up to 4k.
- NA Ratio as an Indicator: The Null Alignment Ratio (NA ratio) proves to be a useful auxiliary metric for identifying potential over-/under-translation issues.
Limitations and Future Work
- Underlying Metrics: The current SEGALE scheme relies on sentence-level metrics, which may not fully capture discourse-level phenomena. Future work could explore combining SEGALE with metrics that explicitly incorporate surrounding context or discourse information.
- Adaptive Penalty Search: While effective, the fixed penalty for null alignments might become crude as metrics improve. Future work could revisit this to delegate more error detection to the underlying metrics, though this might make the NA ratio less reliable.
- Fine-tuned Embedding Model: The current fine-tuned embedding model is trained on a limited dataset and languages. Expanding this to more languages and data is a future direction.
- Synthetic Data vs. Real-World: The synthetic test sets approximate real-world LLM translations but don't capture all behaviors, such as discourse-level content reordering. More extensive real-world testing is planned.
- LLM-Based Metrics: The paper acknowledges that LLM-based metrics are a promising future solution but are currently too expensive. They plan to explore open-source LLM counterparts for metrics in a separate study.
Summary updated