Introduction
Translating a document involves more than just processing a sequence of isolated sentences; it requires a deep understanding of the "connective tissue"—the content words and logical flow—that binds a text together. Standard Neural Machine Translation (NMT) models typically operate on a sentence-by-sentence basis, often losing document-wide coherence. While Document-level NMT (DocNMT) attempts to incorporate surrounding context, it frequently struggles with a "signal-to-noise" problem, treating functional words (like "the" or "of") with the same importance as key thematic terms.
This paper introduces EGCR (Effective Graph Context Representation), a framework designed to filter out noisy filler words and construct a heuristic graph of essential terms and sentences. By focusing on "effective context," EGCR helps models capture document-wide relationships more accurately without the need for computationally expensive external syntactic parsers.
Methods
The EGCR framework utilizes a three-step pipeline to refine and represent document context:
- Content Word Recognition: To mitigate noise, the model identifies the most significant "content words" using TF-IDF (Term Frequency-Inverse Document Frequency). Empirical testing revealed that the top 25% of words by TF-IDF score provide the optimal balance of information for translation.
- Heuristic Graph Construction: The model builds a graph where nodes represent both content words and entire sentences. These nodes are linked via four rule-based relations:
- Inter-sentence: Connects all sentences to one another.
- Sentence-word: Links a sentence to its constituent content words.
- Intra-sentence: Preserves the original word order within a sentence.
- Co-occurrence: Connects identical content words across different sentences, which is vital for tracking entities throughout a narrative.
- Graph Attention Networks (GATs): The system employs GATs with a multi-hop reasoning mechanism to learn feature representations from the graph. This representation is integrated into a standard Transformer decoder via a shared cross-attention module, allowing the model to consult the document-level graph during generation.
Key Insights and Results
The researchers evaluated EGCR on several benchmarks, including TED Talks (Zh-En, En-De), News-Commentary, and Europarl.
Structural Awareness and Performance
A primary finding was that explicit graph structures capture hierarchical information better than linear sequences. When comparing different graph encoders, GATs consistently outperformed RNNs, CNNs, and standard Self-Attention (SANs). As shown in the results table, the EGCR(GATs) configuration achieved the highest BLEU scores across all tested datasets.
Less is More
One of the most striking results was that including fewer words in the context representation actually improved performance. Limiting context to the top 25% of content words yielded higher BLEU scores than using 100% of the document, proving that functional "noise" significantly degrades DocNMT performance.
Discourse and Cohesion
EGCR demonstrated marked improvements in discourse phenomena, such as deixis (context-dependent words), lexical cohesion, and ellipsis resolution. Specifically, in tests for pronoun and noun translation accuracy, EGCR outperformed the baseline by approximately 2 points, indicating a superior ability to maintain entity consistency across a document.
Conclusion
EGCR provides an efficient and effective method for document-level translation by focusing on content-rich words and their structural relationships. While the current heuristic thresholds are fixed, future work may explore dynamic content word selection and automated relation learning to further enhance the model's flexibility across diverse language pairs.
Summary updated