Elamur Research
☰
home / papers / 2018 / Improving the Transformer Translation Model with Document-Level Context

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).

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: Natural language processing

Topics: Machine translation

Cited by

128 papers of our library cite it (of the 140673 whose bibliographies we read); 5 of them have a page here, 123 not yet.

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d18-1049

@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

4 references, 2 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Dzmitry Bahdanau, KyungHyun Cho, and Yoshua Bengio. 2015. Sequence to sequence learning with neural networks. In Proceedings of ICLR. find
  2. Rachel Bawden, Rico Sennrich, Alexandra Birch, and Barry Haddow. 2018. Evaluating discourse phenomena in neural machine translation. In Proceedings of NAACL. find our card
  3. 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
  4. 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