Language Models are Few-shot Multilingual Learners

Genta Indra Winata, Andrea Madotto, Zhaojiang Lin, Rosanne Liu, Jason Yosinski +1 more
9/16/2021
cs.CLcs.AI

Official code: gentaiscool/few-shot-lm (52 stars, Python, Apache-2.0, last commit 2022-06-12).

Abstract

General-purpose language models have demonstrated impressive capabilities, performing on par with state-of-the-art approaches on a range of downstream natural language processing (NLP) tasks and benchmarks when inferring instructions from very few examples. Here, we evaluate the multilingual skills of the GPT and T5 models in conducting multi-class classification on non-English languages without any parameter updates.

Show full abstract

We show that, given a few English examples as context, pre-trained language models can predict not only English test samples but also non-English ones. Finally, we find the in-context few-shot cross-lingual prediction results of language models are significantly better than random prediction, and they are competitive compared to the existing state-of-the-art cross-lingual models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The source code of "Language Models are Few-shot Multilingual Learners" (MRL @ EMNLP 2021)

522Python, ShellAug 4, 20214 years agoApache-2.0
few-shotfew-shot-learninggptintentlanguage-model+3 more

Similar Papers

Cite this paper

@article{winata2021language,
  title  = {Language Models are Few-shot Multilingual Learners},
  author = {Genta Indra Winata and Andrea Madotto and Zhaojiang Lin and Rosanne Liu and Jason Yosinski and Pascale Fung},
  year   = {2021},
  eprint = {2109.07684},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07684}
}

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

Discussion