Introduction
Text clustering is a fundamental unsupervised task in Natural Language Processing (NLP) aimed at grouping semantically similar documents. While Contrastive Learning (CL) has emerged as a powerful paradigm for learning text representations, existing "instance-wise" approaches suffer from several limitations. These methods typically focus on pulling a sentence and its augmented "twin" together while pushing others away, often ignoring the broader cluster context, incurring high computational costs for augmentations, and requiring a predefined number of clusters.
To address these challenges, researchers have developed Subspace Contrastive Learning (SCL). SCL shifts the focus from individual instances to latent subspaces, modeling how sentences relate to their broader clusters through a self-expressive "virtual positive" mechanism.
Methodology: Subspace Contrastive Learning
The SCL framework introduces a novel way to generate positive pairs without explicit data augmentation by leveraging the relationships between samples in a batch.
Self-Expressive Module and Virtual Positives
Instead of relying on manual augmentations like back-translation, SCL utilizes a self-expressive module. This module uses an attention-based mechanism to represent each sentence as a linear combination of other sentences within the same batch. This process generates a "virtual positive sample" ($e^v$)—a mathematical representation of the sentence within its local neighborhood or subspace.
Cluster-wise Contrastive Loss and Adaptive Temperature
The model is trained using a cluster-wise contrastive loss that minimizes the distance between a real sentence representation and its corresponding virtual twin. Simultaneously, it maximizes the distance from other sentences in the batch. To mitigate noise during the early stages of training when virtual samples may not be accurate, SCL employs a dynamic temperature parameter. This parameter automatically adjusts the penalty on negative samples, increasing as the self-expressive module's confidence grows.
Experimental Results
SCL was evaluated against seven diverse short-text clustering benchmarks, including AgNews, StackOverflow, and GoogleNews variations.
As shown in the results table, SCL consistently outperforms or matches state-of-the-art methods. Notably, on the AgNews dataset, SCL improved the NMI from 57.8 to 63.3. Across all seven datasets, SCL achieved an average Accuracy (ACC) of 72.9%, surpassing the next best contrastive method, ESimCSE, by nearly 3 percentage points. Visual analysis using t-SNE further confirms that SCL produces tighter, more isolated clusters with clearer boundaries compared to traditional instance-wise methods.
Discussion and Limitations
The success of SCL highlights the importance of subspace modeling in text clustering. By bypassing expensive NLP augmentation pipelines and focusing on mathematical self-expression, SCL offers a more efficient and robust solution. Interestingly, SCL provides a massive boost even when using older, non-transformer embeddings like GloVe, suggesting the subspace logic is a fundamental improvement in representation structuring.
However, the method exhibits sensitivity to batch size, as the quality of "virtual positives" depends on the availability of neighbors within a batch. Additionally, while SCL excels in low-to-medium category environments, its performance advantage is less pronounced in datasets with a very high number of categories (e.g., GoogleNews with 152 clusters), where sampling representatives from every category in a single batch becomes challenging.
Conclusion
Subspace Contrastive Learning represents a significant advancement in unsupervised text clustering. By leveraging the self-expressive property of data to define cluster subspaces, SCL achieves state-of-the-art results while maintaining computational efficiency and robustness across various embedding types. Future research will explore improved recall methods to enhance performance in high-entropy, many-cluster environments.
Summary updated