[Paper Review] Downstream Datasets Make Surprisingly Good Pretraining Corpora
This paper proposes self-pretraining—pretraining transformer models directly on downstream task data using standard self-supervised objectives like masked language modeling—demonstrating that this approach rivals or exceeds performance from standard pretraining on large upstream corpora (e.g., BookWiki). Surprisingly, self-pretrained models achieve 50–80% performance gains on tasks like question answering and commonsense inference, even outperforming off-the-shelf models on 7 out of 10 datasets, suggesting that pretraining benefits stem largely from the objective itself rather than external data.
For most natural language processing tasks, the dominant practice is to finetune large pretrained transformer models (e.g., BERT) using smaller downstream datasets. Despite the success of this approach, it remains unclear to what extent these gains are attributable to the massive background corpora employed for pretraining versus to the pretraining objectives themselves. This paper introduces a large-scale study of self-pretraining, where the same (downstream) training data is used for both pretraining and finetuning. In experiments addressing both ELECTRA and RoBERTa models and 10 distinct downstream classification datasets, we observe that self-pretraining rivals standard pretraining on the BookWiki corpus (despite using around $10 imes$--$500 imes$ less data), outperforming the latter on $7$ and $5$ datasets, respectively. Surprisingly, these task-specific pretrained models often perform well on other tasks, including the GLUE benchmark. Besides classification tasks, self-pretraining also provides benefits on structured output prediction tasks such as span based question answering and commonsense inference, often providing more than $50\%$ of the performance boosts provided by pretraining on the BookWiki corpus. Our results hint that in many scenarios, performance gains attributable to pretraining are driven primarily by the pretraining objective itself and are not always attributable to the use of external pretraining data in massive amounts. These findings are especially relevant in light of concerns about intellectual property and offensive content in web-scale pretraining data.
Motivation & Objective
- To investigate whether the performance gains from pretraining are primarily due to the pretraining objective or the scale of upstream corpora.
- To evaluate whether downstream datasets alone can serve as effective pretraining corpora when used with standard self-supervised objectives.
- To compare self-pretraining (pretraining on downstream data) with standard pretraining (on large upstream corpora) across diverse NLP tasks.
- To assess whether self-pretrained models generalize well to other downstream tasks, including GLUE and structured prediction tasks.
- To explore the implications of self-pretraining for reducing exposure to harmful content in pretraining data.
Proposed method
- The authors fine-tune ELECTRA and RoBERTa models using self-pretraining, where the same downstream dataset used for fine-tuning is also used for pretraining.
- They apply standard self-supervised objectives such as masked language modeling (MLM) and replaced token detection (RTD) during pretraining on the downstream data.
- Performance is evaluated across 10 diverse downstream classification datasets, including SQuAD, SWAG, HellaSwag, and CONLL-2012 NER.
- The study compares three training regimes: random initialization (RI), self-pretraining (SP), and off-the-shelf pretraining (OS) on BookWiki.
- For each model and dataset, they report F1 scores and F1 improvements relative to random initialization.
- They analyze error correlation between self-pretrained and off-the-shelf models to assess whether different pretraining strategies lead to complementary predictions.
Experimental results
Research questions
- RQ1To what extent do performance gains in NLP stem from the pretraining objective rather than the scale or content of upstream corpora?
- RQ2Can downstream datasets alone serve as effective pretraining corpora, matching or exceeding performance from large upstream corpora?
- RQ3How does self-pretraining compare to standard pretraining in terms of downstream performance across diverse NLP tasks?
- RQ4Do self-pretrained models generalize well to other downstream tasks, including those outside their pretraining domain?
- RQ5What are the implications of self-pretraining for reducing exposure to toxic or biased content in pretraining data?
Key findings
- Self-pretraining on downstream datasets outperformed standard pretraining on BookWiki for 7 out of 10 classification datasets using ELECTRA-small and 5 out of 10 using RoBERTa-base.
- On question answering (SQuAD), self-pretraining achieved a 78.47% F1 score with ELECTRA-small—surpassing the off-the-shelf model’s 75.96% F1.
- For structured prediction tasks like SWAG and HellaSwag, self-pretraining delivered 70–80% performance gains over random initialization, with RoBERTa-base achieving 40–80% benefit.
- Self-pretrained models made significantly less correlated errors than off-the-shelf models, indicating they learn different inductive biases.
- Models pretrained on one downstream dataset often generalized well to other datasets, achieving over 50% of the off-the-shelf model’s performance gain in 88% of cases.
- Self-pretraining avoids exposure to potentially harmful content in web-scale pretraining corpora while still delivering substantial performance improvements.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.