[Paper Review] mGPT: Few-Shot Learners Go Multilingual
mGPT is a multilingual GPT-3–style autoregressive model pretrained on 61 languages, evaluated across language modeling, cross-lingual NLU, and knowledge probing, with in-context learning comparable to contemporaries.
Recent studies report that autoregressive language models can successfully solve many NLP tasks via zero- and few-shot learning paradigms, which opens up new possibilities for using the pre-trained language models. This paper introduces two autoregressive GPT-like models with 1.3 billion and 13 billion parameters trained on 60 languages from 25 language families using Wikipedia and Colossal Clean Crawled Corpus. We reproduce the GPT-3 architecture using GPT-2 sources and the sparse attention mechanism; Deepspeed and Megatron frameworks allow us to parallelize the training and inference steps effectively. The resulting models show performance on par with the recently released XGLM models by Facebook, covering more languages and enhancing NLP possibilities for low resource languages of CIS countries and Russian small nations. We detail the motivation for the choices of the architecture design, thoroughly describe the data preparation pipeline, and train five small versions of the model to choose the most optimal multilingual tokenization strategy. We measure the model perplexity in all covered languages and evaluate it on the wide spectre of multilingual tasks, including classification, generative, sequence labeling and knowledge probing. The models were evaluated with the zero-shot and few-shot methods. Furthermore, we compared the classification tasks with the state-of-the-art multilingual model XGLM. source code and the mGPT XL model are publicly released.
Motivation & Objective
- Develop a large-scale multilingual autoregressive LM inspired by GPT-3 that covers many languages including CIS and low-resource languages.
- Pretrain on a typologically diverse corpus (Wikipedia and C4) with careful data filtering and deduplication to improve data quality.
- Evaluate both intrinsic (language modeling) and extrinsic (downstream, knowledge probing) performance across many languages.
- Analyze how model size, pretraining data, and tokenization affect multilingual generalization and cross-lingual transfer.
Proposed method
- Pretraining a multilingual GPT-3–style LM in 61 languages from 25 language families using Wikipedia and C4 as corpora.
- Data pipeline includes deduplication with 64-bit hashes and filtration using compression-based heuristics and a language-agnostic classifier.
- Investigation of five tokenization strategies; selection based on held-out Wikipedia perplexity (Equation 1).
- Architectural setup replicates GPT-3 scales with sparse-attention in alternating dense and sparse layers.
- Training details: 2048 per-step batch, 600k steps, 400B tokens seen, 14–22 days on V100 clusters.
Experimental results
Research questions
- RQ1Can a multilingual autoregressive LM pretrained on 61 languages achieve competitive in-context learning with fewer parameters than some baselines?
- RQ2How do language family, script, and data quantity affect perplexity and downstream multilingual performance?
- RQ3What is the impact of model size (1.3B vs 13B) and tokenization strategies on language modeling and cross-lingual tasks?
- RQ4How well does mGPT perform on cross-lingual NLU benchmarks and knowledge-probing tasks across diverse languages?
- RQ5Do in-context demonstrations improve or degrade performance across tasks and languages?
Key findings
- mGPT-1.3B is comparable to XGLM-1.7B while covering more languages with fewer parameters.
- mGPT-13B achieves best perplexities for most languages and language families, notably Dravidian, Indo-Aryan, Slavic, and Sino-Tibetan groups.
- Increasing demonstrations can degrade performance in zero-shot and few-shot settings for both mGPT and XGLM.
- Hate speech detection remains challenging, often near random performance in zero-shot/few-shot setups.
- External validation shows mGPT-1.3B can outperform some large LMs on SuperGLUE tasks and aids multilingual morphology tasks; model/code are released under MIT license.
- Across tasks, non-Latin scripts and low-resource languages show weaker performance; larger pretraining data does not uniformly improve all languages.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.