Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

  • Problem Transfer learning for NLP has produced so many objectives, architectures, data sets and fine-tuning methods that their separate effects are hard to tell apart.
  • Method Casts every text task as text in and text out, then varies one factor at a time from a fixed encoder-decoder baseline, covering architecture, pre-training objective, data, fine-tuning and scale.
  • Results The encoder-decoder with a denoising objective reached 83.28 GLUE, against 74.70 for the decoder-only language model with the same objective.

One text-in, text-out format for every task

Transfer learning pre-trains a model on a data-rich task and then fine-tunes it downstream, but the many variants of this approach make it hard to know which choices matter. The authors take every language problem to be text in and text out, so one model, one loss, one training procedure and one decoding rule cover translation, summarization, classification and similarity scoring.

Under this format, comparing two choices no longer requires changing the task interface, which is what allows the study to isolate the effect of each factor.

Each input carries a task prefix such as a language pair, a task name or a sentence label, and the model is trained to generate the target text for that prefix. Figure 1 illustrates the same model taking task-prefixed text and generating target text for translation, question answering and classification.

To run experiments at that scale, the authors built the Colossal Clean Crawled Corpus, a clean English web text data set of hundreds of gigabytes.

Baseline model and training recipe

Because the model has two layer stacks, it has about 220 million parameters, roughly twice the count of BERTBASE.

All tasks are trained by maximum likelihood with teacher forcing and a cross-entropy loss, using AdaFactor, and the model decodes greedily at test time. Because the C4 corpus is larger than this token budget, no data is repeated during pre-training.

Each task reports the checkpoint with the highest validation performance, and most experiments use validation sets so that the test set is not used for model selection.

The target sequence lists the dropped spans, each introduced by its sentinel, followed by a final sentinel, so the decoder only predicts the corrupted content. Figure 2 shows this with a short example sentence in which two adjacent words share one sentinel.

Attention masks behind the three structures

In self-attention each output entry is a weighted sum of input entries, and an attention mask zeroes some of those weights to restrict what an output position can see. A fully-visible mask lets every output position attend to the whole input, while a causal mask stops position i from attending to later input positions. Figure 3 shows these mask patterns as matrices in which dark cells mark allowed attention.

The encoder-decoder uses fully-visible masking in the encoder and causal masking in the decoder, with attention from decoder to encoder. A language model is a single stack fed the input and target concatenated, with causal masking throughout, so it learns to predict next tokens. A prefix LM keeps the single stack but uses fully-visible masking over the prefix, and causal masking over the target that is generated.

Figure 4 places the three variants side by side.

The authors identify a drawback of causal language models in the text-to-text setting: a prefix position can only depend on earlier prefix positions, so its representation is limited when the model must read the whole input before answering. The prefix LM avoids this by making the prefix fully visible, which the authors say was proposed earlier for text-to-text use and later shown to work across many tasks.

The authors argue that the prefix LM resembles BERT on classification: the whole input plays the role of BERT's classification token, and the classifier is placed in the decoder output layer. A fair comparison is hard because an encoder-decoder with L layers in each stack has about the parameters of a 2L-layer language model, while its computational cost matches an L-layer language model.

Architecture comparison results

Table 2 compares the encoder-decoder, the language model and the prefix LM under a denoising objective and under an autoregressive objective, with parameter counts and computational cost stated for each row.

The authors attribute the drop from halving the layers to the reduced depth of each stack, and they note that sharing parameters can lower the total parameter count with little loss, as earlier concurrent work also found.

The decoder-only language model with a denoising objective reached 74.70 GLUE, against 83.28 for the encoder-decoder with the same objective. The shared encoder-decoder with denoising scored 82.81 GLUE, above the prefix LM with denoising at 81.82 GLUE, which the authors read as evidence that explicit encoder-decoder attention helps.

Under the autoregressive objective, the encoder-decoder reached 79.56 GLUE, and denoising rows beat their autoregressive counterparts on GLUE in each architecture pair shown.

Unsupervised objective families

Every objective takes a tokenized span, produces a corrupted input and a target, and trains the model by maximum likelihood to predict the target. Table 3 lists the inputs and targets each objective produces on a single example sentence.

The prefix language modeling objective splits a span into an encoder input and a decoder target that the decoder must predict. The deshuffling objective shuffles a token sequence and asks the model to recover the original order.

Table 4 gives 82.96 GLUE for the BERT-style objective, 80.69 for prefix language modeling and 73.17 for deshuffling.

Simplifying the denoising objective

Table 5 compares four variants of the BERT-style objective: the MASS-style objective, replacing corrupted spans with sentinels, and dropping corrupted tokens without sentinels. Two variants reconstruct the uncorrupted text and two predict only the corrupted tokens.

The authors selected span replacement because it performs well and gives short target sequences, as Figure 5 summarizes the search path.

The authors conclude that choosing among these denoising variants should be guided mainly by computational cost, and that further variations of this family may not bring large gains.

Building C4 from Common Crawl

Common Crawl produces around 20TB of web extracted text each month, but most of it is gibberish, menus, error messages or duplicated text rather than natural language. C4 was therefore built from a single month of Common Crawl, filtered with heuristics so that the remaining text is clean English.

To test the effect of data choice, the authors compare C4 with an unfiltered version that keeps only language detection, a RealNews-like subset restricted to news domains, a WebText-like set built from 12 months of Common Crawl with a Reddit-based filter, and English Wikipedia. The WebText-like set is 17 GB, comparable in size to the original 40GB WebText data set, and it was made from 12 months because a single month yields too little content after the Reddit filter.

Adapter layers and gradual unfreezing

Adapter layers insert dense-ReLU-dense blocks after each feed-forward network, with outputs that match their inputs, so the blocks can be added without changing the structure. During fine-tuning only the adapter layers and the layer normalization parameters are updated, and the inner dimensionality d sets how many parameters are added.

Gradual unfreezing starts by updating only the top layer and then adds one more layer over time, applied here to the encoder and decoder layers in parallel from the top.

The authors found gradual unfreezing caused a minor degradation across tasks, though it sped up fine-tuning somewhat. They observe that lower-resource tasks such as SQuAD worked with a small d, while higher-resource tasks needed a larger d, and they suggest adapters could fine-tune fewer parameters if d is scaled to the task.

Multi-task training as data mixing

The authors relax the multi-task goal: they train on several tasks at once to produce separate parameter settings, and they may select a different checkpoint for each task when reporting. In the unified text-to-text framework, multi-task learning therefore reduces to mixing data sets together.

Limits of the sweep and of the variance

The study varies one factor at a time from the baseline, so second-order effects, such as an objective that works best only on a larger model, may be missed. A full combinatorial search over all factors was judged too expensive, and combinations of the approaches are left to future work.

None of the architectures studied is identical to BERT, so the BERT comparisons test approaches that are similar in spirit.

Paper info

Authors
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu
Venue
arXiv · Preprint
First published
2019-10-23
Added
2026-10-20
Updated
2023-9-19
Version
v4
arXiv
1910.10683
Category
cs.LG · cs.CL · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu (2019). Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. arXiv:1910.10683v4. https://arxiv.org/abs/1910.10683v4

BibTeX
@misc{raffel2019exploring,
  title = {{Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer}},
  author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
  year = {2019},
  eprint = {1910.10683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.10683v4}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up