Extending Automatic Machine Translation Evaluation to Book-Length Documents

TL;DR

SEGALE extends automatic MT evaluation to long documents, outperforming existing schemes with high correlation to human judgments.

cs.CL 🔴 Advanced 2025-09-22 48 views
Kuang-Da Wang Shuoyang Ding Chao-Han Huck Yang Ping-Chun Hsieh Wen-Chih Peng Vitaly Lavrukhin Boris Ginsburg
Machine Translation Long-Document Evaluation Automatic Metrics Sentence Alignment Large Language Models

Key Findings

Methodology

SEGALE employs sentence segmentation, dynamic alignment via Vecalign, and null alignment detection to evaluate arbitrarily long texts. It integrates a custom text embedding model to handle varied sentence boundaries and content omissions. Null alignments indicate over/under-translation, with penalties applied to improve robustness. The approach enables comprehensive, end-to-end evaluation of long documents, including books, across multiple languages, with high correlation to human assessments.

Key Results

  • Across en-de, en-es, ja-zh, SEGALE achieved Kendall's τ scores around 0.3085, close to groundtruth (0.3110), significantly outperforming mwerSegmenter (0.2874). It effectively detects over/under-translation errors, especially in long texts and boundary variations. Experiments reveal many open-source LLMs underperform at their reported maximum context lengths, with error rates rising sharply beyond limits.
  • In book-length text evaluation, SEGALE successfully identified translation quality decline when models exceeded their context window, validating its practical utility. Ablation studies confirmed the superiority of the custom BGE-M3 embedding over LASER and original BGE-M3, enhancing alignment accuracy and scoring reliability.
  • The framework demonstrated robustness across languages and scenarios, with consistent improvements in correlation metrics and error detection, establishing a new standard for long-form translation evaluation.

Significance

This work addresses a critical bottleneck in long document MT evaluation, bridging the gap between model capabilities and metric limitations. By enabling automatic, accurate assessment of lengthy texts, it facilitates development of more coherent, context-aware translation systems. The approach aligns with the long-term goal of holistic, document-level language understanding, impacting both academia and industry, especially in publishing, legal, and technical translation sectors.

Technical Contribution

SEGALE introduces a novel combination of sentence segmentation, adaptive alignment with skip cost tuning, and null alignment detection, integrated with a custom semantic embedding model. This design overcomes token length constraints of existing metrics, handles complex sentence boundary variations, and provides content completeness measures. It extends the scope of automatic evaluation from sentence to document level, with theoretical and practical advantages in robustness and applicability.

Novelty

This is the first comprehensive framework explicitly designed for automatic evaluation of long documents in machine translation, combining sentence segmentation, dynamic alignment, and content omission detection. Unlike prior work limited to fixed-length inputs or artificial boundary assumptions, SEGALE adapts to arbitrary lengths and varied sentence structures, filling a significant gap in evaluation methodology.

Limitations

  • Despite improvements, the alignment accuracy can still be affected by paraphrasing and complex sentence structures, especially in highly paraphrased or noisy translations.
  • Null alignment detection may misclassify semantically similar but content-different sentences, impacting score stability.
  • Computational cost increases with document length, requiring further optimization for ultra-long texts (millions of words).

Future Work

Future directions include integrating more sophisticated context modeling, multi-modal evaluation (e.g., images, audio), and real-time assessment capabilities. Enhancing alignment algorithms for better handling of paraphrasing and structural variations, as well as reducing computational overhead, will be key to scaling the approach for industrial-scale applications.

AI Executive Summary

The rapid development of large language models (LLMs) has revolutionized machine translation (MT), especially in handling longer contexts. However, evaluating the quality of translations for lengthy documents such as books or research papers remains a significant challenge. Traditional metrics like BLEU and COMET are limited by sentence boundaries and token length restrictions, making it difficult to assess the coherence and completeness of long-form translations comprehensively.

This paper introduces SEGALE, a novel evaluation framework designed to extend the capabilities of existing automatic metrics to arbitrarily long documents. The core idea involves segmenting long texts into sentences using off-the-shelf tools, then applying a dynamic sentence alignment algorithm (Vecalign) that incorporates a custom semantic embedding model to handle varied sentence boundaries and content omissions. Null alignments are used to detect over- and under-translation errors, with penalties integrated into the scoring process. This approach allows for a holistic, sentence-level evaluation that is aggregated into a document-level score, maintaining high correlation with human judgments.

Extensive experiments across multiple language pairs demonstrate that SEGALE outperforms traditional long-document evaluation schemes like mwerSegmenter, achieving correlation scores close to groundtruth benchmarks. It effectively captures translation anomalies, especially in scenarios with boundary variations and content omissions. When applied to book-length texts, the framework reveals that many open-source LLMs fail to translate beyond their reported maximum context lengths, with errors increasing sharply as input length grows. These findings highlight both the potential and current limitations of LLMs in long-text translation.

Overall, SEGALE represents a significant step forward in automatic long-document translation evaluation, providing a robust, scalable, and accurate tool for researchers and industry practitioners. Its ability to handle arbitrary lengths and complex translation errors paves the way for more coherent, context-aware translation systems in the future. Nonetheless, challenges remain in optimizing alignment accuracy and computational efficiency for ultra-long texts, guiding future research directions.

Deep Analysis

Background

Long-form machine translation (MT) has evolved from simple concatenation of sentences to sophisticated models incorporating broader context, such as multi-encoder architectures and large-scale document corpora. Despite these advances, evaluation methodologies lag behind, primarily limited to sentence-level metrics like BLEU, which cannot capture discourse coherence or content omissions in lengthy texts. Recent efforts include model-based metrics like COMET and MetricX, trained on segment-level data, but they struggle with long documents due to token limits and rigid sentence boundary assumptions. Manual evaluation remains costly and subjective, prompting the need for automated, robust, and scalable evaluation frameworks capable of handling entire books or lengthy articles.

Core Problem

The core challenge lies in reliably assessing translation quality over arbitrary-length documents without being constrained by token limits or sentence boundary dependencies. Existing metrics cannot effectively detect content omissions, hallucinations, or boundary inconsistencies in long texts. Additionally, many models are tested only within their maximum token capacities, which are often far below real-world long documents. This disconnect hampers progress in developing truly long-context-aware translation systems, as there is no unified, automated evaluation method that can handle the complexities of book-length translations, including varied sentence boundaries and content integrity issues.

Innovation

SEGALE introduces a comprehensive solution: • Sentence segmentation using off-the-shelf tools to handle diverse sentence boundaries. • Dynamic sentence alignment via Vecalign with adaptive skip costs, optimized through heuristic search, to accurately match source and translation segments. • Custom semantic embedding models trained on synthetic data to improve alignment robustness across languages and boundary variations. • Null alignment detection to identify and penalize content omissions and hallucinations, ensuring content completeness. • Aggregation of sentence-level scores into a holistic document-level evaluation, compatible with existing metrics like COMET and MetricX. These components collectively enable reliable, scalable evaluation of long documents, overcoming token length constraints and boundary rigidity.

Experiments

The experimental setup involves datasets from WMT 2024, covering multiple language pairs and including human judgments for correlation analysis. The authors simulate translation errors by removing sentences or merging neighboring sentences, creating scenarios of over- and under-translation. They compare SEGALE against baselines such as using true sentence boundaries (groundtruth) and the mwerSegmenter alignment scheme. Evaluation metrics include Kendall’s τ correlation with human scores and null alignment ratios. Multiple ablation studies test different sentence embeddings and segmentation tools, confirming the robustness of the proposed framework across scenarios. Results demonstrate superior correlation with human judgments, especially in error-prone and boundary-variant cases.

Results

SEGALE achieves Kendall’s τ scores around 0.3085, close to the groundtruth (0.3110), outperforming mwerSegmenter (0.2874). It maintains high robustness in scenarios with boundary variations and content omissions, with error rates rising sharply in models exceeding their context window. The custom BGE-M3 embedding significantly improves alignment accuracy over LASER and original BGE-M3. In book-length evaluation, the framework detects translation quality degradation when models surpass their maximum context length, validating its practical utility. Overall, the results confirm that SEGALE provides a reliable, scalable, and precise long-document evaluation method, bridging the gap between model capabilities and evaluation needs.

Applications

This framework can be directly applied to evaluate long texts such as books, legal documents, and research papers, facilitating quality control in industrial translation pipelines. It supports multi-language, multi-domain scenarios, enabling developers to optimize models for discourse-level coherence. In academia, it aids in benchmarking long-text translation systems and analyzing model limitations. Long-term, integrating SEGALE with real-time translation systems and multi-modal content analysis could revolutionize comprehensive content understanding, enabling AI to process and evaluate entire books or extensive reports efficiently.

Limitations & Outlook

Despite its robustness, SEGALE still faces challenges in alignment accuracy when paraphrasing or complex sentence structures are present. Null alignment detection may misclassify semantically similar but content-different sentences, affecting stability. The computational cost increases with document length, requiring further optimization for ultra-long texts. Future work should focus on improving alignment algorithms, reducing processing time, and extending multi-modal evaluation capabilities to handle images and audio embedded in long documents.

Plain Language Accessible to non-experts

想象你在评估一本厚厚的书的翻译质量。以前的方法就像只看每一页的句子,逐页打分,但当书变得特别长时,这样很费劲,也容易遗漏整体的连贯性。这个研究提出一种新方法,就像用一个智能的扫描仪,把整本书拆成章节,自动找到每个章节对应的翻译,然后用一个聪明的算法判断翻译是否完整、是否有遗漏或多余。它还能检测到一些内容被遗漏或多翻的情况,就像发现书中有些章节被漏掉或重复。这样一来,就能更全面、准确地评估长篇文章的翻译质量,而不需要手工逐句检查。这个方法让我们可以用自动工具快速判断一本书的翻译水平,节省了大量时间,也让评估变得更科学、更可靠。

ELI14 Explained like you're 14

想象你在看一本超级长的漫画书,要判断翻译得怎么样。以前的方法就像只看几页,觉得还不错就算了,但如果漫画很长,这样就不够全面。现在,这个新方法就像请一个聪明的机器人帮你,把漫画拆成很多小块,然后逐一对照原版和翻译,看看有没有漏掉重要的内容,或者多出了不该有的东西。这个机器人还能发现有些内容被漏掉了,或者翻译里出现了奇怪的东西,就像漫画中出现了不属于原故事的角色。这样一来,你就能更准确地知道这次翻译到底好不好,特别适合长篇漫画或者小说。它让评估变得简单又靠谱,不用一个个看全部内容,也不用担心漏掉重要部分。是不是很酷?

Glossary

Sentence Alignment (句子对齐)

Matching sentences in source and translation to ensure content correspondence, often using dynamic programming or greedy algorithms.

Used in SEGALE to align sentences across long texts for scoring.

Null Alignment (空对齐)

Indicates absence of corresponding content between source and translation, used to detect omissions or hallucinations.

Critical for identifying over/under-translation errors.

Vecalign

A vector-based sentence alignment algorithm minimizing word error rate for high-quality matching.

Core component for aligning long documents in SEGALE.

BGE-M3

A multilingual semantic embedding model trained on synthetic data for robust sentence similarity measurement.

Enhances alignment accuracy across varied sentence boundaries.

Kendall's τ

A statistical measure of rank correlation, indicating how well automatic scores match human judgments.

Used to evaluate the effectiveness of SEGALE.

Open Questions Unanswered questions from this research

  • 1 The impact of multi-modal content (images, audio) on long document evaluation remains unexplored, future work could integrate these modalities for richer assessment.
  • 2 Handling ultra-long texts (millions of words) efficiently and accurately still poses computational challenges, requiring algorithmic optimization.

Applications

Immediate Applications

Long-Document Translation Evaluation Tool

Provides automated, accurate assessment for books, legal, and academic texts, supporting multiple languages and improving quality control.

Long-term Vision

AI-driven Content Understanding

Enables comprehensive analysis, summarization, and quality assessment of entire books or reports, transforming content management and translation industries.

Abstract

Despite Large Language Models (LLMs) demonstrating superior translation performance and long-context capabilities, evaluation methodologies remain constrained to sentence-level assessment due to dataset limitations, token number restrictions in metrics, and rigid sentence boundary requirements. We introduce SEGALE, an evaluation scheme that extends existing automatic metrics to long-document translation by treating documents as continuous text and applying sentence segmentation and alignment methods. Our approach enables previously unattainable document-level evaluation, handling translations of arbitrary length generated with document-level prompts while accounting for under-/over-translations and varied sentence boundaries. Experiments show our scheme significantly outperforms existing long-form document evaluation schemes, while being comparable to evaluations performed with groundtruth sentence alignments. Additionally, we apply our scheme to book-length texts and newly demonstrate that many open-weight LLMs fail to effectively translate documents at their reported maximum context lengths.

cs.CL