Abstract
Few-shot text classification remains a significant challenge for Pre-trained Language Models (PTMs) due to the "cold-start" problem. This paper introduces IDoFew, a framework that utilizes a dual-clustering intermediate training stage to bridge the gap between general pre-training and task-specific fine-tuning. By combining Sequential Information Bottleneck (SIB) and KMeans clustering, IDoFew generates and refines pseudo-labels, significantly improving performance on downstream tasks with minimal human-annotated data.
Introduction
While PTMs like BERT have revolutionized NLP, their effectiveness often depends on large volumes of labeled data. In many domains, obtaining such annotations is costly or impractical. Unsupervised clustering has been proposed to generate "pseudo-labels" for intermediate training; however, single-stage clustering is prone to noise. If a model is trained on erroneous pseudo-labels, its final accuracy suffers. IDoFew addresses this by implementing a "correction engine" through a dual-clustering approach.
Methodology: The IDoFew Framework
The IDoFew pipeline consists of three distinct stages designed to iteratively refine the model's understanding of the target domain.
- Stage 1: PTM-SIB (Initial Pseudo-labeling): The entire unlabeled dataset is clustered using Sequential Information Bottleneck (SIB) based on TF-IDF features. This provides a broad, word-count-based categorization to "inter-train" the BERT model.
- Stage 2: PTM-SIB-KMeans (The Correction Engine): To mitigate noise from the first stage, a small fraction (5-20%) of the data is re-clustered using KMeans with SBERT (Sentence-BERT) embeddings. SBERT captures deeper semantic nuances that TF-IDF might miss, allowing this stage to identify and correct initial misclassifications.
- Stage 3: Fine-tuning: The refined model is finally fine-tuned on a very small set of high-quality human labels (e.g., 64 samples).
Experimental Results
The framework was evaluated across seven diverse datasets, including sentiment analysis (Polarity, Subjectivity), general categorization (AG News, Yahoo Answers, DBpedia), and specialized tasks (SMS Spam, ISEAR).
Performance and Stability
IDoFew consistently outperformed standard BERT baselines and existing intermediate training frameworks. Notably, on the 14-class DBpedia dataset, IDoFew achieved 77.41% accuracy, a massive leap from the 31.54% baseline.
As shown in Figure 3, the choice of the number of clusters ($K$) impacts performance, with $K=20$ generally providing a stable baseline across various tasks. The dual-clustering approach demonstrates superior stability compared to single-stage methods, particularly in handling varying text lengths.
Discussion and Key Insights
The success of IDoFew stems from feature diversity and the correction mechanism. By utilizing both TF-IDF and context-aware SBERT embeddings, the model views the data through complementary lenses. Furthermore, the authors discovered that using a smaller subset of data (e.g., 5%) in the second stage often prevents the merging of smaller clusters into larger ones, maintaining better class balance than using the full dataset.
Conclusion and Future Work
IDoFew provides a robust solution for few-label text classification by effectively leveraging unlabeled data through dual-clustering. While it introduces some computational overhead and sensitivity to the cluster parameter $K$, the gains in accuracy—especially on complex, multi-class tasks—are substantial. Future research may explore integrating more advanced semantic engines like Latent Dirichlet Allocation (LDA) to further enhance pseudo-label reliability.
Summary updated