---
title: "A Simple and Effective Unified Encoder for Document-Level"
description: "This dual-encoder design limits how context and the current sentence interact, and it does not match… 30 references, cited by 63 papers here."
authors: ["Shuming Ma", "Dongdong Zhang", "Ming Zhou"]
year: 2020
venue: "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics"
source: "https://aclanthology.org/2020.acl-main.321/"
doi: "10.18653/v1/2020.acl-main.321"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/ma-2020-simple-effective-unified-encoder-document/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ma-2020-simple-effective-unified-encoder-document/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/page/4/) / A Simple and Effective Unified Encoder for Document-Level Machine Translation

# A Simple and Effective Unified Encoder for Document-Level Machine Translation

**Authors:** [Shuming Ma](https://md.research.elamur.ai/free/en/authors/shuming-ma/), [Dongdong Zhang](https://md.research.elamur.ai/free/en/authors/dongdong-zhang/) and [Ming Zhou](https://md.research.elamur.ai/free/en/authors/ming-zhou/) · **Year:** 2020 · **Venue:** [Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics](https://md.research.elamur.ai/free/en/venues/acl/) ([ACL 2020](https://md.research.elamur.ai/free/en/venues/acl/2020/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2020.acl-main.321/) · [PDF](https://aclanthology.org/2020.acl-main.321.pdf) · [DOI 10.18653/v1/2020.acl-main.321](https://doi.org/10.18653/v1/2020.acl-main.321) · [OpenAlex](https://openalex.org/W3034351728)

**Citations:** 73 citations (OpenAlex, 2026-10-14) · [63](https://md.research.elamur.ai/free/en/papers/ma-2020-simple-effective-unified-encoder-document/cited-by/) in our library, of the 141,840 papers whose bibliographies we read

## Summary
Document-level machine translation systems usually encode the surrounding sentences with a separate context encoder. This dual-encoder design limits how context and the current sentence interact, and it does not match single-encoder pre-trained models such as BERT. The authors propose Flat-Transformer, which feeds the context (one preceding and one following sentence) and the current source sentence into one shared encoder as a single sequence. Segment embeddings tell the model which tokens are context and which are source. The lower encoder block attends over the whole sequence, while the upper blocks process only the source positions. This keeps attention focused on the sentence being translated and adds no parameters beyond a standard Transformer. Tested on English-German TED, News and Europarl, the model outperforms earlier uni-encoder baselines. When initialized from BERT, it surpasses dual-encoder systems such as HAN, SAN and QCN on nearly every metric. The work shows that a simple flat architecture can take advantage of pre-training for context-aware translation.

## Key points
- **Data:** three English-German benchmarks (TED, News, Europarl), using the preprocessed versions from Maruf et al. (2019). Text was tokenized with Moses and split into BPE subwords with 30K merges. Evaluation uses BLEU and METEOR.
- **Architecture:** 1 bottom block runs over the full context-plus-source sequence, and 5 top blocks run over source positions only. The parameter count equals that of a standard Transformer.
- **Base Flat-Transformer results:**
  - BLEU: 24.87 / 23.55 / 30.09 (TED / News / Europarl).
  - METEOR: 47.05 / 43.97 / 48.56.
  - Both beat the uni-encoder RNNSearch and Transformer baselines.
- **With BERT initialization:**
  - BLEU rises to 26.61 / 24.52 / 31.99, and METEOR to 48.53 / 45.40 / 49.76.
  - This beats all dual-encoder baselines except News BLEU, where HAN scores 25.03.
  - In contrast, adding BERT to the dual-encoder Transformer lowered its BLEU on TED and News.
- **Ablation on TED:**
  - Segment embeddings contribute +0.51 BLEU and +0.85 METEOR.
  - The unified flat structure contributes a further +1.08 BLEU and +2.03 METEOR.

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

## Institutions

- [Microsoft Research Asia](https://md.research.elamur.ai/free/en/companies/microsoft-research-asia/) — Company, Beijing, China · 54 works · 59,921 citations

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 9,085 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 8,888 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 9,296 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 9,206 works

🧭 Topics (1): [🔁 Machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) · 958 works

## Cite

Cite as: Shuming Ma, Dongdong Zhang and Ming Zhou. 2020. A Simple and Effective Unified Encoder for Document-Level Machine Translation. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{ma2020simple,
  title = {{A Simple and Effective Unified Encoder for Document-Level Machine Translation}},
  author = {Shuming Ma, Dongdong Zhang and Ming Zhou},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.321},
  url = {https://doi.org/10.18653/v1/2020.acl-main.321}
}
```

- [← previous ConvoKit: A Toolkit for the Analysis of Conversations](https://md.research.elamur.ai/free/en/papers/chang-2020-convokit-toolkit-analysis-conversations/)
- [next → Affective and Contextual Embedding for Sarcasm Detection](https://md.research.elamur.ai/free/en/papers/babanejad-2020-affective-contextual-embedding-sarcasm-detection/)
- [↑ back to papers of 2020](https://md.research.elamur.ai/free/en/papers/2020/page/4/)

## References

30 references, 23 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. [Neural machine translation by jointly learning to align and translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/). In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings.
2. Satanjeev Banerjee and Alon Lavie. 2005. [METEOR: an automatic metric for MT evaluation with improved correlation with human judgments](https://md.research.elamur.ai/free/en/papers/banerjee-2005-meteor-automatic-metric-mt-evaluation/). In Proceedings of the Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization@ACL 2005, Ann Arbor, Michigan, USA, June 2…
3. Rachel Bawden, Rico Sennrich, Alexandra Birch, and Barry Haddow. 2018. [Evaluating discourse phenomena in neural machine translation](https://md.research.elamur.ai/free/en/papers/bawden-2017-evaluating-discourse-phenomena-neural-machine/). In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Paper…
4. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. [BERT: pre-training of deep bidirectional transformers for language understanding](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/). In NAACL 2019, pages 4171–4186.
5. Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. 2019. [Unified language model pre-training for natural language understanding and generation](https://md.research.elamur.ai/free/en/papers/dong-2019-unified-language-model-pre-training/). CoRR, abs/1905.03197.
6. Hany Hassan, Anthony Aue, Chang Chen, Vishal Chowdhary, Jonathan Clark, Christian Federmann, Xuedong Huang, Marcin Junczys-Dowmunt, William Lewis, Mu Li, Shujie Liu, Tie-Yan Liu, Renqian Luo, Arul Menezes, Tao Qin, Frank Seide, Xu Tan, Fei Tian, Lijun Wu, Shuangzhi Wu, Yingce Xia, Dongdong Zhang, Zh… — [Achieving Human Parity on Automatic Chinese to English News Translation](https://md.research.elamur.ai/free/en/papers/hassan-2018-achieving-human-parity-automatic-chinese/)
7. Sebastien Jean, Stanislas Lauly, Orhan Firat, and Kyunghyun Cho. 2017. Does neural machine translation benefit from larger context? arXiv preprint arXiv:1704.05135. [find](https://scholar.google.com/scholar?q=Sebastien+Jean%2C+Stanislas+Lauly%2C+Orhan+Firat%2C+and+Kyunghyun+Cho%2E+2017%2E+Does+neural+machine+translation+benefit+from+larger+context%3F+arXiv+preprint+arXiv%3A1704%2E05135%2E)
8. Marcin Junczys-Dowmunt. 2019. [Microsoft translator at WMT 2019: Towards large-scale document-level neural machine translation](https://md.research.elamur.ai/free/en/papers/dowmunt-2019-microsoft-translator-wmt-2019-large/). In Proceedings of the Fourth Conference on Machine Translation, WMT 2019, Florence, Italy, August 1-2, 2019 - Volume 2: Shared Task Papers, Day 1, pages 225–233.
9. Diederik P Kingma and Jimmy Ba. 2014. A method for stochastic optimization. abs/1412.6980. [find](https://scholar.google.com/scholar?q=Diederik+P+Kingma+and+Jimmy+Ba%2E+2014%2E+A+method+for+stochastic+optimization%2E+abs%2F1412%2E6980%2E)
10. Adam: CoRR, Guillaume Lample and Alexis Conneau. 2019. Cross-lingual language model pretraining. CoRR, abs/1901.07291. [find](https://scholar.google.com/scholar?q=Adam%3A+CoRR%2C+Guillaume+Lample+and+Alexis+Conneau%2E+2019%2E+Cross%2Dlingual+language+model+pretraining%2E+CoRR%2C+abs%2F1901%2E07291%2E)
11. Samuel Läubli, Rico Sennrich, and Martin Volk. 2018. [Has machine translation achieved human parity? A case for document-level evaluation](https://md.research.elamur.ai/free/en/papers/laubli-2018-has-machine-translation-achieved-human/). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 - November 4, 2018, pages 4791–4796.
12. Sameen Maruf and Gholamreza Haffari. 2018. [Document context neural machine translation with memory networks](https://md.research.elamur.ai/free/en/papers/maruf-2018-document-context-neural-machine-translation/). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1275– 1284, Melbourne, Australia. Association for Computational Lingu…
13. Sameen Maruf, André F. T. Martins, and Gholamreza Haffari. 2019. [Selective attention for context-aware neural machine translation](https://md.research.elamur.ai/free/en/papers/maruf-2019-selective-attention-context-aware-neural/). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minne…
14. Mathias Müller, Annette Rios, Elena Voita, and Rico Sennrich. 2018. [A large-scale test set for the evaluation of context-aware pronoun translation in neural machine translation](https://md.research.elamur.ai/free/en/papers/muller-2018-large-scale-test-set-evaluation/). In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 61–72, Brussels, Belgium. Associati…
15. Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. [BLEU: a method for automatic evaluation of machine translation](https://md.research.elamur.ai/free/en/papers/papineni-2002-bleu-method-automatic-evaluation-machine/). In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318.
16. Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. [Deep contextualized word representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/). In NAACL 2018, pages 2227–2237.
17. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. [find](https://scholar.google.com/scholar?q=Alec+Radford%2C+Jeffrey+Wu%2C+Rewon+Child%2C+David+Luan%2C+Dario+Amodei%2C+and+Ilya+Sutskever%2E+2019%2E+Language+models+are+unsupervised+multitask+learners%2E)
18. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. [Neural machine translation of rare words with subword units](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, ACL 2016, August 7-12, 2016, Berlin, Germany, Volume 1: Long Papers.
19. Rico Sennrich and Martin Volk. 2011. Iterative, mt-based sentence alignment of parallel texts. In Proceedings of the 18th Nordic Conference of Computational Linguistics, NODALIDA 2011, May 11-13, 2011, Riga, Latvia, pages 175–182. [find](https://scholar.google.com/scholar?q=Rico+Sennrich+and+Martin+Volk%2E+2011%2E+Iterative%2C+mt%2Dbased+sentence+alignment+of+parallel+texts%2E+In+Proceedings+of+the+18th+Nordic+Conference+of+Computational+Linguistics%2C+NODALIDA+2011%2C+May+11%2D13%2C+2011)
20. Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. 2019. [MASS: masked sequence to sequence pre-training for language generation](https://md.research.elamur.ai/free/en/papers/song-2019-mass-masked-sequence-sequence-pre/). In ICML 2019, pages 5926–5936.
21. Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958. [find](https://scholar.google.com/scholar?q=Nitish+Srivastava%2C+Geoffrey+E%2E+Hinton%2C+Alex+Krizhevsky%2C+Ilya+Sutskever%2C+and+Ruslan+Salakhutdinov%2E+2014%2E+Dropout%3A+a+simple+way+to+prevent+neural+networks+from+overfitting%2E+Journal+of+Machine+Learning+R)
22. Jörg Tiedemann and Yves Scherrer. 2017. [Neural machine translation with extended context](https://md.research.elamur.ai/free/en/papers/tiedemann-2017-neural-machine-translation-extended-context/). In Proceedings of the Third Workshop on Discourse in Machine Translation, pages 82–92, Copenhagen, Denmark. Association for Computational Linguistics.
23. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. [Attention is all you need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017,…
24. Elena Voita, Rico Sennrich, and Ivan Titov. 2019a. [Context-aware monolingual repair for neural machine translation](https://md.research.elamur.ai/free/en/papers/voita-2019-context-aware-monolingual-repair-neural/). In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), page…
25. Elena Voita, Rico Sennrich, and Ivan Titov. 2019b. [When a good translation is wrong in context: Context-aware machine translation improves on deixis, ellipsis, and lexical cohesion](https://md.research.elamur.ai/free/en/papers/voita-2019-when-good-translation-is-wrong/). In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1198–1212, Florence,…
26. Elena Voita, Pavel Serdyukov, Rico Sennrich, and Ivan Titov. 2018. [Context-aware neural machine translation learns anaphora resolution](https://md.research.elamur.ai/free/en/papers/voita-2018-context-aware-neural-machine-translation/). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1264–1274, Melbourne, Australia. Associati…
27. Longyue Wang, Zhaopeng Tu, Andy Way, and Qun Liu. 2017. [Exploiting cross-sentence context for neural machine translation](https://md.research.elamur.ai/free/en/papers/wang-2017-exploiting-cross-sentence-context-neural/). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2826–2831, Copenhagen, Denmark. Association for Computational Linguistics.
28. Lesly Miculicich Werlen, Dhananjay Ram, Nikolaos Pappas, and James Henderson. 2018. [Document-level neural machine translation with hierarchical attention networks](https://md.research.elamur.ai/free/en/papers/miculicich-2018-document-level-neural-machine-translation/). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 - November 4, 2…
29. Zhengxin Yang, Jinchao Zhang, Fandong Meng, Shuhao Gu, Yang Feng, and Jie Zhou. 2019. Enhancing context modeling with a query-guided capsule network for document-level translation. CoRR, abs/1909.00564. [find](https://scholar.google.com/scholar?q=Zhengxin+Yang%2C+Jinchao+Zhang%2C+Fandong+Meng%2C+Shuhao+Gu%2C+Yang+Feng%2C+and+Jie+Zhou%2E+2019%2E+Enhancing+context+modeling+with+a+query%2Dguided+capsule+network+for+document%2Dlevel+translation%2E+CoRR%2C+abs%2F1909%2E0056)
30. Jiacheng Zhang, Huanbo Luan, Maosong Sun, Feifei Zhai, Jingfang Xu, Min Zhang, and Yang Liu. 2018. [Improving the transformer translation model with document-level context](https://md.research.elamur.ai/free/en/papers/zhang-2018-improving-transformer-translation-model-document/). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 -Novemb…

*Updated 24 October 2026*
