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

使用预训练嵌入和句子袋的高效灵活的主题建模

Efficient and Flexible Topic Modeling using Pretrained Embeddings and Bag of Sentences

University of Liechtenstein(列支敦士登大学)

Johannes Schneider

AI总结:

提出基于句子袋和预训练句子嵌入的主题建模推断算法,结合生成模型与聚类,通过期望最大化等方法实现高效灵活且达到最优性能的主题建模。

摘要:

预训练语言模型在许多NLP任务中取得了新的最优成果。然而,对于主题建模,诸如LDA等统计生成模型仍然盛行,这些模型难以轻易地结合上下文词向量。它们可能产生与人类判断不太一致的主题。在本研究中,我们提出了一种新颖的主题建模和推断算法。我们建议采用句子袋(BoS)方法,将句子作为分析单元。我们通过结合生成过程模型和聚类来利用预训练的句子嵌入。我们推导出一种基于期望最大化、硬分配和退火过程的快速推断算法。评估表明,我们的方法以相对较低的计算需求取得了最优结果。与之前利用词嵌入的工作相比,我们的方法也更灵活,因为它提供了使用先验来自定义主题-文档分布的可能性。代码和数据位于https://github.com/JohnTailor/BertSenClu。

英文摘要:

Pre-trained language models have led to a new state-of-the-art in many NLP tasks. However, for topic modeling, statistical generative models such as LDA are still prevalent, which do not easily allow incorporating contextual word vectors. They might yield topics that do not align well with human judgment. In this work, we propose a novel topic modeling and inference algorithm. We suggest a bag of sentences (BoS) approach using sentences as the unit of analysis. We leverage pre-trained sentence embeddings by combining generative process models and clustering. We derive a fast inference algorithm based on expectation maximization, hard assignments, and an annealing process. The evaluation shows that our method yields state-of-the art results with relatively little computational demands. Our method is also more flexible compared to prior works leveraging word embeddings, since it provides the possibility to customize topic-document distributions using priors. Code and data is at \url{https://github.com/JohnTailor/BertSenClu}.

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

↑