Crosslingual Generalization through Multitask Finetuning

Niklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts, Stella Biderman, Teven Le Scao, M. Saiful Bari, Sheng Shen, Zheng Xin Yong, Hailey Schoelkopf, Xiangru Tang, Dragomir Radev, Alham Fikri Aji, Khalid Almubarak, Samuel Albanie, Zaid Alyafeai, Albert Webson, Edward Raff, Colin Raffel

Large Language Models (LLMs) like GPT-3 and T0 have demonstrated remarkable "zero-shot" capabilities, performing novel tasks simply by following natural language instructions. This ability is typically cultivated through Multitask Prompted Finetuning (MTF), where a model is trained on a diverse collection of tasks—such as summarization, sentiment analysis, and question answering—all formatted as instructions. However, these advancements have historically been concentrated in English.

The BigScience workshop's research, "Crosslingual Generalization through Multitask Finetuning," addresses this linguistic gap. By introducing the xP3 dataset and the resulting BLOOMZ and mT0 models, the authors demonstrate that instruction-following capabilities can effectively transfer across languages, even when finetuning is performed primarily in English.

The Challenge of Multilingual Instruction Following

While massive multilingual models like BLOOM and mT5 provide a strong foundation, their native ability to follow complex instructions is often limited compared to English-centric models. Achieving high performance on specific tasks in non-English languages typically requires expensive, task-specific finetuning. This presents two major hurdles:

  1. Data Scarcity: Many languages lack the extensive supervised datasets necessary for traditional finetuning.
  2. Model Proliferation: Maintaining thousands of specialized models is inefficient compared to a single "generalist" model capable of crosslingual task execution.

Methodology: Scaling Multitask Finetuning

The researchers applied MTF to two distinct model families: BLOOM (a decoder-only architecture) and mT5 (an encoder-decoder architecture). To understand the drivers of crosslingual generalization, they explored three distinct finetuning regimes:

  1. English-only (P3): Finetuning on English tasks to test if instruction-following logic transfers to other languages.
  2. Multilingual (xP3): Training on a wide array of languages using English-language prompts.
  3. Machine-translated (xP3mt): Training on multilingual data where the instructions themselves are translated into the target language.
The xP3 dataset encompasses a wide variety of task categories, ranging from traditional QA to program synthesis and translation.

The training process involved an additional 13 billion tokens of finetuning, with the loss function focused exclusively on the target answer rather than the instructional prompt.

The xP3 Dataset

The cornerstone of this work is xP3, a massive composite dataset spanning 46 natural languages and 13 programming languages. It expands upon the English-only P3 dataset by incorporating 30 new multilingual datasets. These cover diverse tasks including translation, program synthesis, and text simplification.

Comparison of prompting strategies: P3 (English), xP3 (Multilingual data with English prompts), and xP3mt (Multilingual data with translated prompts).

Key Insights and Results

The English Instruction Bridge

A pivotal finding is that finetuning on English instructions alone significantly enhances performance on non-English tasks. The models appear to learn the abstract "concept" of following instructions in English and then leverage their pretrained multilingual knowledge to apply that logic in other languages. For instance, on the XNLI benchmark, BLOOMZ-P3 (finetuned only on English) showed a 50% improvement in zero-shot performance on non-English samples compared to the base BLOOM model.

Architecture and Pretraining

Despite BLOOMZ's massive 176B parameter count, the smaller 13B parameter mT0 often outperformed it. The authors suggest this is due to the inherent advantages of the encoder-decoder architecture for these tasks and the fact that mT5 underwent more extensive pretraining (1 trillion tokens vs. BLOOM's 350 billion).

Generalization to Unseen Languages

The models demonstrated an ability to perform tasks in languages with minimal representation in the pretraining data (e.g., Thai or Burmese). This suggests that MTF helps the model develop language-agnostic capabilities that transcend the specific languages seen during training.

The Generative Trade-off

While MTF excels at classification and short-form Q&A, it can negatively impact long-form generative tasks. The models become biased toward the concise answers prevalent in the finetuning data. The researchers mitigated this by implementing a minimum generation length during inference, which significantly improved translation quality.

Conclusion

BLOOMZ and mT0 represent a significant step toward truly global, instruction-following AI. By making the code, datasets, and models open-source, the BigScience workshop has provided a robust framework for future research into crosslingual generalization. Future efforts will likely focus on expanding the instruction sets further and balancing the model's ability to be both a concise assistant and a creative generator.

Summary updated

BibTeX
@inproceedings{muennighoff2023crosslingual,
  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},
  title = {{Crosslingual Generalization through Multitask Finetuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.891},
}
Figure