SimCTC: A Simple Contrast Learning Method of Text Clustering (Student Abstract)

Chen Li, Xiaoguang Yu, Shuangyong Song, Jia Wang, Bo Zou, Xiaodong He

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.

Architecture of the SimCTC framework featuring three specialized heads: Clustering, Instance-CL, and Cluster-CL.
  1. BERT Encoder: Maps input sequences into a high-dimensional representation space. Training pairs are generated using the nlpaug library with BERT and RoBERTa-based augmentations.
  2. 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.
  3. 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.
  4. 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).

Performance comparison of SimCTC against various baselines across four benchmark datasets.

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

BibTeX
@inproceedings{li2022simctc,
  author = {Chen Li and Xiaoguang Yu and Shuangyong Song and Jia Wang and Bo Zou and Xiaodong He},
  title = {{SimCTC: A Simple Contrast Learning Method of Text Clustering (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i11.21635},
}
Figure