Short text clustering (STC)—the task of grouping brief snippets like tweets, search queries, or news headlines—presents a unique challenge in natural language processing. Unlike long-form documents, short texts suffer from extreme data sparseness. There are simply not enough word co-occurrences for traditional algorithms like Latent Dirichlet Allocation (LDA) to reliably identify thematic patterns.
This paper introduces a hybrid approach that leverages the power of sentence-level Transformer embeddings combined with a novel refinement loop called Enhancement of Clustering by Iterative Classification (ECIC). By treating a deep learning classifier as a noise filter, the authors demonstrate significant performance gains across multiple standard benchmarks.
Methodology: The ECIC Framework
The proposed pipeline consists of three primary stages: initial embedding, baseline clustering, and iterative refinement.
- Initial Embedding: The authors utilize the Universal Sentence Encoder (USE) to map short texts into high-dimensional dense vectors. Unlike word-level embeddings, USE captures the semantic context of the entire sentence, which proves more effective for clustering coherent short texts.
- Initial Clustering: Standard unsupervised algorithms are used to generate a "first guess" at cluster labels. The authors found that k-means is effective for datasets with few clusters, while Hierarchical Agglomerative Clustering (HAC) with k-NN sparsification performs better for high-K scenarios (e.g., 150+ clusters).
- Iterative Refinement (ECIC): The core innovation is the ECIC loop, which uses a classifier to "clean" the initial noisy clusters.
As detailed in Algorithm 1, the process involves:
- Outlier Detection: Identifying samples that are poorly aligned with their assigned clusters using methods like Isolation Forest.
- Classification: Training a deep classifier (such as BERT or RoBERTa) on the "clean" samples.
- Relabeling: Using the trained classifier to predict new labels for the entire dataset, effectively correcting initial errors.
- Convergence: Repeating the process until cluster assignments stabilize.
Experimental Results
The model was evaluated on eight diverse datasets, ranging from small cluster counts (e.g., AG News with 4 clusters) to large-scale scenarios (e.g., Google News with 152 clusters). The hybrid approach achieved state-of-the-art (SOTA) results on six of these eight benchmarks.
Key performance highlights include:
- Stack Overflow: Accuracy improved from a previous best of 78.73% to 84.72% when using the RoBERTa-enhanced iterative approach.
- AG News: The method reached a peak accuracy of 86.53%.
- High-K Stability: On Google News datasets, while initial HAC clustering was already strong (NMI > 90%), the iterative process maintained top-tier performance, though gains were more marginal compared to low-K settings.
Insights and Limitations
The study reveals that sentence-level embeddings are superior to averaged word embeddings for STC. However, the reliance on pre-trained Transformers introduces domain sensitivity. Performance dipped on the "Biomedical" dataset and "Search Snippets" because these contain specialized jargon or keyword lists that differ significantly from the general-purpose data used to train models like USE and RoBERTa.
Furthermore, the iterative algorithm faces convergence challenges when the number of clusters is extremely high, as the classifier has more difficulty identifying a stable "correct" structure. Future work may involve domain-specific pre-training (e.g., BioBERT) and more sophisticated stopping criteria for the refinement loop.
Summary updated