Skip to main content
QUICK REVIEW

[Paper Review] Crosslingual Generalization through Multitask Finetuning

Niklas Muennighoff, Thomas J. Wang|arXiv (Cornell University)|Nov 3, 2022
Topic ModelingComputer Science27 citations
TL;DR

The paper finetunes multilingual BLOOM and mT5 with multitask prompts to create BLOOMZ and mT0, showing English-only multitask finetuning enables crosslingual generalization, and multilingual training (xP3/xP3mt) further improves zero-shot performance across languages and tasks, including languages never intentionally seen.

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. 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.

Motivation & Objective

  • Demonstrate whether English-only multitask finetuning improves non-English zero-shot performance in multilingual LLMs.
  • Assess if multilingual multitask finetuning (xP3) further enhances crosslingual and English task performance.
  • Evaluate effects of prompts—English vs. translated—on zero-shot tasks and the impact of machine-translated prompts (xP3mt).
  • Investigate whether models can generalize to tasks in languages not intentionally seen during pretraining or finetuning.

Proposed method

  • Finetune pretrained BLOOM and mT5 models on a multilingual multitask corpus called xP3, extending the English-focused P3 with 46 languages.
  • Create xP3mt by machine-translating prompts to match dataset languages to study prompt language effects.
  • Produce core model variants: BLOOMZ-P3/mT0-P3 (English prompts on English tasks), BLOOMZ/mT0 (xP3), and BLOOMZ-MT/mT0-MT (xP3mt).
  • Evaluate on held-out tasks (coreference, sentence completion, NLI) and generation tasks (translation, summarization) using prompt-based zero-shot settings.
  • Compare decoder-only BLOOM variants with encoder-decoder mT5 to analyze architecture and pretraining differences.

Experimental results

Research questions

  • RQ1Can English-only multitask finetuning on multilingual models improve zero-shot performance on non-English held-out tasks?
  • RQ2Does extending finetuning to multilingual tasks (xP3) yield further improvements across English and non-English tasks?
  • RQ3How do English prompts versus translated prompts affect zero-shot performance, and does training on machine-translated prompts help for non-English prompts?
  • RQ4Are models able to generalize to tasks in languages never intentionally seen during pretraining or finetuning?

Key findings

  • Multitask finetuning on multilingual models significantly improves zero-shot generalization over base pretrained models across multiple tasks and languages.
  • English-only xP3 finetuning outperforms English-only P3 on English tasks, and xP3 generally yields stronger multilingual performance.
  • Finetuning on xP3mt with machine-translated prompts improves performance on human-written non-English prompts, though English-prompt performance can decrease.
  • Models finetuned on xP3 show capacity to generalize to tasks in languages not intentionally seen during pretraining or finetuning, suggesting language- and task-agnostic capabilities.
  • Scaling the model size enhances zero-shot generalization, with the gap between pretrained and finetuned models widening as parameters increase.
  • Multitask finetuning tends to biasGeneration toward shorter outputs on code-related tasks, prompting methods to enforce minimum generation lengths can mitigate this and improve translation BLEU scores.

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.