Abstract
Training deep-learning text classification models usually requires a large amount of labeled data, which is often labor-intensive and time-consuming to produce. Few-shot text classification focuses on predicting unknown samples using only a few labeled examples. Recently, metric-based meta-learning methods have achieved promising results by using episodic training to enhance model generalization. However, existing models often neglect the potential of learning from large volumes of unlabeled data. In this paper, we exploit knowledge learned from unlabeled samples to improve meta-network performance. Specifically, we introduce a novel knowledge distillation method that enriches meta-learning representations with self-supervised information. Additionally, we design a graph aggregation method to facilitate interaction between query and support sets, outputting more discriminative representations. Experiments on three public datasets show that our model outperforms state-of-the-art models in 5-way 1-shot and 5-way 5-shot scenarios.
The Challenge of Data Scarcity
Deep learning models are notoriously "data-hungry," often requiring thousands of labeled examples to achieve high performance. In many real-world scenarios—such as identifying rare medical conditions or niche legal categories—only a handful of labeled examples may be available. This is the "few-shot" problem.
While meta-learning (learning how to learn) has helped by training models on small "episodes," most existing methods ignore the vast amounts of unlabeled data often available and fail to let "query" samples (the ones to be classified) interact effectively with "support" samples (the labeled examples). This lack of interaction often leads to less discriminative features.
The SEML Framework
The authors propose SEML (Self-supervised Information-Enhanced Meta-learning), a two-stage pipeline designed to bridge these gaps by leveraging unlabeled data and contextual interaction.
Stage 1: Self-Supervised Learning
Before the model encounters any labels, it undergoes a "self-guided contrastive learning" phase. It processes unlabeled text to learn robust embeddings by comparing different internal layers of a BERT model. This "warm-up" phase teaches the model the underlying semantic structure of the language, providing a structural prior that stabilizes the subsequent meta-learning process.
Stage 2: Meta-Training with Graph Aggregation
In the meta-training stage, SEML introduces two core innovations to refine feature vectors:
- Graph Aggregation (GA): For every few-shot task, the model builds a graph where each text sample is a node. It uses a Laplacian matrix to aggregate information across these nodes, allowing query and support samples to "talk" to each other and refine their representations based on the specific context of the current task.
- Knowledge Distillation (KD): The model distills the self-supervised knowledge learned in the first stage into the meta-learning network. This ensures the final representations are enriched with the broad semantic understanding gained from unlabeled data.
Performance and Insights
SEML was evaluated on three benchmarks: HuffPost (news headlines), 20News (newsgroup posts), and Reuters (news articles). Key findings include:
- Significant Accuracy Gains: On the 20News 5-way 1-shot task, SEML achieved 69.09% accuracy, a massive jump over the previous state-of-the-art (60.13%). On Reuters 5-way 5-shot, it reached 97.06%.
- Ablation Success: Removing either Knowledge Distillation or Graph Aggregation led to significant performance drops, confirming that both components are vital to the model's success.
- Metric Choice: The authors found that cosine similarity often outperformed Euclidean distance, suggesting that the semantic "angle" of high-dimensional text embeddings is a more reliable indicator of class than raw distance.
Conclusion
SEML demonstrates that unlabeled data is not just "extra" data; it provides a vital structural prior for few-shot learning. By combining self-supervised pre-training with contextualized graph interaction, SEML sets a new standard for few-shot text classification. Future research will explore the use of large-scale external knowledge graphs and more effective knowledge migration between diverse tasks.
Summary updated