Informative Language Representation Learning for Massively Multilingual Neural Machine Translation

Renren Jin, Deyi Xiong
9/4/2022
cs.CL
transformer-attention

Official code: cordercorder/nmt-multi (13 stars, Python, MIT, last commit 2022-11-24).

Abstract

In a multilingual neural machine translation model that fully shares parameters across all languages, an artificial language token is usually used to guide translation into the desired target language. However, recent studies show that prepending language tokens sometimes fails to navigate the multilingual neural machine translation models into right translation directions, especially on zero-shot translation.

Show full abstract

To mitigate this issue, we propose two methods, language embedding embodiment and language-aware multi-head attention, to learn informative language representations to channel translation into right directions. The former embodies language embeddings into different critical switching points along the information flow from the source to the target, aiming at amplifying translation direction guiding signals. The latter exploits a matrix, instead of a vector, to represent a language in the continuous space. The matrix is chunked into multiple heads so as to learn language representations in multiple subspaces. Experiment results on two datasets for massively multilingual neural machine translation demonstrate that language-aware multi-head attention benefits both supervised and zero-shot translation and significantly alleviates the off-target translation issue. Further linguistic typology prediction experiments show that matrix-based language representations learned by our methods are capable of capturing rich linguistic typology features.

View on arXivView PDF

Code Implementations(1)

MIT

Codebase for multilingual neural machine translation

132Python, ShellAug 22, 20224 years agoMIT

Similar Papers

Cite this paper

@article{jin2022informative,
  title  = {Informative Language Representation Learning for Massively Multilingual Neural Machine Translation},
  author = {Renren Jin and Deyi Xiong},
  year   = {2022},
  eprint = {2209.01530},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.01530}
}

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

Discussion