Incorporating BERT into Neural Machine Translation
Jinhua Zhu Affiliation: CAS Key Laboratory of GIPAS, EEIS Department, University of Science and Technology of China; Affiliation: Yingce Xia Thanks: This work is conducted at Microsoft Research Asia. The first two authors contributed equally to this work. Affiliation: Microsoft Research; Affiliation: Lijun Wu Affiliation: Sun Yat-sen University; Di He Affiliation: Key Laboratory of Machine Perception (MOE), School of EECS, Peking University Affiliation: Tao Qin Affiliation: Microsoft Research; Affiliation: Wengang Zhou Affiliation: CAS Key Laboratory of GIPAS, EEIS Department, University of Science and Technology of China; Affiliation: Houqiang Li Affiliation: CAS Key Laboratory of GIPAS, EEIS Department, University of Science and Technology of China; Affiliation: Tie-Yan Liu Affiliation: Microsoft Research; Affiliation:
Abstract
The recently proposed BERT (Devlin et al. 2019) has shown great power on a variety of natural language understanding tasks, such as text classification, reading comprehension, etc. However, how to effectively apply BERT to neural machine translation (NMT) lacks enough exploration. While BERT is more commonly used as fine-tuning instead of contextual embedding for downstream language understanding tasks, in NMT, our preliminary exploration of using BERT as contextual embedding is better than using for fine-tuning. This motivates us to think how to better leverage BERT for NMT along this direction. We propose a new algorithm named BERT-fused model, in which we first use BERT to extract representations for an input sequence, and then the representations are fused with each layer of the encoder and decoder of the NMT model through attention mechanisms. We conduct experiments on supervised (including sentence-level and document-level translations), semi-supervised and unsupervised machine translation, and achieve state-of-the-art results on seven benchmark datasets. Our code is available at https://github.com/bert-nmt/bert-nmt.
原文 arXiv:2002.06823;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2002.06823v1