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

在上下文中进行比较:使用度量张量改进余弦相似性度量

Comparing in context: Improving cosine similarity measures with a metric tensor

Utrecht University(乌得勒支大学)

Isa M. Apallius de Vos, Ghislaine L. van den Boogerd, Mara D. Fennema, Adriana D. Correia

摘要:

余弦相似性是一种广泛使用的预训练词嵌入的相关性度量,该词嵌入是在语言建模目标上训练的。WordSim-353和SimLex-999等数据集根据人类注释者对单词的相似程度进行评级,因此通常用于评估语言模型的性能。因此,对单词相似性任务的任何改进都需要改进的单词表示。在本文中,我们建议使用扩展余弦相似性度量来提高该任务的性能,并获得可解释性。我们探讨的假设,这种方法是特别有用的,如果单词相似性对共享相同的上下文,不同的上下文相似性措施可以学习。我们首先使用Richie et al.(2020)的数据集来学习情境化指标,并将结果与使用标准余弦相似性度量获得的基线值进行比较,这始终显示出改进。我们还训练了SimLex-999和WordSim-353的上下文相似性度量,将结果与相应的基线进行比较,并将这些数据集用作在上下文数据集上学习的所有上下文相似性度量的独立测试集,获得了一些测试的积极结果。

英文摘要:

Cosine similarity is a widely used measure of the relatedness of pre-trained word embeddings, trained on a language modeling goal. Datasets such as WordSim-353 and SimLex-999 rate how similar words are according to human annotators, and as such are often used to evaluate the performance of language models. Thus, any improvement on the word similarity task requires an improved word representation. In this paper, we propose instead the use of an extended cosine similarity measure to improve performance on that task, with gains in interpretability. We explore the hypothesis that this approach is particularly useful if the word-similarity pairs share the same context, for which distinct contextualized similarity measures can be learned. We first use the dataset of Richie et al. (2020) to learn contextualized metrics and compare the results with the baseline values obtained using the standard cosine similarity measure, which consistently shows improvement. We also train a contextualized similarity measure for both SimLex-999 and WordSim-353, comparing the results with the corresponding baselines, and using these datasets as independent test sets for the all-context similarity measure learned on the contextualized dataset, obtaining positive results for a number of tests.

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

↑