Align-then-Slide: A complete evaluation framework for Ultra-Long Document-Level Machine Translation

Jiaxin Guo, Daimeng Wei, Yuanchang Luo, Xiaoyu Chen, Zhanglin Wu, Huan Yang, Hengchao Shang, Zongyao Li, Zhiqiang Rao, Jinlong Yang, Hao YangarXiv 2025 · DOI

Introduction

Traditional machine translation (MT) evaluation has long relied on the assumption of a 1:1 correspondence between source and target sentences. Metrics such as BLEU or COMET typically operate on isolated sentence pairs, assuming that the structural integrity of a document is preserved during translation. However, the advent of Large Language Models (LLMs) has challenged this paradigm. In ultra-long document-level translation, LLMs frequently produce "structural mismatches," including sentence omissions, many-to-one merges, or one-to-many splits. These deviations break standard evaluation pipelines, as a single missing sentence can shift the entire alignment, causing subsequent scores to collapse regardless of translation quality.

Comparison between the ideal 1:1 sentence mapping and the complex structural mismatches (omissions, merges) found in real-world LLM translations.

To address this, we present Align-then-Slide, a novel evaluation framework specifically designed to handle the complexities of document-level MT by restoring structural order before scoring.

The Align-then-Slide Framework

The framework operates in two distinct stages: automated alignment and multi-granularity evaluation.

Stage 1: Align

The first stage aims to synchronize the translated document with the source structure using an "anchor-on-source" philosophy.

  1. Segmentation: The source and target documents are segmented into individual sentences.
  2. Similarity Mapping: An $m \times n$ similarity matrix is constructed, where each cell represents the semantic similarity between a source sentence and a target sentence, calculated using reference-free metrics like COMET-Kiwi or LaBSE.
  3. Dynamic Programming (DP): A DP algorithm identifies the optimal path through the matrix, maximizing the global similarity score to determine the most likely mapping.
  4. Reconstruction: The target document is reconstructed to match the source sentence count. Omissions are represented by empty placeholders, and merged sentences are concatenated. This ensures all systems are evaluated against a consistent structural baseline.

Stage 2: n-Chunk Sliding Evaluate

Once aligned, the document is evaluated using a sliding window approach. Rather than scoring single sentences, the framework calculates scores for "n-chunks" (windows of 1, 2, 3, and 4 sentences).

Overview of the Align-then-Slide framework, detailing the alignment matrix reconstruction and the multi-granularity sliding window evaluation.

This multi-granularity approach serves a dual purpose: smaller windows (1-chunk) are highly sensitive to local omissions, while larger windows (2-4 chunks) capture document coherence and mitigate the noise introduced by many-to-one mappings. The final evaluation is an average of these sliding scores, providing a holistic view of the translation's quality.

Empirical Validation

The framework was validated across multiple datasets, including the WMT 2020 Chinese→English benchmark and a newly curated real-world test set of 50 high-quality document pairs from CommonCrawl.

Key Results

  • Superior Human Correlation: On the WMT benchmark, Align-then-Slide achieved a 0.929 Pearson correlation with expert MQM (Multidimensional Quality Metrics) rankings, significantly outperforming sentence-level COMET (0.679).
  • Robustness to LLM Outputs: On the real-world test set involving various Qwen LLM versions, the correlation remained exceptionally high at 0.943, demonstrating the framework's ability to handle non-linear translations.
  • Training Optimization: Beyond evaluation, the framework proved effective as a reward signal for Reinforcement Learning. Models optimized using Align-then-Slide via Contrastive Preference Optimization (CPO) consistently outperformed supervised fine-tuning (SFT) baselines in human preference tests.

Conclusion and Future Work

Align-then-Slide provides a robust solution for the structural challenges of document-level MT evaluation. By forcing alignment before scoring and utilizing multi-granularity windows, it aligns closely with human judgment. The primary remaining challenge is the computational cost associated with generating large similarity matrices for ultra-long documents. Future research will focus on optimizing these algorithms through pruning and batching to scale the framework for even longer contexts, such as full-length manuscripts.

Summary updated

BibTeX
@misc{guo2025align,
  author = {Jiaxin Guo and Daimeng Wei and Yuanchang Luo and Xiaoyu Chen and Zhanglin Wu and Huan Yang and Hengchao Shang and Zongyao Li and Zhiqiang Rao and Jinlong Yang and Hao Yang},
  title = {{Align-then-Slide: A complete evaluation framework for Ultra-Long Document-Level Machine Translation}},
  year = {2025},
  eprint = {2509.03809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03809},
}
Figure