arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17705cs.CL
收藏

句子间的距离比:基于LLM嵌入变化率的相似性度量

Distance-to-Distance Ratio: A Similarity Measure for Sentences Based on Rate of Change in LLM Embeddings

DataKnife;Roosevelt University(罗思希尔大学)

Abdullah Qureshi, Kenneth Rice, Alexander Wolpert

AI总结:

本文提出距离比(DDR)作为衡量句子相似性的新方法,通过分析LLM嵌入变化率来评估上下文对语义的影响,实验表明其在区分语义相似与不相似文本方面表现更优。

摘要:

文本嵌入之间的相似性度量只有在符合人类对文本相似性的感知时才被认为是充分的。在本文中,我们引入了距离比(DDR),一种新的LLM句子嵌入相似性度量方法。受Lipschitz连续性启发,DDR衡量了预上下文词嵌入之间的相似性变化率与后上下文LLM嵌入之间的相似性变化率,从而测量上下文对语义的影响。我们通过一系列对句子数据集中的句子进行扰动设计的实验来评估DDR的性能。对于每个句子,我们通过将一个、两个或三个词替换为同义词(构成语义相似的文本)或随机选择的词(构成语义不相似的文本)来生成变体。我们比较了DDR与其他主流相似性度量方法的性能,并证明DDR在最小、受控的编辑下,能够更精细地区分语义相似和不相似的文本。

英文摘要:

A measure of similarity between text embeddings can be considered adequate only if it adheres to the human perception of similarity between texts. In this paper, we introduce the distance-to-distance ratio (DDR), a novel measure of similarity between LLM sentence embeddings. Inspired by Lipschitz continuity, DDR measures the rate of change in similarity between the pre-context word embeddings and the similarity between post-context LLM embeddings, thus measuring the semantic influence of context. We evaluate the performance of DDR in experiments designed as a series of perturbations applied to sentences drawn from a sentence dataset. For each sentence, we generate variants by replacing one, two, or three words with either synonyms, which constitute semantically similar text, or randomly chosen words, which constitute semantically dissimilar text. We compare the performance of DDR with other prevailing similarity metrics and demonstrate that DDR consistently provides finer discrimination between semantically similar and dissimilar texts, even under minimal, controlled edits.

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

↑