Papers › What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot...

What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?

12 Apr 2022arXiv:2204.05832archive 2025-07-28

Thomas Wang, Adam Roberts, Daniel Hesslow, Teven Le Scao, Hyung Won Chung, Iz Beltagy, Julien Launay, Colin Raffel

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2204.05832")

Code

Syntology Ran 1 of 16 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 16 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bigscience-workshop/architecture-objective officialmentioned in papermentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 1 ran; 1 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
15unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from bigscience-workshop/architecture-objective. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

remove_prefix bigscience-workshop/architecture-objective/t5x/models.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 61e3339d251a61f7 · report
all_steps bigscience-workshop/architecture-objective/t5x/checkpoints.py official repository unverified Apache-2.0 (permissive) · 83fcfb658788026e · report
brevity_penalty bigscience-workshop/architecture-objective/t5x/decoding.py official repository unverified Apache-2.0 (permissive) · b02d918aafa63091 · report
cache_map bigscience-workshop/architecture-objective/t5x/decoding.py official repository unverified Apache-2.0 (permissive) · a019363aad76272d · report
compute_weighted_accuracy bigscience-workshop/architecture-objective/t5x/models.py official repository unverified Apache-2.0 (permissive) · b3741093f206d95c · report
compute_weighted_cross_entropy bigscience-workshop/architecture-objective/t5x/losses.py official repository unverified Apache-2.0 (permissive) · b4668023363799eb · report
cross_entropy_with_logits bigscience-workshop/architecture-objective/t5x/losses.py official repository unverified Apache-2.0 (permissive) · f9804504cb4d5c18 · report
factor_name_to_factordim bigscience-workshop/architecture-objective/t5x/adafactor.py official repository unverified Apache-2.0 (permissive) · 46290a7d88657ed3 · report
get_checkpoint_dir bigscience-workshop/architecture-objective/t5x/checkpoints.py official repository unverified Apache-2.0 (permissive) · 17c6eaa3522868d4 · report
global_step bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py official repository unverified Apache-2.0 (permissive) · c79760dfb12e97dd · report
latest_step bigscience-workshop/architecture-objective/t5x/checkpoints.py official repository unverified Apache-2.0 (permissive) · 87aa1e0819db476f · report
pjit bigscience-workshop/architecture-objective/t5x/partitioning.py official repository unverified Apache-2.0 (permissive) · c7c2352f68352629 · report
rewrite_gin_args bigscience-workshop/architecture-objective/t5x/gin_utils.py official repository unverified Apache-2.0 (permissive) · ee550be8638b1862 · report
separate_embeddings bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py official repository unverified Apache-2.0 (permissive) · 4b6c46a0ed29b33c · report
shared_embeddings bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py official repository unverified Apache-2.0 (permissive) · b43a6822b361626d · report
temperature_sample bigscience-workshop/architecture-objective/t5x/decoding.py official repository unverified Apache-2.0 (permissive) · 0b36774ed129a7e1 · report

Tasks

DecoderLanguage ModelingLanguage ModellingMasked Language ModelingZero-shot Generalization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections