Researchers from Peking University have developed RST-Att, a document-level machine translation (DocMT) model that leverages the logical structure of a document—specifically Rhetorical Structure Theory (RST)—to guide its attention mechanism. By moving away from arbitrary context windows and instead following the discourse structure, the model achieves state-of-the-art results in translation quality and significantly improves linguistic consistency across long texts.
The Challenge of Document-level Context
While standard Neural Machine Translation (NMT) excels at translating individual sentences, it often struggles with entire documents. Traditional document-level models typically attempt to resolve this by feeding the model a few surrounding sentences or a fixed-length window of text as context.
The authors argue that this approach is somewhat arbitrary, as it ignores the discourse structure—the way elementary text units are logically linked to form a coherent narrative. Without understanding if a sentence is an elaboration, a contrast, or a background for another, a model may miss the long-range dependencies required for consistent pronoun usage (deixis) or specialized terminology (lexical consistency). Furthermore, translating an entire document at once (Doc2Doc) often fails to converge during training, necessitating a more stable, paragraph-to-paragraph approach.
The RST-Att Framework
The authors introduce a framework that combines intelligent segmentation with a structure-aware transformer architecture.
Intelligent Paragraph Segmentation
Instead of cutting text at fixed intervals, the researchers use the TextTiling algorithm. This method identifies subtopic shifts based on lexical patterns, creating more natural "chunks" for the model to process.
As shown in the distribution of sentence counts, TextTiling produces segments that are more naturally aligned with discourse shifts compared to standard neural segmentation models, providing a more stable context for translation.
Multi-Granularity RST Attention
The core innovation of this work is the RST-Att mechanism. The process begins by using an end-to-end parser to transform paragraphs into RST trees. In these trees, the leaves are "Elementary Discourse Units" (EDUs), and the branches represent rhetorical relationships.
The authors modified the Transformer's self-attention mechanism to be multi-granularity:
- Lower Layers: Tokens can only "see" other tokens within their own EDU.
- Higher Layers: The attention range expands according to the RST tree structure.
- Final Layer: The model achieves a global view of the entire paragraph.
This mimics a bottom-up human reading strategy: first understanding local clauses, then seeing how they connect to form larger ideas. This approach effectively "denoises" the context, focusing on the most relevant logical neighbors before looking at the big picture.
Experimental Evaluation
The model was evaluated on three standard English-to-German benchmarks: TED (talk transcripts), News (News Commentary v11), and Europarl (European Parliament proceedings). The authors used d-BLEU (document-level BLEU) as their primary metric to capture n-gram matches across the entire document.
Key Results and Performance
- State-of-the-Art Performance: RST-Att achieved the highest d-BLEU scores across all three datasets, notably hitting 34.55 on Europarl.
- Linguistic Superiority: On specialized contrastive test sets, RST-Att significantly outperformed existing models. It achieved 81.7% in lexical consistency, vastly outperforming ChatGPT (44.4%) and previous DocMT models (approx. 46-58%). It also showed significant gains in handling omitted words (VP ellipsis), scoring 87.2%.
- Comparison with LLMs: While large language models like GPT-4 performed better on TED and News due to their massive training data, RST-Att outperformed ChatGPT on the Europarl dataset, suggesting that specialized discourse modeling can beat brute-force scaling in specific domains.
Conclusion and Future Work
The success of RST-Att demonstrates that structured context is more valuable than simply increasing context volume. However, the model currently relies on an external RST parser, meaning errors in discourse parsing can propagate into the translation. Future work will focus on better utilizing specific rhetorical labels (e.g., "Contrast" vs. "Result") and improving the robustness of the initial discourse parsing to further enhance translation quality.
Summary updated