Lego-MT: Learning Detachable Models for Massively Multilingual Machine Translation

Fei Yuan, Yinquan Lu, WenHao Zhu, Lingpeng Kong, Lei Li +2 more
12/20/2022
cs.CLcs.AI

Official code: CONE-MT/Lego-MT (10 stars, Python, MIT, last commit 2024-03-22).

Abstract

Multilingual neural machine translation (MNMT) aims to build a unified model for many language directions. Existing monolithic models for MNMT encounter two challenges: parameter interference among languages and inefficient inference for large models.

Show full abstract

In this paper, we revisit the classic multi-way structures and develop a detachable model by assigning each language (or group of languages) to an individual branch that supports plug-and-play training and inference. To address the needs of learning representations for all languages in a unified space, we propose a novel efficient training recipe, upon which we build an effective detachable model, Lego-MT. For a fair comparison, we collect data from OPUS and build a translation benchmark covering 433 languages and 1.3B parallel data. Experiments show that Lego-MT with 1.2B parameters brings an average gain of 3.2 spBLEU. It even outperforms M2M-100 with 12B parameters. The proposed training recipe brings a 28.2$\times$ speedup over the conventional multi-way training method.\footnote{ \url{https://github.com/CONE-MT/Lego-MT}.}

View on arXivView PDF

Code Implementations(1)

CONE-MT/Lego-MTOfficial100%
MIT
101Python, ShellMay 5, 20232 years agoMIT

Similar Papers

Cite this paper

@article{yuan2022legomt,
  title  = {Lego-MT: Learning Detachable Models for Massively Multilingual Machine Translation},
  author = {Fei Yuan and Yinquan Lu and WenHao Zhu and Lingpeng Kong and Lei Li and Yu Qiao and Jingjing Xu},
  year   = {2022},
  eprint = {2212.10551},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10551}
}

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

Discussion