Introduction
Text clustering is a fundamental unsupervised task in natural language processing that involves grouping similar documents without prior label information. While pre-trained language models like BERT provide high-quality initial sentence representations, they are not explicitly optimized for clustering tasks. Recent advancements have introduced contrastive learning (CL) to improve these representations by ensuring that augmented versions of the same sentence remain close in vector space. However, most existing CL methods focus solely on instance-level relationships, neglecting the broader cluster-level structure. SimCTC addresses this gap by integrating both instance-level and cluster-level contrastive objectives into a unified framework.
Methodology
The SimCTC architecture consists of a shared BERT encoder followed by three specialized heads designed to optimize different aspects of the representation space.
- BERT Encoder: Maps input sequences into a high-dimensional representation space. Training pairs are generated using the
nlpauglibrary with BERT and RoBERTa-based augmentations. - Clustering Head: Utilizes a Student’s t-distribution to calculate cluster assignment probabilities, iteratively refining them by minimizing the KL divergence against a high-confidence target distribution.
- Instance-CL Head: Implements a standard contrastive loss to ensure augmented versions of the same instance are similar while remaining distinct from other instances in the batch.
- Cluster-CL Head: Projects representations into a cluster feature space and applies contrastive learning at the cluster level, ensuring that different cluster distributions are well-separated.
Experimental Setup
SimCTC was evaluated on four benchmark datasets: SST (sentiment analysis), SOF (Stack Overflow categories), TT (Telegraph news topics), and GTS (Google News categories). Performance was compared against traditional baselines (BOW, TF-IDF) and state-of-the-art deep learning methods such as SCCL and HAC-SD.
Results
SimCTC consistently outperformed all baseline models across all datasets in terms of both Accuracy (Acc) and Normalized Mutual Information (Nmi).
Key findings include:
- Accuracy Gains: SimCTC achieved a 1% to 6% improvement over previous state-of-the-art models. Notably, on the SOF dataset, it reached 78.3% accuracy, surpassing SCCL's 75.5%.
- Clustering Quality: Improvements in Nmi (1% to 4%) indicate that SimCTC's clusters align more accurately with ground-truth categories.
- High Performance: On the GTS dataset, the model achieved 90.9% accuracy and 96.1% Nmi, demonstrating robust performance on complex news categorization tasks.
Discussion and Key Insights
The success of SimCTC stems from its multi-granularity learning approach. By combining instance-level and cluster-level objectives, the model captures both fine-grained sentence differences and the global semantic landscape. Furthermore, the use of diverse augmentation strategies (BERT and RoBERTa-based) via the nlpaug library enhances the robustness of the learned representations.
The study also explored the impact of the cluster count parameter ($C$) in the Cluster-CL head. While performance is sensitive to this parameter, SimCTC maintains competitive results across various settings, suggesting that "over-clustering" during the contrastive phase can still provide valuable semantic signals.
Conclusion and Future Work
SimCTC demonstrates that integrating cluster-level awareness into contrastive learning significantly enhances text clustering performance. Future research will focus on developing formal methods for determining the optimal number of clusters and further investigating the mathematical relationships between cluster-level objectives and representation quality.
Summary updated