No Language Left Behind (NLLB-200)

NLLB-200

A single translation model for 200 languages that focuses on low-resource languages, with the FLORES-200 benchmark, mining tools and a safety dataset; its results were later published in Nature.

2022Encoder-decoderPublished weights
DeveloperMeta AI (NLLB team)
Year of publication2022
Number of parameters54.5 billion parameters (mixture of experts), with dense versions of 3.3 billion, 1.3 billion and 600 million (some distilled)
LayersTransformer encoder-decoder with mixture-of-experts layers in the largest model
Context length512 tokens
Training dataMined and labeled parallel data for 200 languages, with the FLORES-200 benchmark for evaluation
Training objectiveMultilingual machine translation
LicenceCC-BY-NC-4.0 for the weights (non-commercial)
ArabicIt covers Modern Standard Arabic and several dialects with separate codes, including Egyptian (arz_Arab), Moroccan (ary_Arab), Tunisian (aeb_Arab) and Mesopotamian/Iraqi Arabic (acm_Arab).
Mixture-of-experts (MoE) layer Sparse Mixture of Experts
token xRoutersoftmax(xW_g)Expert 1 (FFN)Expert 2 (FFN)Expert 3 (FFN)g3Expert 4 (FFN)Expert 5 (FFN)Expert 6 (FFN)g6Expert 7 (FFN)Expert 8 (FFN)y = Σ g_i · E_i(x)(top-2 of 8)

The router computes a score for each expert and picks the top k (here 2 of 8), then the outputs of the two experts are combined with softmax weights. Only the selected experts are computed.

Page contents
  1. A usage example for Iraqi Arabic
  2. Mixture of experts in translation
  3. Evaluation

A usage example for Iraqi Arabic

To translate a sentence from English into Mesopotamian Arabic, set the target language code to acm_Arab, and to arb_Arab for Modern Standard Arabic. Always compare the output with a translation into Modern Standard Arabic, because there is less dialect data and the model may mix the dialect with the standard language.

Mixture of experts in translation

The team noticed that scaling up a dense model hurts low-resource languages because of language "interference". So they used a mixture of experts with regularization (Expert Output Masking) that reduces overfitting on small languages.

Evaluation

The model was evaluated with BLEU and chrF++ on FLORES-200, plus a human evaluation (XSTS). chrF++ matters for morphologically rich languages such as Arabic, because it relies on character n-grams rather than whole words.

Encoder-decoder model (T5 and BART) Encoder–decoder
Thank you <X> me to your party <Y>N×Encoderbidirectional self-attentionN×Decodercausal self-attention+ cross-attention<start> <X> for inviting <Y> lastK, V<X> for inviting <Y> last <Z>T5: span corruptionBART: denoising

The encoder reads the whole input in both directions, and the decoder generates the output causally with cross-attention over the encoder's representations. Pre-training corrupts the text and then reconstructs it.

Key contributions

  • It improves BLEU by 44% on average over the previous best on FLORES-101, according to the paper.
  • It treats several Arabic dialects as separate languages for input and output.
  • It includes Toxicity Lists for 200 languages to detect harmful additions in translation.

Limitations and caveats

  • The license is non-commercial.
  • Translation quality for dialects is much lower than for Modern Standard Arabic, and it varies by dialect.

Original references

  1. NLLB Team et al. (2022). No Language Left Behind: Scaling Human-Centered Machine Translation arxiv.org/abs/2207.04672
  2. NLLB Team (2024). Scaling neural machine translation to 200 languages. Nature 630, 841–846 doi.org/10.1038/s41586-024-07335-x

The figures are taken from the papers and official cards cited in the references. When the developer does not disclose a figure we write "not disclosed" and do not estimate it. Check the model card before any commercial use, because license terms may change.