Empirical Configuration Study of a Common Document Clustering Pipeline
Open Access
- 8 May 2023
- journal article
- research article
- Published by Linkoping University Electronic Press in Northern European Journal of Language Technology
- Vol. 9 (1)
Abstract
Document clustering is frequently used in applications of natural language processing, e.g. to classify news articles or creating topic models. In this paper, we study document clustering with the common clustering pipeline that includes vectorization with BERT or Doc2Vec, dimension reduction with PCA or UMAP, and clustering with K-Means or HDBSCAN. We discuss the inter- actions of the different components in the pipeline, parameter settings, and how to determine an appropriate number of dimensions. The results suggest that BERT embeddings combined with UMAP dimension reduction to no less than 15 dimensions provides a good basis for clustering, regardless of the specific clustering algorithm used. Moreover, while UMAP performed better than PCA in our experiments, tuning the UMAP settings showed little impact on the overall performance. Hence, we recommend configuring UMAP so as to optimize its time efficiency. According to our topic model evaluation, the combination of BERT and UMAP, also used in BERTopic, performs best. A topic model based on this pipeline typically benefits from a large number of clusters.Keywords
This publication has 10 references indexed in Scilit:
- The performance of BERT as data representation of text clusteringJournal of Big Data, 2022
- Parametric UMAP Embeddings for Representation and Semisupervised LearningNeural Computation, 2021
- Topic Modelling Meets Deep Neural Networks: A Survey2021
- An evaluation of document clustering and topic modelling in two online social networks: Twitter and RedditInformation Processing & Management, 2020
- Dimensionality reduction for visualizing single-cell data using UMAPNature Biotechnology, 2018
- UMAP: Uniform Manifold Approximation and ProjectionJournal of Open Source Software, 2018
- Mean shift, mode seeking, and clusteringIEEE Transactions on Pattern Analysis and Machine Intelligence, 1995
- Comparing partitionsJournal of Classification, 1985
- The estimation of the gradient of a density function, with applications in pattern recognitionIEEE Transactions on Information Theory, 1975
- LIII. On lines and planes of closest fit to systems of points in spaceJournal of Computers in Education, 1901