[Paper Review] What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?
The paper systematically compares architecture and pretraining objective combinations for large language models, showing that decoder-only models with full LM pretraining excel before multitask finetuning, while encoder-decoder models with MLM excel after multitask finetuning, and demonstrates adaptation paths between architectures.
Large pretrained Transformer language models have been shown to exhibit zero-shot generalization, i.e. they can perform a wide variety of tasks that they were not explicitly trained on. However, the architectures and pretraining objectives used across state-of-the-art models differ significantly, and there has been limited systematic comparison of these factors. In this work, we present a large-scale evaluation of modeling choices and their impact on zero-shot generalization. In particular, we focus on text-to-text models and experiment with three model architectures (causal/non-causal decoder-only and encoder-decoder), trained with two different pretraining objectives (autoregressive and masked language modeling), and evaluated with and without multitask prompted finetuning. We train models with over 5 billion parameters for more than 170 billion tokens, thereby increasing the likelihood that our conclusions will transfer to even larger scales. Our experiments show that causal decoder-only models trained on an autoregressive language modeling objective exhibit the strongest zero-shot generalization after purely unsupervised pretraining. However, models with non-causal visibility on their input trained with a masked language modeling objective followed by multitask finetuning perform the best among our experiments. We therefore consider the adaptation of pretrained models across architectures and objectives. We find that pretrained non-causal decoder models can be adapted into performant generative causal decoder models, using autoregressive language modeling as a downstream task. Furthermore, we find that pretrained causal decoder models can be efficiently adapted into non-causal decoder models, ultimately achieving competitive performance after multitask finetuning. Code and checkpoints are available at https://github.com/bigscience-workshop/architecture-objective.
Motivation & Objective
- Assess how architecture (causal decoder-only, non-causal decoder, encoder-decoder) impacts zero-shot generalization under unsupervised pretraining.
- Evaluate the effect of pretraining objectives (FLM, PLM, MLM) across architectures on zero-shot tasks.
- Investigate whether multitask finetuning changes the preferred architecture/objective for zero-shot generalization.
- Explore adaptation between architectures/objectives to transfer strengths efficiently.
- Provide actionable guidance for designing LLMs optimized for generative prompting vs. multitask finetuning.
Proposed method
- Systematically pretrain six <architecture, objective> pairs at ~5B parameters (ED: 11B, CD: 4.8B) on 168B tokens.
- Compare FLM, PLM, MLM objectives per architecture, with and without multitask finetuning (MT-F).
- Apply adaptation techniques: LM-A (MLM→PLM/FLM), and non-causal MLM adaptation to convert between architecture types.
- Conduct MT-F with a 13B-token T0-style mixture and evaluate zero-shot on 30 tasks from T0-Eval and EAI-Eval prompts.
- Report results at checkpoints: 42B, 84B, 168B tokens.
- Use two zero-shot benchmarks (T0-Eval and EAI-Eval) with consistent prompting across tasks.
Experimental results
Research questions
- RQ1Which architecture–objective pair yields the strongest zero-shot generalization immediately after unsupervised pretraining?
- RQ2How does multitask finetuning shift the preferred architecture and/or objective for zero-shot generalization?
- RQ3Can architecture/objective gaps be bridged efficiently via adaptation without full retraining?
- RQ4Do different prompts/tasks benchmarks (T0-Eval vs. EAI-Eval) bias model rankings toward certain architectures?
- RQ5What practical guidance emerges for building LLMs optimized for generative prompting versus multitask finetuning?
Key findings
- After unsupervised pretraining only, causal decoder-only models with full language modeling achieve the best zero-shot generalization across both benchmarks.
- After multitask finetuning, encoder-decoder models with MLM pretraining outperform others, indicating MT-F shifts preference towards MLM with encoder-decoder.
- Encoder-decoder models pretrained with MLM outperform other configurations after MT-F, with non-causal MLM close behind on some benchmarks.
- Adaptation methods speed up convergence and enable effective cross-architecture transfer, e.g., MLM-adapted non-causal decoders to causal decoders improve MLM and MT-F performance; causal-to-non-causal adaptation also beneficial.
- Prompts and task sets influence zero-shot performance; EAI-Eval prompts generally yield higher performance than average T0 prompts, and differences across architectures are task-dependent.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.