Crosslingual Generalization through Multitask Finetuning

Niklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts, Stella Biderman +14 more
11/3/2022
cs.CLcs.AIcs.LG

Official code: bigscience-workshop/xmtf (534 stars, Jupyter Notebook, Apache-2.0, last commit 2024-09-22).

Abstract

Multitask prompted finetuning (MTF) has been shown to help large language models generalize to new tasks in a zero-shot setting, but so far explorations of MTF have focused on English data and models. We apply MTF to the pretrained multilingual BLOOM and mT5 model families to produce finetuned variants called BLOOMZ and mT0.

Show full abstract

We find finetuning large multilingual language models on English tasks with English prompts allows for task generalization to non-English languages that appear only in the pretraining corpus. Finetuning on multilingual tasks with English prompts further improves performance on English and non-English tasks leading to various state-of-the-art zero-shot results. We also investigate finetuning on multilingual tasks with prompts that have been machine-translated from English to match the language of each dataset. We find training on these machine-translated prompts leads to better performance on human-written prompts in the respective languages. Surprisingly, we find models are capable of zero-shot generalization to tasks in languages they have never intentionally seen. We conjecture that the models are learning higher-level capabilities that are both task- and language-agnostic. In addition, we introduce xP3, a composite of supervised datasets in 46 languages with English and machine-translated prompts. Our code, datasets and models are freely available at https://github.com/bigscience-workshop/xmtf.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Crosslingual Generalization through Multitask Finetuning

53443Jupyter Notebook, PythonOct 18, 20222 years agoApache-2.0
bloombloomzinstruction-tuninglanguage-modelslarge-language-models+5 more

Similar Papers

Cite this paper

@article{muennighoff2022crosslingual,
  title  = {Crosslingual Generalization through Multitask Finetuning},
  author = {Niklas Muennighoff and Thomas Wang and Lintang Sutawika and Adam Roberts and Stella Biderman and Teven Le Scao and M Saiful Bari and Sheng Shen and Zheng-Xin Yong and Hailey Schoelkopf and Xiangru Tang and Dragomir Radev and Alham Fikri Aji and Khalid Almubarak and Samuel Albanie and Zaid Alyafeai and Albert Webson and Edward Raff and Colin Raffel},
  year   = {2022},
  eprint = {2211.01786},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.01786}
}

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

Discussion