A causal decoder pretrained with autoregressive next-token prediction achieves the highest zero-shot accuracy immediately after unsupervised pretraining, yet that ranking flips completely once prompted multitask finetuning is added, where an encoder-decoder trained with masked language modeling wins by a wide margin.

  • Pretraining-only winner: Across 168B C4 tokens (~15 petaflops-days per run), a 4.8B-parameter causal decoder (CD:FLM) scored 44.2% on EleutherAI’s LM Eval Harness (EAI-Eval), beating a non-causal prefix decoder (ND:PLM, 43.5%) and an 11.0B compute-matched encoder-decoder (ED:PLM, 39.9%).
  • Multitask-finetuned reversal: After 13B tokens of T0 multitask finetuning (MTF), masked-language-modeling (MLM) architectures took over: ED:MLM + MTF reached 60.6% on T0-Eval and 51.3% on EAI-Eval, vs. 51.4% and 50.4% for CD:FLM + MTF.
  • Non-causal decoders close the gap: A 4.8B non-causal decoder pretrained with MLM (ND:MLM + MTF) hit 51.0% on EAI-Eval and 55.2% on T0-Eval, capturing nearly all of ED:MLM’s EAI-Eval gain at half the parameter count and memory footprint.
  • 3.3x faster adaptation: Switching a 168B-token CD:FLM model’s attention mask to non-causal and running 51B tokens of MLM adaptation (NC-A) converged 3.3x faster than training ND:MLM from scratch and boosted T0-Eval accuracy to 54.9%.
Zero-shot accuracy reverses once multitask finetuning is added (168B pretraining tokens)
Unsupervised pretraining only (EAI-Eval / T0-Eval)
Causal Decoder (FLM, 4.8B)44.2% / 42.4%
Non-Causal Decoder (PLM, 4.8B)43.5% / 41.8%
Encoder-Decoder (PLM, 11.0B)39.9% / 41.7%
Random baseline: 32.9% (EAI-Eval) / 41.7% (T0-Eval). Raw MLM checkpoints are excluded here because they score near random (34.6% to 37.8% at 84B tokens) without adaptation or MTF.
After +13B multitask finetuning (EAI-Eval / T0-Eval)
Encoder-Decoder (MLM)51.3% / 60.6%
Non-Causal Decoder (MLM)51.0% / 55.2%
Non-Causal Decoder (PLM)48.9% / 54.0%
Causal Decoder (FLM)50.4% / 51.4%
Causal Decoder (MLM)47.1% / 50.3%
Encoder-Decoder (PLM)44.2% / 45.8%

Source: Wang et al. (2022), Tables 3 and 8. Bars on left reflect EAI-Eval; bars on right reflect T0-Eval (scaled relative to 60.6%).

Separating Architecture From Objective

Famous language models usually bundle architecture and training objective together: GPT models pair a causal decoder (CD) with full autoregressive language modeling (FLM), while T5 and T0 pair an encoder-decoder (ED) with span-corruption masked language modeling (MLM). Wang and colleagues ran a controlled factorial study across six (architecture, objective) combinations using 832,896 TPUv4 chip-hours on C4.

To match pretraining compute rather than parameter count, decoder-only models (CD and non-causal decoder ND) used 24 layers and 4.8B parameters, while ED used 48 layers (24 encoder + 24 decoder) and 11.0B parameters, incurring roughly 10% extra FLOPs from cross-attention and double the memory footprint. Every pretraining run consumed the same 168B input tokens (sequences of 626 tokens, GEGLU activations, T5 relative biases, Adafactor, and auxiliary z-loss), which inherently exposed different token fractions to the loss: 100% of tokens for FLM, 50% on average for prefix PLM (random split point), and ~18% (15% masked in average length-3 spans) for MLM.

Key Findings: Benchmark Skew and Model Adaptation

Evaluating both EAI-Eval (31 tasks using single GPT-3-style cloze prompts) and T0-Eval (11 tasks averaged over diverse natural-language prompts) uncovered why prior benchmarks disagreed and how teams can avoid training two separate models:

  • Task selection drives EAI-Eval differences: Controlling for prompt format showed that ED models held an edge on the 10 shared T0-Eval datasets even with EAI-Eval prompts, whereas CD models spiked on non-T0 completion tasks like LAMBADA.
  • Dropout matters during MTF: Adding 0.1 dropout during the 13B-token T0 finetuning phase improved T0-Eval accuracy across every architecture and objective (Appendix E.3), while adding a 4B-token language-modeling adaptation (LM-A) phase before MTF at 42B scale did not help and often hurt slightly.
  • Asymmetric mask adaptation works only within decoders: Switching a 168B ND:MLM model to causal FLM (LM-A) hit target language-modeling loss in 105B tokens (1.6x speedup over training CD:FLM from scratch). Going the opposite way (NC-A, converting a 168B CD:FLM model into ND:MLM for 51B tokens before ND:MTF) accelerated MLM convergence by 3.3x vs. ND:MLM from scratch (9.1x vs. CD:MLM) and reached 52.3% EAI-Eval and 54.9% T0-Eval at 232B total tokens. Simply flipping CD:FLM (219B) to a non-causal mask during MTF alone without MLM adaptation left T0-Eval flat (52.0% vs. 52.1%). Trying to prune or adapt an ED:MLM model into CD:FLM performed worse than training from scratch.

Caveats and Builder Takeaway

Compute matching equated seen tokens rather than memory: ED models required 2x the RAM of decoder-only models, and the authors did not evaluate few-shot in-context learning, long open-ended generation, or toxicity/bias shifts across architectures. Still, the BigScience group ran this ablation to choose the blueprint for BLOOM, and the tradeoff remains practical under fixed compute budgets and large-scale training regimes.

If your product needs a single base model that prompts well out of the box and adapts easily to downstream instruction tuning, start with a causal decoder trained with FLM (and apply non-causal MLM adaptation only if multitask zero-shot breadth justifies the extra 30% pretraining). Reserve ED:MLM for pipelines committed to supervised multitask or single-task finetuning where 2x parameter memory is acceptable.