[Paper Review] Improving the Transformer Translation Model with Document-Level Context
This paper proposes a document-level context encoder for the Transformer translation model, using multi-head self-attention to capture long-range dependencies across sentences. By training on sentence-level data first and fine-tuning on limited document-level data, the method improves translation quality by 1.96 BLEU on Chinese-English and 0.89 BLEU on French-English, outperforming both standard Transformer and cache-based baselines.
Although the Transformer translation model (Vaswani et al., 2017) has achieved state-of-the-art performance in a variety of translation tasks, how to use document-level context to deal with discourse phenomena problematic for Transformer still remains a challenge. In this work, we extend the Transformer model with a new context encoder to represent document-level context, which is then incorporated into the original encoder and decoder. As large-scale document-level parallel corpora are usually not available, we introduce a two-step training method to take full advantage of abundant sentence-level parallel corpora and limited document-level parallel corpora. Experiments on the NIST Chinese-English datasets and the IWSLT French-English datasets show that our approach improves over Transformer significantly.
Motivation & Objective
- To address the limitation of the Transformer model in handling discourse phenomena such as coreference and lexical cohesion by incorporating document-level context.
- To overcome the scarcity of large-scale document-level parallel corpora by leveraging abundant sentence-level parallel data in a two-step training procedure.
- To extend the Transformer architecture with a context encoder that integrates document-level representations into both the encoder and decoder without significant computational overhead.
- To improve translation quality on low-resource document-level settings where standard models underperform due to lack of context.
Proposed method
- Introduces a new context encoder based on multi-head self-attention to compute document-level context representations from source sentences.
- Incorporates document-level context into the original Transformer encoder and decoder using multi-head attention mechanisms.
- Employs a two-step training strategy: pre-train on sentence-level parallel corpora, then fine-tune on limited document-level parallel corpora while keeping sentence-level parameters fixed.
- Uses context gating to dynamically control the influence of document-level context, replacing residual connections for improved feature integration.
- Applies a multi-head attention mechanism to attend over the full source document during decoding, enabling long-range dependency modeling.
- Maintains computational efficiency by relying on highly parallelizable attention modules, avoiding significant speed degradation in training or inference.
Experimental results
Research questions
- RQ1Can document-level context significantly improve Transformer translation performance on discourse phenomena like coreference and lexical cohesion?
- RQ2How can a Transformer model be effectively trained when only limited document-level parallel corpora are available?
- RQ3What is the optimal way to integrate document-level context into the encoder and decoder of the Transformer architecture?
- RQ4Does using a two-step training strategy—pre-training on sentence-level data and fine-tuning on document-level data—yield better performance than end-to-end training on small document data?
- RQ5How does context gating compare to residual connections in controlling the flow of document-level context information?
Key findings
- The proposed method improves Transformer translation by 1.96 BLEU points on the NIST Chinese-English dataset when using document-level context.
- On the IWSLT French-English dataset, the model achieves a 0.89 BLEU point improvement over the standard Transformer.
- Integrating document-level context into both the encoder and decoder leads to the highest performance, with 47.51 BLEU, compared to 45.97 when only the encoder is enhanced.
- Context gating improves translation quality by 0.38 BLEU points over standard residual connections, indicating its effectiveness in controlling context integration.
- The two-step training method significantly outperforms end-to-end training on small document-level data, avoiding the drop in performance seen in prior work.
- An ablation study confirms that document-level context resolves word sense ambiguity and lexical cohesion issues, as shown in a case study where 'yundong' is correctly disambiguated as 'sport' using context from 'saiche' (racing).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.