Downstream Datasets Make Surprisingly Good Pretraining Corpora

Kundan Krishna, Saurabh Garg, Jeffrey P. Bigham, Zachary C. Lipton

Introduction

The prevailing paradigm in Natural Language Processing (NLP) relies on a "pretrain-then-finetune" pipeline. Models are typically initialized by pretraining on massive, web-scale corpora like Wikipedia or Common Crawl (the "upstream" corpus) before being finetuned on a smaller, task-specific "downstream" dataset. The standard assumption is that these massive corpora are essential for the model to acquire the linguistic knowledge and semantic facts necessary for high performance.

However, this research challenges that assumption. The authors investigate whether the performance gains attributed to massive data are actually driven by the pretraining objective itself—such as Masked Language Modeling (MLM)—acting as a powerful regularizer or optimizer, even when applied to small amounts of data.

Self-Pretraining: A New Approach

The authors introduce self-pretraining, where a model is initialized with random weights and pretrained from scratch using only the text from the downstream training set. This approach is compared against standard off-the-shelf pretraining (e.g., on the 13GB BookWiki corpus) and random initialization.

Comparison of aggregate performance across (i) random initialization, (ii) standard Wikipedia pretraining, and (iii) self-pretraining.

Experimental Setup

The study evaluated these strategies across 10 classification datasets, including AGNews (news), QQP (forum questions), and Amazon Polarity (reviews), with sizes ranging from a mere 27MB to 1.4GB. The evaluation also extended to structured prediction tasks like Question Answering (SQuAD) and Named Entity Recognition (NER), using models such as ELECTRA-small and RoBERTa-base.

Key Findings

1. The Power of the Objective

Self-pretraining captured, on average, 103.7% of the performance gain provided by standard massive-scale pretraining across the 10 classification datasets. For ELECTRA-small, self-pretraining actually outperformed the BookWiki-pretrained model on 7 out of 10 tasks. This suggests that the pretraining objective is a highly effective optimizer that helps the model find superior internal representations even with limited data.

2. Massive Data Efficiency

The efficiency of self-pretraining is remarkable. For instance, self-pretraining on the 27MB AGNews dataset achieved 131% of the benefit of pretraining on the 13GB BookWiki corpus—representing a nearly 500x difference in data volume for comparable or better results.

3. Generalization and Transferability

Surprisingly, models pretrained on a single downstream dataset often generalize well to other tasks. A model pretrained on Yahoo Answers, for example, performs competitively on the general GLUE benchmark. This implies that even relatively small, domain-specific datasets contain sufficient linguistic variety to learn general-purpose features.

Heatmap showing the performance of models pretrained on one downstream dataset and finetuned on another, illustrating cross-dataset transferability.

Implications for Safety and Privacy

Beyond performance, self-pretraining offers significant advantages for data privacy and ethics. By avoiding the need to scrape the entire internet, researchers can bypass many of the intellectual property issues and the toxic or offensive content often embedded in massive web-scale datasets. This makes high-performance NLP more accessible to organizations with limited data or strict privacy requirements.

Conclusion and Future Work

While self-pretraining is highly effective for specific finetuning tasks, massive upstream data remains critical for the emergent zero-shot capabilities seen in Large Language Models (LLMs). Future research should explore whether these findings scale to models with billions of parameters and further investigate the trade-off between data diversity and model scale in the context of self-supervised objectives.

Summary updated

BibTeX
@inproceedings{krishna2023downstream,
  author = {Kundan Krishna and Saurabh Garg and Jeffrey P. Bigham and Zachary C. Lipton},
  title = {{Downstream Datasets Make Surprisingly Good Pretraining Corpora}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.682},
}
Figure