When Low Resource NLP Meets Unsupervised Language Model: Meta-pretraining Then Meta-learning for Few-shot Text Classification

Shumin Deng, Ningyu Zhang, Zhanlin Sun, Jiaoyan Chen, Huajun Chen · DOI

Abstract

Text classification tends to be difficult when data are deficient or when it is required to adapt to unseen classes. In such challenging scenarios, recent studies have often used meta-learning to simulate the few-shot task, thus negating implicit common linguistic features across tasks. This paper addresses such problems using meta-learning and unsupervised language models. Our approach is based on the insight that having a good generalization from a few examples relies on both a generic model initialization and an effective strategy for adapting this model to newly arising tasks. We show that our approach is not only simple but also produces a state-of-the-art performance on a well-studied sentiment classification dataset. It can thus be further suggested that pretraining could be a promising solution for few-shot learning of many other NLP tasks.

Introduction

Deep learning models typically require vast amounts of labeled data to achieve high performance. However, in many real-world applications, labels are scarce, leading to the challenge of few-shot learning (FSL). While meta-learning ("learning to learn") has shown promise by simulating few-shot tasks during training, it often fails to leverage the broad linguistic knowledge available in massive unlabeled corpora.

The researchers propose MTM (Meta-pretraining Then Meta-learning), a framework that disentangles task-agnostic knowledge (general grammar and semantics) from task-specific knowledge. By combining unsupervised pre-training with the fast adaptation of meta-learning, MTM achieves superior performance in low-resource settings.

Methodology: The MTM Framework

The MTM approach consists of two distinct stages designed to provide both a robust foundation and a flexible adaptation mechanism.

  1. Task-agnostic Meta-Pretraining: The model is first initialized using unsupervised language modeling (e.g., BERT) on a large-scale raw corpus. This stage captures universal linguistic features that serve as a powerful starting point for any downstream task.
  2. Meta-learning for Adaptation: Following pre-training, the model enters a meta-learning phase based on the Model-Agnostic Meta-Learning (MAML) framework. Training is organized into episodes where the model must learn to classify text using only a small "support set" of examples.
The MTM algorithm combines unsupervised pre-training with a meta-learning loop for fast task adaptation.

The algorithm specifically optimizes for a parameter initialization $\theta$ that can be quickly adapted to new tasks with minimal gradient updates. By starting from a pre-trained state, the meta-learner focuses on task-specific categorization rather than basic language understanding.

Experimental Setup

The framework was evaluated on the Amazon Reviews Sentiment Classification (ARSC) dataset, which contains English reviews across 23 product categories. Each category includes three binary classification tasks, resulting in 69 tasks total. Following standard few-shot protocols, the model was tested on 12 tasks from four domains using a 5-shot setup, where it was only allowed five labeled examples per class to adapt.

Results and Discussion

MTM significantly outperformed existing state-of-the-art (SOTA) methods, establishing a new benchmark for the ARSC dataset.

Performance comparison on the ARSC dataset. MTM achieves state-of-the-art results, significantly outperforming previous models.

As shown in the results, MTM reached an accuracy of 90.01%, a substantial improvement over the previous SOTA of 85.47% (Induction-Network-Routing) and standard MAML (78.33%). This jump highlights that unsupervised pre-training provides a much more effective initialization for meta-learning than training from scratch or using static embeddings.

Key Insights

  • Initialization is Critical: A flexible model is not enough; starting from a highly informed linguistic state is essential for few-shot success.
  • Simplicity and Effectiveness: MTM achieves SOTA results without the need for complex specialized architectures like induction networks, suggesting that representation quality is the primary driver of performance.

Conclusion and Future Work

The MTM framework demonstrates that "meta-pretraining" is a powerful prerequisite for meta-learning in NLP. While highly effective for sentiment classification, future work will explore its applicability to more complex tasks like Named Entity Recognition (NER) and investigate the computational trade-offs of meta-learning on large-scale pre-trained backbones.

Summary updated

BibTeX
@inproceedings{deng2020when,
  author = {Shumin Deng and Ningyu Zhang and Zhanlin Sun and Jiaoyan Chen and Huajun Chen},
  title = {{When Low Resource NLP Meets Unsupervised Language Model: Meta-pretraining Then Meta-learning for Few-shot Text Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i10.7158},
}
Figure