Multitask Prompted Training Enables Zero-Shot Task Generalization

Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal V. Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Févry, Jason Alan Fries, Ryan Teehan, Teven Le Scao, Stella Biderman, Leo Gao, Thomas Wolf, Alexander M. Rush

TL;DR

This paper introduces T0, a model demonstrating that hundreds of billions of parameters are not strictly necessary to achieve impressive zero-shot performance. By fine-tuning an 11-billion parameter model on a massive, diverse collection of NLP tasks formatted as natural language prompts, the authors created a system that frequently outperforms the 175-billion parameter GPT-3 on unseen tasks. This highlights that explicit multitask training is a highly efficient path to zero-shot generalization.

What Problem Does This Paper Address?

Large Language Models (LLMs) like GPT-3 are renowned for "zero-shot generalization"—the ability to perform a task (like summarization or translation) without having been specifically trained on it. Previously, researchers hypothesized that this was a byproduct of "implicit multitask learning" during massive-scale pre-training. Essentially, if a model reads enough of the internet, it eventually stumbles across enough examples of every task to learn them implicitly.

However, this approach requires astronomical computing power and results in models that are often "brittle"—changing a single word in a prompt can cause the model's performance to collapse. This paper asks: Can we induce better, more robust zero-shot generalization through explicit multitask learning? Instead of hoping the model learns tasks by accident, what happens if we specifically teach it to follow a wide variety of instructions?

Methods

The authors took a pre-trained encoder-decoder model (T5) and fine-tuned it on a massive mixture of prompted datasets.

T0 Training and Generalization Paradigm

The core technical contribution is the Unified Prompt Format. The team developed PromptSource, a templating system and tool that allowed dozens of contributors to turn standard supervised datasets into human-readable prompts. For example, a standard sentiment dataset might be transformed into: "Review: [Text] On a scale of 1 to 5, I would give this a..."

Key methodological choices included:

  • Prompt Diversity: For every dataset, they wrote multiple different prompts (averaging 11.7 per dataset) to ensure the model learned the underlying task rather than just a specific phrasing.
  • Task Selection: They trained on a wide array of tasks (summarization, sentiment, etc.) but held out entire categories of tasks (like Natural Language Inference) to test if the model could truly generalize to something it had never seen before.
  • Rank Classification: To evaluate the model on multiple-choice tasks, they compared the log-likelihood of each possible answer string, picking the one the model found most probable.

Datasets

The authors created a massive resource called P3 (Public Pool of Prompts), which contains over 2,000 prompts for 177 different datasets.

  • Training: They used a subset of these, including datasets for sentiment analysis, topic classification, and summarization.
  • Evaluation: They tested on "held-out" tasks that were never seen during training, such as:
  • Natural Language Inference (NLI): Determining if one sentence entails another.
  • Coreference Resolution: Figuring out which noun a pronoun refers to.
  • Word Sense Disambiguation: Identifying the correct meaning of a word in context.
  • BIG-bench: They also evaluated on a subset of 14 novel, difficult tasks from the "Beyond the Imitation Game" benchmark.

Key Insights and Ideas

  • Instruction Following is a Skill: The model doesn't just learn the data; it learns the meta-skill of mapping a natural language instruction to a specific behavior.
  • Prompt Diversity Breeds Robustness: One of the most significant findings is that training on many different ways to ask the same question makes the model much less sensitive to wording. This "smooths out" the performance, making the model more reliable for end-users.
  • Scale is Not the Only Lever: T0 (11B parameters) frequently beat GPT-3 (175B). This suggests that high-quality, supervised multitask data is a much more efficient way to gain "intelligence" than simply increasing model size and feeding it more raw, unlabelled text.
  • The Power of the Encoder-Decoder: The authors suggest that the T5 architecture (which uses both an encoder and a decoder) might be more effective for this type of task than the "decoder-only" architecture used by GPT-3.

Key Results

  • Beating the Giants: T0 matched or exceeded GPT-3's zero-shot performance on 9 out of 11 held-out datasets, despite being 16x smaller.
Zero-shot performance comparison between T0 and GPT-3
  • NLI Superiority: On Natural Language Inference tasks (which are notoriously difficult for zero-shot models), T0 showed massive gains over both its base model and GPT-3.
  • BIG-bench Performance: T0 outperformed baseline language models on 13 out of 14 tasks in the BIG-bench benchmark, sometimes beating models 6x its size.
  • Ablation Success: The authors showed that as they increased the number of datasets and the number of prompts per dataset, the model's median performance consistently went up while its sensitivity to prompt wording went down.

Limitations and Future Work

  • Hard Tasks Remain Hard: T0 still struggled with certain logic-heavy tasks like Winogrande and HellaSwag, where it didn't significantly outperform GPT-3.
  • English-Centric: The current study and the P3 dataset are almost entirely focused on English.
  • Inherited Biases: Like all models trained on internet data, T0 exhibits social biases. For example, it was found to associate certain professions with specific genders based on stereotypes present in its training data.
  • Future Directions: The authors suggest that future work should explore how to scale this prompted training to even more tasks and languages, and investigate why certain tasks (like NLI) benefit so much more from this approach than others.

Summary updated

BibTeX
@inproceedings{sanh2022multitask,
  author = {Victor Sanh and Albert Webson and Colin Raffel and Stephen Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Arun Raja and Manan Dey and M Saiful Bari and Canwen Xu and Urmish Thakker and Shanya Sharma Sharma and Eliza Szczechla and Taewoon Kim and Gunjan Chhablani and Nihal V. Nayak and Debajyoti Datta and Jonathan Chang and Mike Tian-Jian Jiang and Han Wang and Matteo Manica and Sheng Shen and Zheng Xin Yong and Harshit Pandey and Rachel Bawden and Thomas Wang and Trishala Neeraj and Jos Rozen and Abheesht Sharma and Andrea Santilli and Thibault Févry and Jason Alan Fries and Ryan Teehan and Teven Le Scao and Stella Biderman and Leo Gao and Thomas Wolf and Alexander M. Rush},
  title = {{Multitask Prompted Training Enables Zero-Shot Task Generalization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=xbX8Fv8oF4Q},
}
Figure