UL2: Unifying Language Learning Paradigms

Yi Tay, Mostafa Dehghani, Vinh Q. Tran, Xavier Garcia, Jason Wei, Xuezhi Wang, Hyung Won Chung, Dara Bahri, Tal Schuster, Steven Zheng, Denny Zhou, Neil Houlsby, Donald Metzler

TL;DR

UL2 (Unifying Language Learning Paradigms) introduces a "Mixture-of-Denoisers" (MoD) pre-training objective that enables a single model to excel at both natural language understanding (NLU) and open-ended generation. By scaling this approach to 20B parameters, the authors created a model that outperforms the 175B GPT-3 on zero-shot SuperGLUE and triples the performance of T5-XXL on summarization tasks.

What Problem Does This Paper Address?

In the current NLP landscape, researchers often face a dilemma regarding which model architecture and pre-training objective to use:

  • Encoder-only models (like BERT) are great at "discriminative" tasks like classification but struggle to generate text.
  • Decoder-only models (like GPT) are masters of few-shot generation but often lag behind on NLU benchmarks.
  • Encoder-decoder models (like T5) try to bridge the gap but usually require task-specific fine-tuning to perform well.

The authors argue that this specialization is a bug, not a feature. They address the lack of a "universal" pre-training framework that can perform optimally across the entire spectrum of NLP tasks—from sentiment analysis to creative writing—without making significant trade-offs.

Methods

The core innovation is the Mixture-of-Denoisers (MoD). Instead of using a single pre-training task, UL2 combines three distinct "modes" of denoising:

Mixture-of-Denoisers (MoD) illustrating R, S, and X denoising tasks
  1. R-Denoiser (Regular): The standard span corruption used in T5. It masks small spans (2-5 tokens) representing about 15% of the text. This helps the model acquire general knowledge.
  2. S-Denoiser (Sequential): A prefix-language modeling approach. The model is given a long prefix and must predict the rest of the sequence in order. This is specifically designed to boost generative capabilities.
  3. X-Denoiser (Extreme): A "hard mode" where the model must reconstruct long spans or work with very high corruption rates (up to 50%). This forces the model to learn deep semantic representations from limited information.

Crucially, the paper introduces Mode Switching. During pre-training, each task is prepended with a special "sentinel token" ([R], [S], or [X]). During downstream fine-tuning or few-shot inference, the user can "trigger" the appropriate behavior by providing the corresponding token, allowing the model to adapt its internal "gears" to the task at hand.

Datasets

  • Pre-training: The model was trained on the C4 (Colossal Clean Crawled Corpus), a massive collection of English web text.
  • Evaluation: The authors tested UL2 on a staggering suite of 50+ supervised NLP tasks, including:
  • SuperGLUE: For language understanding.
  • GEM Benchmark: Including XSum (summarization), ToTTo (table-to-text), and SGD (dialogue).
  • Reasoning: GSM8K and SVAMP (math word problems) using Chain-of-Thought prompting.
  • Information Retrieval: Using the Natural Questions (NQ) dataset.

Key Insights and Ideas

  • Objective > Architecture: The authors demonstrate that the pre-training objective (what the model is trying to learn) is often more important than the specific backbone architecture (Encoder-Decoder vs. Decoder-only). MoD works effectively on both.
  • The Power of Interpolation: MoD isn't just a random collection of tasks; it's a way to smoothly interpolate between span corruption and language modeling. By exposing the model to "extreme" versions of these tasks, it becomes more robust.
  • Small Scale, Big Impact: One of the most surprising findings is that the UL2 20B model—despite being nearly 9x smaller than GPT-3—outperforms it on several zero-shot benchmarks. This suggests that how we train models might be more important than just making them bigger.
  • Reasoning Emergence: UL2 20B shows strong "emergent" abilities, such as benefiting significantly from Chain-of-Thought (CoT) prompting, a trait previously thought to belong only to much larger models.

Key Results

Pareto frontier of UL2 compared to other models on SuperGLUE and GEM benchmarks
  • Pareto Efficiency: As shown above, UL2 consistently sits on the "Pareto frontier," meaning it provides the best possible balance between NLU performance (SuperGLUE) and generative quality (GEM) compared to all existing baselines.
  • Zero-Shot SuperGLUE: UL2 20B achieved a score of 65.2, outperforming the 175B GPT-3 (61.2).
  • Summarization (XSum): In a one-shot setting, UL2 20B achieved a Rouge-L score of 19.8, nearly tripling the performance of T5-XXL + LM adaptation (10.7).
  • SOTA Sweep: The model achieved State-of-the-Art performance on the majority of the 50+ supervised tasks it was tested on.

Limitations and Future Work

  • Data Diversity: UL2 was trained primarily on the C4 corpus. The authors note that other SOTA models (like PaLM) use more diverse, curated datasets, which might explain why UL2 still lags behind them in certain few-shot scenarios.
  • Scaling Limits: While 20B is a "sweet spot" for accessibility, the authors haven't yet explored how MoD behaves at the 500B+ parameter scale.
  • Multilingualism: The current paper focuses on English. Extending the MoD framework to a massively multilingual setup is a clear next step.
  • Co-training: The authors suggest that combining UL2 with instruction-tuning (like the FLAN method) could unlock even greater performance.

Summary updated

BibTeX
@inproceedings{tay2023ul,
  author = {Yi Tay and Mostafa Dehghani and Vinh Q. Tran and Xavier Garcia and Jason Wei and Xuezhi Wang and Hyung Won Chung and Dara Bahri and Tal Schuster and Steven Zheng and Denny Zhou and Neil Houlsby and Donald Metzler},
  title = {{UL2: Unifying Language Learning Paradigms}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=6ruVLB727MC},
}
Figure