arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.15112cs.CLcs.AIcs.LG
收藏

基于大语言模型嵌入的文本聚类

Text Clustering with Large Language Model Embeddings

Lusófona University(卢索福纳大学);Center of Technology and Systems (UNINOVA-CTS)(技术与系统中心(UNINOVA-CTS));Associated Lab of Intelligent Systems (LASI)(智能系统联合实验室(LASI))

Alina Petukhova, João P. Matos-Carvalho, Nuno Fachada

AI总结:

本研究探讨大语言模型(LLMs)嵌入对文本聚类的影响,通过实验评估不同嵌入、聚类算法、降维和模型规模的作用,发现LLM嵌入优于传统方法,GPT-3.5 Turbo和BERT表现突出,为文本聚类提供改进方法和研究新方向。

摘要:

文本聚类是组织日益增长的数字内容的重要方法,有助于在未分类数据中构建结构并发现隐藏模式。文本聚类的有效性很大程度上取决于文本嵌入和聚类算法的选择。本研究认为,大语言模型(LLMs)的最新进展有潜力增强这一任务。该研究调查了不同的文本嵌入(尤其是LLMs中使用的嵌入)和各种聚类算法如何影响文本数据集的聚类。研究开展了一系列实验,以评估嵌入对聚类结果的影响、通过摘要进行降维的作用以及模型规模的调整。研究结果表明,LLM嵌入在捕捉结构化语言的细微差别方面更具优势。在大多数测试数据集上,OpenAI的GPT-3.5 Turbo模型在五个聚类指标中的三个指标上取得了更好的结果。与传统方法相比,大多数LLM嵌入在聚类纯度方面有所改进,并提供了更具信息量的轮廓系数,反映出对文本数据更精细的结构理解。在更轻量级的模型中,BERT表现出领先性能。此外,研究观察到,增加模型维度和采用摘要技术并不总能提高聚类效率,这表明这些策略在实际应用中需要仔细考虑。这些结果凸显了文本聚类应用中对精细文本表示的需求与计算可行性之间的复杂平衡。本研究通过整合LLMs的嵌入扩展了传统文本聚类框架,提供了改进的方法,并为各类文本分析的未来研究提出了新途径。

英文摘要:

Text clustering is an important method for organising the increasing volume of digital content, aiding in the structuring and discovery of hidden patterns in uncategorised data. The effectiveness of text clustering largely depends on the selection of textual embeddings and clustering algorithms. This study argues that recent advancements in large language models (LLMs) have the potential to enhance this task. The research investigates how different textual embeddings, particularly those utilised in LLMs, and various clustering algorithms influence the clustering of text datasets. A series of experiments were conducted to evaluate the impact of embeddings on clustering results, the role of dimensionality reduction through summarisation, and the adjustment of model size. The findings indicate that LLM embeddings are superior at capturing subtleties in structured language. OpenAI's GPT-3.5 Turbo model yields better results in three out of five clustering metrics across most tested datasets. Most LLM embeddings show improvements in cluster purity and provide a more informative silhouette score, reflecting a refined structural understanding of text data compared to traditional methods. Among the more lightweight models, BERT demonstrates leading performance. Additionally, it was observed that increasing model dimensionality and employing summarisation techniques do not consistently enhance clustering efficiency, suggesting that these strategies require careful consideration for practical application. These results highlight a complex balance between the need for refined text representation and computational feasibility in text clustering applications. This study extends traditional text clustering frameworks by integrating embeddings from LLMs, offering improved methodologies and suggesting new avenues for future research in various types of textual analysis.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑