CEIL: A General Classification-Enhanced Iterative Learning Framework for Text Clustering

Mingjun Zhao, Mengzhen Wang, Yinglong Ma, Di Niu, Haijiang Wu · DOI

TL;DR

This paper introduces CEIL, a novel framework that iteratively enhances text representations for clustering by introducing a classification objective. By leveraging cleaned clustering results to train a classifier, CEIL improves the language model's ability to generate better features, leading to more accurate and robust text clusters.

What Problem Does This Paper Address?

Text clustering, the task of grouping similar text documents without prior labels, is a fundamental challenge in natural language processing. While deep learning has significantly advanced this field, existing methods often rely on general-domain pre-trained representations that may not be optimal for specific target domains. This mismatch can lead to suboptimal clustering performance. The paper aims to bridge this gap by creating a system that can adapt and improve its text representations specifically for the clustering task at hand, even with limited initial supervision.

Methods

The core of CEIL is an iterative learning process that alternates between clustering and classification.

  1. Initial Representation: In each iteration, a language model (like BERT) is used to extract initial text representations. For the first iteration, a mean pooling approach is used; subsequent iterations leverage the [MASK] token's representation from the updated model.
  2. Clustering with CDCC: The paper proposes a novel clustering algorithm called Category Disentangled Contrastive Clustering (CDCC). CDCC builds upon contrastive learning by adding a "category loss" to encourage better separation between clusters and more distinct cluster boundaries, addressing the issue of ambiguous sample points at cluster edges.
  3. Data Filtering and Aggregation: To ensure the quality of the labels used for classification, a crucial step involves cleaning the clustering results. This includes:
  4. Data Filtering: A graph-based approach identifies and keeps samples with strong inter-relations within a cluster, removing noisy outliers.
  5. Data Aggregation: Similar clusters are merged to consolidate samples that likely belong to the same ground truth category, especially important for imbalanced datasets.
  6. Automatic Verbalizer: Instead of manual label creation, an automatic verbalizer maps cluster assignments to representative tokens from the vocabulary based on TF-IDF scores. This creates "pseudo labels" for the classification task.
  7. Classification-Enhanced Learning: The cleaned and labeled data is used to train the language model via a prompt learning approach. This classification objective helps the language model learn representations that are more discriminative for the specific clustering task.
  8. Iteration: The updated language model then generates improved representations for the next clustering iteration, creating a positive feedback loop.

Datasets

The experiments were conducted on eight public short text clustering datasets and one internal dataset:

  • AgNews
  • StackOverflow
  • Biomedical
  • SearchSnippets
  • GoogleNews-TS, GoogleNews-S, GoogleNews-T (subsets of GoogleNews)
  • Tweet
  • MX (internal dataset of Spanish recipes)

Key Insights and Ideas

  • Iterative Improvement is Key: The paper demonstrates that a simple iterative loop between clustering and classification can significantly boost performance, especially for traditional clustering algorithms.
  • Classification as a Supervision Signal: Using the output of a clustering algorithm (after cleaning) as supervision for a classification task is a powerful way to adapt general-purpose language models to specific clustering domains.
  • Category Disentanglement Matters: The proposed CDCC's "category loss" is crucial for creating clearer cluster boundaries, which is a common challenge in contrastive learning-based clustering.
  • Data Quality is Paramount: The data filtering and aggregation steps are vital for ensuring that the pseudo-labels generated are reliable enough to effectively train the language model. Without them, noisy labels could degrade performance.
  • Prompt Learning's Versatility: The use of prompt learning for both representation extraction and classification shows its effectiveness, particularly when dealing with limited labeled data.

Key Results

  • CEIL framework significantly improves clustering performance over iterations.
  • CEIL is generally effective across various clustering algorithms (GMM, SCCL, CDCC).
  • When CEIL is applied to CDCC (CDCC_CEIL), it achieves state-of-the-art performance on a wide range of short text clustering benchmarks.
  • CDCC_CEIL achieved the best average accuracy of 83.2% and NMI of 79.2% across nine datasets.
  • CEIL provided substantial accuracy improvements: 17.5% for GMM, 2.9% for SCCL, and 4.4% for CDCC.

Limitations and Future Work

  • Domain-Specific Pre-training: The authors note that for highly specialized domains (like Biomedical), incorporating large-scale in-domain corpus pre-training could further enhance performance, suggesting a direction for future work.
  • Computational Cost: While not explicitly detailed as a limitation, iterative frameworks generally incur higher computational costs than single-pass methods.
  • Generalizability of Prompt Templates: The paper mentions using a simple K-means experiment to select prompt templates. Exploring more sophisticated methods for prompt template selection could be a future avenue.

Summary updated

BibTeX
@inproceedings{zhao2023ceil,
  author = {Mingjun Zhao and Mengzhen Wang and Yinglong Ma and Di Niu and Haijiang Wu},
  title = {{CEIL: A General Classification-Enhanced Iterative Learning Framework for Text Clustering}},
  booktitle = {The Web Conference},
  year = {2023},
  doi = {10.1145/3543507.3583457},
}
Figure