Neural Semi-supervised Learning for Text Classification Under Large-Scale Pretraining

Zijun Sun, Chun Fan, Xiaofei Sun, Yuxian Meng, Fei Wu, Jiwei LiarXiv 2020

Abstract

This study investigates the synergy between large-scale pretraining and semi-supervised learning (SSL) for text classification. While modern NLP is dominated by open-domain pretrained models like RoBERTa, this research demonstrates that strategically incorporating in-domain unlabeled data through continued pretraining and pseudo-labeling significantly enhances performance, particularly when labeled data is scarce. On the IMDB sentiment dataset, the proposed hybrid approach achieves 93.8% accuracy with only 50 labeled examples, outperforming traditional models trained on significantly larger datasets.

Introduction

In the current era of NLP, large-scale language models (LMs) pretrained on massive open-domain corpora (e.g., Wikipedia) have become the standard baseline. This shift raises a fundamental question: does semi-supervised learning (SSL) still offer value when we already possess models with extensive general linguistic knowledge? Specifically, when faced with a small labeled dataset ($D$) and a large unlabeled in-domain dataset ($U$), researchers must determine whether to prioritize continued pretraining on $U$ or utilize $U$ for pseudo-labeling in a teacher-student framework. This paper explores the most effective methods for integrating these paradigms.

Methodology

The authors evaluate three primary strategies for leveraging in-domain unlabeled data:

  1. In-domain LM Pretraining: Continuing the pretraining of a generic LM (like RoBERTa) on task-specific unlabeled data before fine-tuning on the labeled set.
  2. Pseudo-label Based SSL (Self-training):
    • Teacher Model: A model trained on the labeled set $D$ generates predictions for the unlabeled set $U$.
  3. Student Model: A new model is trained on the resulting pseudo-labeled dataset ($D'$).
  4. Refinement: To mitigate the impact of teacher errors, the authors tested a $T(D+D')F(D)$ regime, which involves initial training on the union of labeled and pseudo-labeled data, followed by final fine-tuning on the clean labeled data.
  5. Hybrid Approach: A combination of both techniques—pretraining on in-domain data followed by a teacher-student pseudo-labeling loop.

Experimental Setup

The research utilized two main benchmarks:

  • IMDB (Sentiment Analysis): 25,000 labeled reviews supplemented by 3.4 million unlabeled movie reviews crawled by the authors.
  • Deceptive Opinion Spam: A dataset for identifying fake hotel reviews (1,600 samples), supplemented by 1 million unlabeled TripAdvisor reviews.

Key Insights

The experiments yielded several critical findings regarding the scaling of SSL and pretraining:

  • Scaling with Unlabeled Data: In-domain pretraining performance improves significantly as the volume of unlabeled data increases. As shown in Figure 4, with sufficient in-domain data (approximately 1M samples), pretraining from scratch can match or exceed the performance of models initialized with open-domain weights.
  • The SSL "Sweet Spot": Pseudo-labeling is most effective for medium-sized labeled datasets. Very small labeled sets lead to poor teacher models, while very large sets diminish the marginal utility of additional pseudo-labeled data.
  • Preserving Label Integrity: In low-resource scenarios, finishing training on clean, human-verified labels is essential to prevent noise from pseudo-labels from degrading model accuracy.
Impact of unlabeled data size on pretraining performance.

Key Results

The proposed methods demonstrate remarkable efficiency in low-resource settings. On the IMDB dataset, the SSL strategies achieved 93.8% accuracy using only 50 labeled examples. This performance is comparable to a standard BiLSTM trained on the full 25,000-sample dataset, representing a 500x reduction in required labeled data.

Accuracy on IMDB across different labeled data sizes.

Furthermore, the hybrid approach reached a state-of-the-art 96.6% accuracy on the full IMDB dataset. The synergy between in-domain pretraining and pseudo-labeling consistently provided a performance boost (approx. +1.1%) over strong RoBERTa baselines.

Conclusion

This research confirms that SSL remains a powerful tool even in the age of massive pretraining. The combination of in-domain pretraining and pseudo-labeling provides a robust framework for text classification, especially when labeled data is limited. Future work will explore the applicability of these "recipes" to more complex tasks such as structured prediction and abstractive summarization, as well as methods to improve the computational efficiency of large-scale in-domain pretraining.

Summary updated

BibTeX
@misc{sun2020neural,
  author = {Zijun Sun and Chun Fan and Xiaofei Sun and Yuxian Meng and Fei Wu and Jiwei Li},
  title = {{Neural Semi-supervised Learning for Text Classification Under Large-Scale Pretraining}},
  year = {2020},
  eprint = {2011.08626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.08626},
}
Figure