Abstract
KDSTM (Knowledge Distillation Semi-supervised Topic Modeling) is a novel framework designed to bridge the gap between unsupervised topic discovery and text classification. By combining neural topic modeling with optimal transport and knowledge distillation, KDSTM achieves state-of-the-art performance using only a handful of labeled documents. Crucially, it operates without the need for massive pretrained models like BERT or GPT, making it ideal for low-resource or specialized domains.
Introduction
Modern NLP typically relies on "pretrain-then-finetune" workflows using models like BERT. However, these models require significant computational resources and large labeled datasets to perform well on specific tasks. This creates a barrier for low-resource settings, such as endangered languages or niche industrial datasets. While traditional topic models like Latent Dirichlet Allocation (LDA) find patterns without labels, they are difficult to steer toward specific classification categories. KDSTM addresses this by turning a topic model into a high-performing classifier through semi-supervised learning.
Methods
The KDSTM framework utilizes three core components to integrate topic modeling with classification:
- Neural Topic Modeling with vMF: Instead of standard Gaussian distributions, KDSTM employs the von Mises-Fisher (vMF) distribution. Treating latent topics as points on a hypersphere produces superior clusters for text data and avoids "mode collapse."
- Optimal Transport (OT): To align discovered topics with user-defined labels, the model uses the Sinkhorn distance. This robustly matches document distributions to labels, even with noisy data or multi-topic documents.
- Knowledge Distillation (KD): The model "teaches itself" by using unsupervised insights to generate "pseudo-labels" for unlabeled data. These pseudo-labels guide the classifier's training, allowing the model to leverage the entire corpus despite having few initial labels.
Training proceeds in three stages: unsupervised model training, alignment via Optimal Transport loss, and refinement through Knowledge Distillation loss.
Experimental Setup
The model was evaluated on three datasets to test its versatility:
- AG’s News: A standard large-scale news classification dataset.
- DBLP: A "stress test" dataset of computer science paper titles with an average length of only 5.4 words.
- 20News: A smaller, classic newsgroup dataset for testing performance on limited data.
Key Results
KDSTM consistently outperformed traditional supervised topic models such as Labeled LDA (LLDA) and TAM across Accuracy, F1, and AUC metrics. It also proved competitive with WestClass, a more computationally expensive weakly-supervised method, while being approximately 4x faster to train.
Ablation studies confirmed that the Knowledge Distillation step specifically boosts performance. Notably, the model maintained high performance on the DBLP dataset, demonstrating robustness in capturing semantic meaning from minimal context.
Conclusion
KDSTM offers a lightweight, efficient alternative to heavy Transformer-based architectures for semi-supervised text classification. By leveraging spherical latent spaces and self-sufficient knowledge distillation, it provides a powerful tool for resource-constrained environments. Future work will explore incorporating sequential information to move beyond the current Bag-of-Words limitation.
Summary updated