BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translation

Haoran Xu, Benjamin Van Durme, Kenton Murray
9/9/2021
85 citations
cs.CL

Official code: fe1ixxu/BiBERT (32 stars, Python, MIT, last commit 2022-11-28).

Abstract

The success of bidirectional encoders using masked language models, such as BERT, on numerous natural language processing tasks has prompted researchers to attempt to incorporate these pre-trained models into neural machine translation (NMT) systems. However, proposed methods for incorporating pre-trained models are non-trivial and mainly focus on BERT, which lacks a comparison of the impact that other pre-trained models may have on translation performance.

Show full abstract

In this paper, we demonstrate that simply using the output (contextualized embeddings) of a tailored and suitable bilingual pre-trained language model (dubbed BiBERT) as the input of the NMT encoder achieves state-of-the-art translation performance. Moreover, we also propose a stochastic layer selection approach and a concept of dual-directional translation model to ensure the sufficient utilization of contextualized embeddings. In the case of without using back translation, our best models achieve BLEU scores of 30.45 for En->De and 38.61 for De->En on the IWSLT'14 dataset, and 31.26 for En->De and 34.94 for De->En on the WMT'14 dataset, which exceeds all published numbers.

View on arXivView PDF

Code Implementations(1)

fe1ixxu/BiBERTOfficial100%
MIT

This is the repository of the EMNLP 2021 paper "BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translation".

326Python, CudaSep 6, 20214 years agoMIT

Similar Papers

Cite this paper

@article{xu2021bert,
  title  = {BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translation},
  author = {Haoran Xu and Benjamin Van Durme and Kenton Murray},
  year   = {2021},
  eprint = {2109.04588},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04588}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.04588.svg)](https://codeofpaper.com/paper/2109.04588)

Discussion