Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Authors: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu
Abstract
Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts all text-based language problems into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled data sets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new ``Colossal Clean Crawled Corpus'', we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our data set, pre-trained models, and code.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Extreme Multi-Domain, Multi-Task Learning With Unified Text-to-Text Transfer TransformersAdebayo Oshingbesan, C. Ekoh, Germann Atakpa et al. · 2022 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
Abstract
Text-to-text transformers have shown remarkable success in the task of multi-task transfer learning, especially in natural language processing (NLP). However, while there have been several attempts to train transformers on different domains, there is usually a clear relationship between these domains, e.g.,, code summarization, where the natural language summary describes the code. There have been very few attempts to study how multi-task transfer learning works on tasks in significantly different domains. In this project, we investigated the behavior of multi-domain, multi-task learning using multi-domain text-to-text transfer transformers (MD-T5) on four tasks across two domains - Python C…
-
Exploring and Predicting Transferability across NLP TasksTu Vu, Tong Wang, T. Munkhdalai et al. · 2020 · Conference on Empirical Methods in Natural Language Processing · cited 199 times · Not summarized yet
Abstract
Recent advances in NLP demonstrate the effectiveness of training large-scale language models and transferring them to downstream tasks. Can fine-tuning these models on tasks other than language modeling further improve performance? In this paper, we conduct an extensive study of the transferability between 33 NLP tasks across three broad classes of problems (text classification, question answering, and sequence labeling). Our results show that transfer learning is more beneficial than previously thought, especially when target task data is scarce, and can improve performance even when the source task is small or differs substantially from the target task (e.g., part-of-speech tagging transfe…
-
Transfer Learning in Natural Language ProcessingShenson Joseph, Ashkok Gadi Parthi, Durgaraman Maruthavanan et al. · 2024 · 2024 7th International Conference on Information and Communications Technology (ICOIACT) · cited 8 times · Not summarized yet
Abstract
Transfer learning has been a game-changer for natural language processing (NLP), and this technique has massively accelerated progress in the field of NLP, specifically by substantially benefiting from advancements being made elsewhere. We evaluated their performance economic model on a set of tasks and found they outperformed generic transformer models in accuracy as well as generalization. This is also a reminder of the importance of large-scale pretraining, which requires less task-specific data and consequently facilitates faster model development. To achieve a better understanding of the impact on model performance from fine-tuning, combined with datasets characteristics and architectur…
-
Uncovering advanced transfer learning strategies for deep neural networks in natural language processingMohamed M. Abbassy, Waleed M. Ead, Amr El-Shora et al. · 2026 · Scientific Reports · cited 1 time · Not summarized yet
Abstract
In the rapidly evolving landscape of Natural Language Processing (NLP), transfer learning has emerged as a game-changing methodology, fundamentally altering how machine learning models are trained and deployed. The study at hand dives deep into the intricacies of transfer learning techniques, specifically focusing on their application in complex deep learning architectures within the NLP domain. By exploring a variety of architectural designs, fine-tuning methodologies, and alternative training paradigms, we aim to demystify the optimal strategies for harnessing the power of pre-trained models. To quantify the effectiveness of these approaches, we conducted a comprehensive series of experime…
-
A Survey on Transfer Learning in Natural Language ProcessingZaid Alyafeai, Maged Saeed Al-shaibani, Irfan Ahmad · 2020 · arXiv.org · preprint, not peer reviewed · cited 97 times · Not summarized yet
Abstract
Deep learning models usually require a huge amount of data. However, these large datasets are not always attainable. This is common in many challenging NLP tasks. Consider Neural Machine Translation, for instance, where curating such large datasets may not be possible specially for low resource languages. Another limitation of deep learning models is the demand for huge computing resources. These obstacles motivate research to question the possibility of knowledge transfer using large trained models. The demand for transfer learning is increasing as many large models are emerging. In this survey, we feature the recent transfer learning advances in the field of NLP. We also provide a taxonomy…
-
mT5: A massively multilingual pre-trained text-to-text transformerLinting Xue, Noah Constant, Adam Roberts et al. · 2020 · Computation and Language · cited 3,534 times · AI summary available
Abstract
The recent "Text-to-Text Transfer Transformer" (T5) leveraged a unified text-to-text format and scale to attain state-of-the-art results on a wide variety of English-language NLP tasks. In this paper, we introduce mT5, a multilingual variant of T5 that was pre-trained on a new Common Crawl-based dataset covering 101 languages. We detail the design and modified training of mT5 and demonstrate its state-of-the-art performance on many multilingual benchmarks. We also describe a simple technique to prevent "accidental translation" in the zero-shot setting, where a generative model chooses to (partially) translate its prediction into the wrong language. All of the code and model checkpoints used …
-
Unlocking Transfer Learning's Potential in Natural Language Processing: An Extensive Investigation and EvaluationPradipta Banerjee, Swati Kashyap · 2024 · 2024 International Conference on Advances in Computing Research on Science Engineering and Technology (ACROSET) · Not summarized yet
Abstract
With the advent of transfer learning approaches, Natural Language Processing (NLP) problems have experienced tremendous progress, as demonstrated by models such as Generative Pre-trained Transformers (GPT) and Bidirectional Encoder Representations from Transformers (BERT). The usefulness of such transfer learning strategies across a range of NLP tasks and domains is investigated in this work. The study uses a methodical methodology to assess BERT and GPT's performance on a wide range of tasks. In addition, the study evaluates the generalizability and flexibility of these models across a broad variety of disciplines, including social media, finance, legal, and biological literature. The study…
-
Exploring the Limits of Transfer Learning with Unified Model in the Cybersecurity DomainKuntal Kumar Pal, Kazuaki Kashihara, Ujjwala Anantheswaran et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 7 times · AI summary available
Abstract
With the increase in cybersecurity vulnerabilities of software systems, the ways to exploit them are also increasing. Besides these, malware threats, irregular network interactions, and discussions about exploits in public forums are also on the rise. To identify these threats faster, to detect potentially relevant entities from any texts, and to be aware of software vulnerabilities, automated approaches are necessary. Application of natural language processing (NLP) techniques in the Cybersecurity domain can help in achieving this. However, there are challenges such as the diverse nature of texts involved in the cybersecurity domain, the unavailability of large-scale publicly available data…
Prior work it builds on
-
Unified Language Model Pre-training for Natural Language Understanding and GenerationLi Dong, Nan Yang, Wen-Hui Wang et al. · 2019 · Neural Information Processing Systems · cited 1,690 times · Not summarized yet
Abstract
This paper presents a new Unified pre-trained Language Model (UniLM) that can be fine-tuned for both natural language understanding and generation tasks. The model is pre-trained using three types of language modeling tasks: unidirectional, bidirectional, and sequence-to-sequence prediction. The unified modeling is achieved by employing a shared Transformer network and utilizing specific self-attention masks to control what context the prediction conditions on. UniLM compares favorably with BERT on the GLUE benchmark, and the SQuAD 2.0 and CoQA question answering tasks. Moreover, UniLM achieves new state-of-the-art results on five natural language generation datasets, including improving the…
-
Attention Is All You NeedAshish Vaswani, Noam Shazeer, Niki Parmar et al. · 2017 · Computation and Language · cited 201,689 times · AI summary available
Abstract
The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ense…
-
Multi-Task Deep Neural Networks for Natural Language UnderstandingXiaodong Liu, Pengcheng He, Wei-Zhu Chen et al. · 2019 · Annual Meeting of the Association for Computational Linguistics · cited 1,381 times · Not summarized yet
Abstract
In this paper, we present a Multi-Task Deep Neural Network (MT-DNN) for learning representations across multiple natural language understanding (NLU) tasks. MT-DNN not only leverages large amounts of cross-task data, but also benefits from a regularization effect that leads to more general representations to help adapt to new tasks and domains. MT-DNN extends the model proposed in Liu et al. (2015) by incorporating a pre-trained bidirectional transformer language model, known as BERT (Devlin et al., 2018). MT-DNN obtains new state-of-the-art results on ten NLU tasks, including SNLI, SciTail, and eight out of nine GLUE tasks, pushing the GLUE benchmark to 82.7% (2.2% absolute improvement) as …
-
Teaching Machines to Read and ComprehendK. Hermann, Tomás Kociský, Edward Grefenstette et al. · 2015 · Neural Information Processing Systems · cited 4,112 times · Not summarized yet
Abstract
Teaching machines to read natural language documents remains an elusive challenge. Machine reading systems can be tested on their ability to answer questions posed on the contents of documents that they have seen, but until now large scale training and test datasets have been missing for this type of evaluation. In this work we define a new methodology that resolves this bottleneck and provides large scale supervised reading comprehension data. This allows us to develop a class of attention based deep neural networks that learn to read real documents and answer complex questions with minimal prior knowledge of language structure.
-
Exploring the Limits of Language ModelingR. Józefowicz, O. Vinyals, Mike Schuster et al. · 2016 · arXiv.org · preprint, not peer reviewed · cited 1,202 times · Not summarized yet
Abstract
In this work we explore recent advances in Recurrent Neural Networks for large scale Language Modeling, a task central to language understanding. We extend current models to deal with two key challenges present in this task: corpora and vocabulary sizes, and complex, long term structure of language. We perform an exhaustive study on techniques such as character Convolutional Neural Networks or Long-Short Term Memory, on the One Billion Word Benchmark. Our best single model significantly improves state-of-the-art perplexity from 51.3 down to 30.0 (whilst reducing the number of parameters by a factor of 20), while an ensemble of models sets a new record by improving perplexity from 41.0 down t…
Papers that cite it
-
Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy et al. · 2021 · Computer Vision and Pattern Recognition · preprint, not peer reviewed · cited 16,842 times · AI summary available
Abstract
State-of-the-art computer vision systems are trained to predict a fixed set of predetermined object categories. This restricted form of supervision limits their generality and usability since additional labeled data is needed to specify any other visual concept. Learning directly from raw text about images is a promising alternative which leverages a much broader source of supervision. We demonstrate that the simple pre-training task of predicting which caption goes with which image is an efficient and scalable way to learn SOTA image representations from scratch on a dataset of 400 million (image, text) pairs collected from the internet. After pre-training, natural language is used to refer…
-
Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal et al. · 2019 · Computation and Language · cited 6,283 times · AI summary available
Abstract
This paper shows that pretraining multilingual language models at scale leads to significant performance gains for a wide range of cross-lingual transfer tasks. We train a Transformer-based masked language model on one hundred languages, using more than two terabytes of filtered CommonCrawl data. Our model, dubbed XLM-R, significantly outperforms multilingual BERT (mBERT) on a variety of cross-lingual benchmarks, including +13.8% average accuracy on XNLI, +12.3% average F1 score on MLQA, and +2.1% average F1 score on NER. XLM-R performs particularly well on low-resource languages, improving 11.8% in XNLI accuracy for Swahili and 9.2% for Urdu over the previous XLM model. We also present a de…
-
Transformers in Vision: A SurveySalman Hameed Khan, Muzammal Naseer, Munawar Hayat et al. · 2022 · ACM Computing Surveys · cited 3,728 times · Not summarized yet
Abstract
Astounding results from Transformer models on natural language tasks have intrigued the vision community to study their application to computer vision problems. Among their salient benefits, Transformers enable modeling long dependencies between input sequence elements and support parallel processing of sequence as compared to recurrent networks, e.g., Long short-term memory. Different from convolutional networks, Transformers require minimal inductive biases for their design and are naturally suited as set-functions. Furthermore, the straightforward design of Transformers allows processing multiple modalities (e.g., images, videos, text, and speech) using similar processing blocks and demon…
-
HuggingFace's Transformers: State-of-the-art Natural Language ProcessingThomas Wolf, Lysandre Debut, Victor Sanh et al. · 2019 · arXiv (Cornell University) preprint · preprint, not peer reviewed · cited 4,375 times · Not summarized yet
Abstract
Recent progress in natural language processing has been driven by advances in both model architecture and model pretraining. Transformer architectures have facilitated building higher-capacity models and pretraining has made it possible to effectively utilize this capacity for a wide variety of tasks. \textit{Transformers} is an open-source library with the goal of opening up these advances to the wider machine learning community. The library consists of carefully engineered state-of-the art Transformer architectures under a unified API. Backing this library is a curated collection of pretrained models made by and available for the community. \textit{Transformers} is designed to be extensibl…
-
A Survey on Vision TransformerKai Han, Yunhe Wang, Hanting Chen et al. · 2022 · IEEE Transactions on Pattern Analysis and Machine Intelligence · cited 4,822 times · Not summarized yet
Abstract
Transformer, first applied to the field of natural language processing, is a type of deep neural network mainly based on the self-attention mechanism. Thanks to its strong representation capabilities, researchers are looking at ways to apply transformer to computer vision tasks. In a variety of visual benchmarks, transformer-based models perform similar to or better than other types of networks such as convolutional and recurrent neural networks. Given its high performance and less need for vision-specific inductive bias, transformer is receiving more and more attention from the computer vision community. In this paper, we review these vision transformer models by categorizing them in differ…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 6 November 2026.