arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.02457cs.CLcond-mat.stat-mechphysics.soc-ph
收藏

文本差异性的量化研究

Quantifying the Dissimilarity of Texts

The University of Sydney(悉尼大学)

Benjamin Shade, Eduardo G. Altmann

AI总结:

该研究针对自然语言处理中文本差异性量化的需求,对比多种差异性度量在不同文本表示与任务下的表现,分析文本长度差对度量的影响,为不同场景下的度量选择提供了依据。

摘要:

量化两个文本的差异性是诸多自然语言处理任务的重要环节,包括语义信息检索、主题分类和文档聚类。本文采用三种文本表示方式——词汇表、词频分布和向量嵌入——以及三项简单任务——按作者、主题和时期对文本聚类,对比了不同差异性度量$D$的特性与性能。基于Project Gutenberg(古登堡计划)数据库,我们发现应用于词频的广义Jensen–Shannon散度在所有任务中表现优异,基于向量嵌入表示的$D$在短文本任务中表现更优,而最优方法的选择最终取决于具体任务。我们还从解析和数值两方面研究了当两篇文本长度相差因子$h$时,不同$D$的表现。我们证明了词汇表间Jaccard距离的(自然)估计量不具有一致性,并显式计算了应用于词频的广义Jensen–Shannon散度估计量偏差的$h$依赖关系。数值实验还表明,Jensen–Shannon散度和基于嵌入的方法对$h$的变化具有鲁棒性,而Jaccard距离则不具备这一特性。

英文摘要:

Quantifying the dissimilarity of two texts is an important aspect of a number of natural language processing tasks, including semantic information retrieval, topic classification, and document clustering. In this paper, we compared the properties and performance of different dissimilarity measures $D$ using three different representations of texts -- vocabularies, word frequency distributions, and vector embeddings -- and three simple tasks -- clustering texts by author, subject, and time period. Using the Project Gutenberg database, we found that the generalised Jensen--Shannon divergence applied to word frequencies performed strongly across all tasks, that $D$'s based on vector embedding representations led to stronger performance for smaller texts, and that the optimal choice of approach was ultimately task-dependent. We also investigated, both analytically and numerically, the behaviour of the different $D$'s when the two texts varied in length by a factor $h$. We demonstrated that the (natural) estimator of the Jaccard distance between vocabularies was inconsistent and computed explicitly the $h$-dependency of the bias of the estimator of the generalised Jensen--Shannon divergence applied to word frequencies. We also found numerically that the Jensen--Shannon divergence and embedding-based approaches were robust to changes in $h$, while the Jaccard distance was not.

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

↑