Muppet: Massive Multi-task Representations with Pre-Finetuning

Armen Aghajanyan, Anchit Gupta, Akshat Shrivastava, Xilun Chen, Luke Zettlemoyer, Sonal Gupta

Abstract

Armen Aghajanyan, Anchit Gupta, Akshat Shrivastava, Xilun Chen, Luke Zettlemoyer, Sonal Gupta. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

2021.

Introduction

The standard paradigm in Natural Language Processing (NLP) involves two stages: self-supervised pre-training on massive unlabeled corpora followed by task-specific fine-tuning on smaller labeled datasets. While effective, this pipeline overlooks the wealth of labeled data available across diverse tasks. Researchers at Meta have introduced "pre-finetuning," a massive multi-task learning (MTL) stage that bridges this gap. By training on nearly 50 diverse datasets simultaneously, they developed MUPPET, a model that demonstrates superior generalization, state-of-the-art performance on benchmarks like RTE and HellaSwag, and enhanced data efficiency in low-resource scenarios.

Methods

Pre-finetuning serves as an intermediate stage where a model learns from approximately 50 datasets concurrently. To scale MTL effectively, the authors introduced two primary innovations:

  1. Task-Heterogeneous Batches: Unlike traditional MTL where batches often contain data from a single task, MUPPET utilizes batches where each gradient update is calculated across a diverse set of tasks. This prevents the model from overfitting to any single objective during training.
  2. Log-Scaling Loss: To balance the influence of tasks with varying output spaces (e.g., binary classification vs. open-ended generation), the loss is scaled by the log of the number of possible predictions ($1 / \log n$).
Evaluation accuracy across different batching strategies shows that heterogeneous batches consistently outperform homogeneous ones.

Additionally, MUPPET was initialized from pre-trained models like RoBERTa and BART, utilizing R3F/R4F regularization to stabilize representations against small input perturbations.

Data and Scale

The pre-finetuning phase leveraged 46 datasets comprising over 4.8 million labeled examples. These datasets spanned four major categories: Classification (26 datasets), Summarization (4 datasets), Machine Reading Comprehension (6 datasets), and Commonsense Reasoning (10 datasets). Evaluation was conducted on the GLUE benchmark, SQuAD, and several out-of-domain tasks to rigorously test generalization.

Key Insights: The Scaling Critical Point

A pivotal discovery of this work is the existence of a "critical point" in multi-task scaling. The researchers found that multi-tasking can actually degrade performance when only a few tasks (fewer than 15) are used. However, once the number of tasks exceeds a threshold (typically 15–25), performance begins to improve linearly with the number of tasks.

Performance across various datasets improves significantly once the number of pre-finetuning tasks crosses a critical threshold.

This finding suggests that previous inconsistencies in MTL research may have stemmed from insufficient task diversity and scale. Furthermore, the study highlights inter-task synergy, where training on disparate tasks (like summarization) can improve performance on others (like extractive QA) by refining shared underlying representations.

Results and Generalization

MUPPET achieved state-of-the-art results on RTE and HellaSwag at the time of publication. For RoBERTa-Large, pre-finetuning increased RTE accuracy from 88.1% to 92.8%. In generative tasks, pre-finetuned BART models outperformed specialized baselines like PEGASUS on summarization benchmarks. Notably, MUPPET showed high data efficiency, reaching target accuracy levels much faster than standard models in low-resource settings (e.g., using only 10% of training data).

Conclusion and Limitations

While pre-finetuning offers significant gains, it entails substantial computational costs, requiring 64 GPUs for several days. The empirical nature of the "critical point" also suggests that the optimal number of tasks may vary based on architecture and task composition. Future research may explore more sophisticated task selection and weighting strategies to further optimize this massive multi-tasking paradigm.

Summary updated

BibTeX
@inproceedings{aghajanyan2021muppet,
  author = {Armen Aghajanyan and Anchit Gupta and Akshat Shrivastava and Xilun Chen and Luke Zettlemoyer and Sonal Gupta},
  title = {{Muppet: Massive Multi-task Representations with Pre-Finetuning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=S9W7Vvmv0Y},
}
Figure