Cluster & Tune: Boost Cold Start Performance in Text Classification

Eyal Shnarch, Ariel Gera, Alon Halfon, Lena Dankin, Leshem Choshen, Ranit Aharonov, Noam Slonim

Introduction

The "cold start" problem remains a significant challenge in deploying NLP models, where limited labeled data often leads to suboptimal performance. While large-scale pre-trained models like BERT provide a strong foundation, they still require significant supervision to adapt to niche domains. In many industrial contexts, obtaining large labeled datasets is impractical due to privacy concerns, the need for domain expertise, or the rarity of certain classes. This bottleneck limits the utility of state-of-the-art NLP in low-resource scenarios.

"Cluster & Tune" addresses this by introducing an "inter-training" phase. This phase utilizes the abundant unlabeled data typically available in target domains to bridge the gap between general-purpose pre-training and task-specific fine-tuning.

Methodology

The proposed pipeline consists of four distinct stages designed to "warm up" the model's representations for a specific domain:

  1. Pre-training: Utilizing a standard model (e.g., BERT) pre-trained on a large, general-domain corpus.
  2. Clustering: Unlabeled data from the target domain is partitioned into $n_c$ clusters. The authors found that 50 clusters, generated using the sequential Information Bottleneck (sIB) technique on simple Bag-of-Words (BOW) representations, provide a robust default. Surprisingly, BOW-based clustering outperformed more sophisticated embedding methods like GloVe for this purpose.
  3. Inter-training (The "Cluster" Step): The model is trained to predict these cluster assignments as "pseudo-labels." This step encourages the model to capture the underlying topical structure and salient features of the target domain.
  4. Fine-tuning (The "Tune" Step): The model is finally fine-tuned on the small set of available human-labeled data.
The Cluster & Tune pipeline, illustrating the inter-training phase between general pre-training and task-specific fine-tuning.

Experimental Setup

The method was evaluated across nine datasets, categorized into topical (e.g., Yahoo! Answers, DBpedia, 20 newsgroups) and non-topical (e.g., SMS spam, sentiment polarity) tasks. The primary focus was the "extreme cold start" regime, specifically with a budget of 64 labeled samples, to test the limits of the inter-training approach.

Results and Discussion

Experimental results demonstrate that inter-training on clusters significantly boosts performance, particularly for topical classification.

Accuracy across nine datasets as a function of the number of fine-tuning samples. BERT_IT:CLUST (green) and BERT_IT:MLM+CLUST (dark blue) consistently outperform standard BERT (orange) in low-data regimes.

Key findings include:

  • Substantial Gains in Low-Data Regimes: On topical datasets with 64 labels, the method achieved an average accuracy gain of 110% and a 33% reduction in error compared to standard BERT. In the most dramatic case (20 newsgroups), accuracy rose from 13.0% to 47.2%—a 263% improvement.
  • Topical Alignment: The effectiveness of the method is tied to the alignment between unsupervised clusters and target labels. While highly effective for topical tasks, it provides minimal benefit for stylistic or sentiment-based tasks where unsupervised clustering does not naturally capture the target distinctions.
  • Efficiency: The process is computationally inexpensive. Clustering takes seconds, and inter-training on 15,000 instances requires approximately five and a half minutes on a single V100 GPU, making it a highly accessible technique for practitioners.

Conclusion

"Cluster & Tune" offers a practical and efficient solution for the cold start problem in topical text classification. By leveraging unsupervised clustering as an intermediate objective, practitioners can significantly reduce the labeling burden required to achieve high performance. While its benefits are currently concentrated in topical domains, the simplicity and speed of the method make it a valuable addition to the NLP practitioner's toolkit.

Summary updated

BibTeX
@inproceedings{shnarch2022cluster,
  author = {Eyal Shnarch and Ariel Gera and Alon Halfon and Lena Dankin and Leshem Choshen and Ranit Aharonov and Noam Slonim},
  title = {{Cluster \& Tune: Boost Cold Start Performance in Text Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.526},
}
Figure