Abstract
Clustering large volumes of unlabeled documents is a fundamental challenge in data science, often hindered by high-dimensional text representations and the risk of self-confirmation bias in deep learning models. We present ADCluster, a novel framework that transforms pre-trained language models into specialized document clusterers through a dual-adaptation mechanism. By employing K-Means as a "teacher" to generate pseudo-labels in an iterative "inner adaptation" loop, ADCluster refines text representations specifically for grouping. Furthermore, the framework incorporates "outer adaptation" to handle dynamic data streams. Experimental results across multiple benchmarks demonstrate that ADCluster significantly outperforms traditional and state-of-the-art deep clustering methods, particularly on long-form text.
Introduction
Traditional clustering methods, such as K-Means, frequently struggle with the contextual complexity of natural language. While deep learning has introduced self-learning approaches that simultaneously learn representations and clusters, these models often fall into the trap of self-confirmation bias. In such cases, a model may reinforce its own poor initial clustering, leading to inaccurate results. Additionally, real-world data is rarely static; document collections like news feeds arrive in continuous streams, requiring models that can adapt to new data without full retraining.
Methodology: The ADCluster Framework
ADCluster addresses these challenges through two distinct adaptation layers designed to refine document representations and handle evolving data.
Inner Adaptation (The Core Loop)
This iterative process is the heart of the framework. Documents are first encoded using a Language Model (e.g., BERT) to obtain vector representations. K-Means is then applied to these vectors to generate "pseudo-labels." A neural classifier—consisting of the language model encoder and a shallow MLP head—is trained to predict these labels.
A critical innovation in ADCluster is the re-initialization of the MLP head at each epoch. This prevents the model from becoming anchored to outdated cluster mappings, forcing the encoder to continuously refine its features to be more "clustering-friendly."
Outer Adaptation (Handling Data Streams)
To manage dynamic data, ADCluster supports two strategies:
- Accumulative: Retraining on the entire document history.
- Non-accumulative: Updating the model using only the most recent data chunk, allowing for efficient processing of continuous streams.
Experimental Evaluation
The researchers evaluated ADCluster on three distinct benchmarks:
- Yahoo!5: Long-form text (500+ tokens) from Yahoo! Answers.
- Ag News: Short news snippets (averaging ~1.4 sentences).
- Fake News: Medium-length articles across six domains.
Key Results and Insights
ADCluster consistently outperformed established baselines like Deep Embedding Clustering (DEC) and standard K-Means. On the Yahoo!5 dataset, ADCluster achieved an unsupervised accuracy of 67.94%, a substantial improvement over standard K-Means (44.64%) and DEC-BERT (46.43%).
Key Findings:
- K-Means as a Teacher: Using an external clustering algorithm provides a more stable training signal than self-supervised clustering, mitigating bias.
- The Power of Re-initialization: Starting the classification head fresh each epoch allows the model to adapt more effectively to shifting cluster boundaries.
- Contextual Richness: Performance is notably higher on long-form text (Yahoo!5) compared to short snippets (Ag News), suggesting the iterative process benefits from rich contextual information.
- Model Flexibility: ADCluster is model-agnostic; swapping BERT for RoBERTa or BART yielded even higher performance.
Conclusion and Future Work
ADCluster provides a robust solution for unsupervised document clustering in both static and streaming environments. While highly effective, current limitations include the requirement of a pre-defined cluster count ($K$) and slightly lower dominance on extremely short text. Future research will explore "soft adaptation" strategies to better balance historical and new data, as well as extending the framework to multimodal datasets incorporating images and video.
Summary updated