Improving the Transformer Translation Model with Document-Level Context
Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/D18-1049.pdf
Summary
Standard Transformer translation handles each sentence in isolation, so it cannot resolve discourse-dependent issues such as ambiguous word senses, coreference or lexical cohesion. The authors add a separate context encoder that uses multi-head self-attention to represent the preceding source sentences of a document. Target-side history is deliberately left out to avoid propagating errors. Extra context-attention sub-layers then feed this representation into every encoder and decoder layer, with a gating mechanism in place of plain residual connections.
Document-aligned parallel data is scarce, so training happens in two stages. First, the ordinary sentence-level Transformer is fitted on large sentence corpora. Then those weights are frozen and only the new document-level components are learned on the smaller document corpus.
Tested on NIST Chinese-English and IWSLT French-English, the model beats the Transformer baseline and an adapted cache-based approach, with little extra computational cost. The work shows that document awareness can be added to Transformer cheaply and is useful even with limited document-level data.
Key points
- Reported gains over the Transformer baseline are +1.96 BLEU on Chinese-English (NIST) and +0.89 BLEU on French-English (IWSLT). The model also outperforms the cache-based method of Kuang et al. (2017) adapted to Transformer.
- Two-step training is essential:
- Training only on the 940K-sentence document corpus gives 36.52 BLEU, below the sentence-level baseline's 39.53.
- Combining 2M sentence pairs with the 940K document corpus reaches 47.93 BLEU, versus 45.97 for the baseline.
- Context helps in either location, with the best result when integrated into both:
- encoder only: 47.51 BLEU
- decoder only: 47.48 BLEU
- both: 47.93 BLEU
- Context gating contributes about +0.38 BLEU compared with residual connections.
- Source code is released as Document-Transformer on GitHub (Glaceon31).
Cited by
- BlonDe: An Automatic Evaluation Metric for Document-level Machine Translation
- Large Language Models Effectively Leverage Document-level Context for Literary Translation, but Critical Errors Persist
- Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- When a Good Translation is Wrong in Context: Context-Aware Machine Translation Improves on Deixis, Ellipsis, and Lexical Cohesion
- AMR-To-Text Generation with Graph Transformer
Cite
@inproceedings{zhang2018improving,
title = {{Improving the Transformer Translation Model with Document-Level Context}},
author = {Zhang, Jiacheng and Luan, Huanbo and Sun, Maosong and Zhai, Feifei and Xu, Jingfang and Zhang, Min and Liu, Yang},
booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
year = {2018},
doi = {10.18653/v1/d18-1049},
url = {https://doi.org/10.18653/v1/d18-1049}
}References
- Dzmitry Bahdanau, KyungHyun Cho, and Yoshua Bengio. 2015. Sequence to sequence learning with neural networks. In Proceedings of ICLR. find
- Rachel Bawden, Rico Sennrich, Alexandra Birch, and Barry Haddow. 2018. Evaluating discourse phenomena in neural machine translation. In Proceedings of NAACL. find our card
- Eva Martı́nez Garcia, Cristina Espãna Bonet, and Lluı́z Màrquez. 2014. Document-level machine translation with word vector models. In Proceedings of EACL. find
- Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. 2017. Convolutional sequence to sequence learning. CoRR, abs/1705.03122. \#\# Conclusion Zhengxian Gong, Min Zhang, and Guodong Zhou. 2011. Cache-based document-level statistical machine translation. In Proceedings of EMNLP… find our card