arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.18364cs.CLcs.LGcs.SI
收藏

Hubness 降低改善 Sentence-BERT 语义空间

Hubness Reduction Improves Sentence-BERT Semantic Spaces

Technical University of Denmark(丹麦技术大学)

Beatrix M. G. Nielsen, Lars Kai Hansen

AI总结:

本文研究 Sentence-BERT 语义空间中的 hubness 问题,发现 hubness 会导致邻域关系不对称并损害语义质量,提出结合两种 hubness 降低方法,在测试模型上可将 hubness 降低约 75%、错误率降低约 9%,从而获得更好的文本语义表示。

摘要:

文本的语义表示,即通过几何方式捕捉含义的自然语言表示,对于信息检索和文档分组等领域至关重要。近年来,高维训练得到的稠密向量作为此类表示受到了广泛关注。我们研究了由 Sentence-BERT 生成的嵌入所形成的语义空间结构,发现这些表示存在高维空间中一个众所周知的问题,即 hubness。Hubness 导致邻域关系不对称,使得某些文本(hubs)成为许多其他文本的邻居,而大多数文本(所谓的 anti-hubs)则只是很少或没有其他文本的邻居。我们使用 hubness 分数和基于邻域的分类器错误率来量化嵌入的语义质量。我们发现,当 hubness 较高时,可以使用 hubness 降低方法来降低错误率和 hubness。我们确定两种方法的组合能够实现最佳降低效果。例如,在一个测试的预训练模型上,这种组合方法可以将 hubness 降低约 75%,并将错误率降低约 9%。因此,我们认为在嵌入空间中缓解 hubness 能够提供更好的文本语义表示。

英文摘要:

Semantic representations of text, i.e. representations of natural language which capture meaning by geometry, are essential for areas such as information retrieval and document grouping. High-dimensional trained dense vectors have received much attention in recent years as such representations. We investigate the structure of semantic spaces that arise from embeddings made with Sentence-BERT and find that the representations suffer from a well-known problem in high dimensions called hubness. Hubness results in asymmetric neighborhood relations, such that some texts (the hubs) are neighbours of many other texts while most texts (so-called anti-hubs), are neighbours of few or no other texts. We quantify the semantic quality of the embeddings using hubness scores and error rate of a neighbourhood based classifier. We find that when hubness is high, we can reduce error rate and hubness using hubness reduction methods. We identify a combination of two methods as resulting in the best reduction. For example, on one of the tested pretrained models, this combined method can reduce hubness by about 75% and error rate by about 9%. Thus, we argue that mitigating hubness in the embedding space provides better semantic representations of text.

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

↑