Don't Stop Pretraining: Adapt Language Models to Domains and Tasks

Suchin Gururangan, Ana Marasović, Swabha Swayamdipta, Kyle Lo, Iz Beltagy +2 more
4/23/2020
3,376 citations
cs.CLcs.LG

Official code: allenai/dont-stop-pretraining (546 stars, Python, last commit 2021-11-15).

Abstract

Language models pretrained on text from a wide variety of sources form the foundation of today's NLP. In light of the success of these broad-coverage models, we investigate whether it is still helpful to tailor a pretrained model to the domain of a target task.

Show full abstract

We present a study across four domains (biomedical and computer science publications, news, and reviews) and eight classification tasks, showing that a second phase of pretraining in-domain (domain-adaptive pretraining) leads to performance gains, under both high- and low-resource settings. Moreover, adapting to the task's unlabeled data (task-adaptive pretraining) improves performance even after domain-adaptive pretraining. Finally, we show that adapting to a task corpus augmented using simple data selection strategies is an effective alternative, especially when resources for domain-adaptive pretraining might be unavailable. Overall, we consistently find that multi-phase adaptive pretraining offers large gains in task performance.

View on arXivView PDF

Code Implementations(1)

Code associated with the Don't Stop Pretraining ACL 2020 paper

54672Python, JsonnetApr 9, 20205 years ago
natural-language-processingpretrained-language-model

Similar Papers

Cite this paper

@article{gururangan2020dont,
  title  = {Don't Stop Pretraining: Adapt Language Models to Domains and Tasks},
  author = {Suchin Gururangan and Ana Marasović and Swabha Swayamdipta and Kyle Lo and Iz Beltagy and Doug Downey and Noah A. Smith},
  year   = {2020},
  eprint = {2004.10964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.10964}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.10964.svg)](https://codeofpaper.com/paper/2004.10964)

Discussion