Multilingual Translation via Grafting Pre-trained Language Models

Zewei Sun, Mingxuan Wang, Lei Li
9/11/2021
cs.CL
transformer-attention

Official code: sunzewei2715/Graformer (24 stars, Python, MIT, last commit 2021-09-22).

Abstract

Can pre-trained BERT for one language and GPT for another be glued together to translate texts? Self-supervised training using only monolingual data has led to the success of pre-trained (masked) language models in many NLP tasks.

Show full abstract

However, directly connecting BERT as an encoder and GPT as a decoder can be challenging in machine translation, for GPT-like models lack a cross-attention component that is needed in seq2seq decoders. In this paper, we propose Graformer to graft separately pre-trained (masked) language models for machine translation. With monolingual data for pre-training and parallel data for grafting training, we maximally take advantage of the usage of both types of data. Experiments on 60 directions show that our method achieves average improvements of 5.8 BLEU in x2en and 2.9 BLEU in en2x directions comparing with the multilingual Transformer of the same size.

View on arXivView PDF

Code Implementations(1)

MIT

The repository for the paper: Multilingual Translation via Grafting Pre-trained Language Models

246Python, CudaSep 13, 20215 years agoMIT

Similar Papers

Cite this paper

@article{sun2021multilingual,
  title  = {Multilingual Translation via Grafting Pre-trained Language Models},
  author = {Zewei Sun and Mingxuan Wang and Lei Li},
  year   = {2021},
  eprint = {2109.05256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.05256}
}

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.05256.svg)](https://codeofpaper.com/paper/2109.05256)

Discussion