Skip to main content
QUICK REVIEW

[Paper Review] Few-shot Learning with Multilingual Language Models

Xi Victoria Lin, Todor Mihaylov|arXiv (Cornell University)|Dec 20, 2021
Topic ModelingComputer Science76 citations
TL;DR

The paper trains multilingual generative language models (up to 7.5B parameters) on a 500B-token, 30-language corpus and studies zero-shot and in-context few-shot learning across multilingual tasks, showing strong cross-lingual prompting and demonstrating state-of-the-art few-shot translation across FLORES-101 directions for multilingual models, while noting English performance can drop with multilingual pre-training.

ABSTRACT

Large-scale generative language models such as GPT-3 are competitive few-shot learners. While these models are known to be able to jointly represent many different languages, their training data is dominated by English, potentially limiting their cross-lingual generalization. In this work, we train multilingual generative language models on a corpus covering a diverse set of languages, and study their few- and zero-shot learning capabilities in a wide range of tasks. Our largest model with 7.5 billion parameters sets new state of the art in few-shot learning in more than 20 representative languages, outperforming GPT-3 of comparable size in multilingual commonsense reasoning (with +7.4% absolute accuracy improvement in 0-shot settings and +9.4% in 4-shot settings) and natural language inference (+5.4% in each of 0-shot and 4-shot settings). On the FLORES-101 machine translation benchmark, our model outperforms GPT-3 on 171 out of 182 directions with 32 training examples, while surpassing the official supervised baseline in 45 directions. We conduct an in-depth analysis of different multilingual prompting approaches, showing in particular that strong few-shot learning performance across languages can be achieved via cross-lingual transfer through both templates and demonstration examples. Finally, we evaluate our models in social value tasks such as hate speech detection in five languages and find it has limitations similar to comparable sized GPT-3 models.

Motivation & Objective

  • Investigate zero-shot and in-context few-shot learning with multilingual generative language models.
  • Assess cross-lingual prompting and cross-lingual demonstrations for multilingual tasks.
  • Evaluate multilingual models on NLU, translation, and multilingual MT benchmarks against English-centric baselines.

Proposed method

  • Train four decoder-only causal language models (564M, 1.7B, 2.9B, 7.5B) on a 500B-token multilingual corpus (CC100-XL) spanning 30 languages with a joint 250k SentencePiece vocabulary.
  • Evaluate zero-shot and few-shot performance using prompts without parameter updates, with 0-, 1-, 4-, 32-, and 128-shot settings as applicable.
  • Explore prompting strategies including native-language prompts, English templates, translation-based prompts, and cross-lingual prompting.
  • Investigate cross-lingual demonstrations by appending demonstrations in a different language to the input context.
  • Compare against GPT-3 (6.7B) and translation-based baselines (translate-test) across multilingual tasks and FLORES-101 MT directions.
  • Analyze scaling laws by varying model size and shot count to understand how larger multilingual models leverage in-context demonstrations.

Experimental results

Research questions

  • RQ1How do multilingual generative language models perform on zero-shot and in-context few-shot tasks across a diverse set of languages?
  • RQ2Can English prompts plus non-English demonstrations or cross-lingual prompts achieve strong multilingual in-context learning?
  • RQ3How does cross-lingual prompting and cross-lingual demonstrations affect performance across languages with varying resource levels?
  • RQ4What is the impact of scaling model size on multilingual few-shot learning and cross-lingual transfer?
  • RQ5How do multilingual models perform on machine translation and multilingual NLU benchmarks relative to English-centric models and translation baselines?

Key findings

  • The 7.5B-parameter XGLM model achieves state-of-the-art few-shot performance across 20+ languages on multilingual NLU and reasoning tasks, with notable gains in 0-shot and 4-shot settings.
  • On FLORES-101 MT, XGLM-7.5B outperforms GPT-3 counterparts on 171 of 182 directions with 32 training examples, and surpasses the official supervised baseline in 45 directions.
  • Cross-lingual prompting with English templates often yields strong zero- and few-shot results across languages, sometimes outperforming native templates depending on the task and language pair.
  • Demonstrations in a high-resource language can significantly boost performance for low-resource languages, but the benefit diminishes when a strong target-language prompt is already present.
  • Compared to GPT-3 6.7B, XGLM-7.5B generally shows superior multilingual performance on non-English tasks, though English tasks can see a drop relative to English-centric models.
  • Translate-test baselines (translation to English then GPT-3 inference) are competitive and often strong across languages, highlighting the value of MT in multilingual few-shot settings.
  • Scaling up model size yields broader gains in multilingual tasks and cross-lingual demonstration effectiveness, though not uniformly across all tasks (e.g., PAWS-X shows oscillations).
  • XGLM demonstrates competitive MT performance across WMT FLORES-101 directions, indicating potential for MT in low-resource languages without parallel data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.