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

小语言模型中余弦相似度的伽马混合建模

Gamma Mixture Modeling for Cosine Similarity in Small Language Models

Kevin Player

AI总结:

本研究针对小语言模型中句子嵌入的余弦相似度分布,提出用平移截断伽马混合模型进行拟合,并基于主题层次聚类给出启发式解释,同时提供期望最大化算法作为实用建模工具。

摘要:

我们研究了句子变换器嵌入的余弦相似度,并观察到它们能很好地用伽马混合模型来描述。从固定语料库中,我们测量所有文档嵌入与参考查询嵌入之间的相似度。经验上我们发现,这些分布通常能被平移并截断到[-1,1]的伽马分布很好地捕捉,在许多情况下,也能被伽马混合分布捕捉。我们提出一个启发式模型,其中主题的层次聚类自然导致相似度分数中的伽马混合结构。最后,我们概述了一个用于拟合平移伽马混合的期望最大化算法,这为建模相似度分布提供了实用工具。

英文摘要:

We study the cosine similarity of sentence transformer embeddings and observe that they are well modeled by gamma mixtures. From a fixed corpus, we measure similarities between all document embeddings and a reference query embedding. Empirically we find that these distributions are often well captured by a gamma distribution shifted and truncated to [-1,1], and in many cases, by a gamma mixture. We propose a heuristic model in which a hierarchical clustering of topics naturally leads to a gamma-mixture structure in the similarity scores. Finally, we outline an expectation-maximization algorithm for fitting shifted gamma mixtures, which provides a practical tool for modeling similarity distributions.

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

↑