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

通过向量相似性搜索进行求和估计

Sum Estimation via Vector Similarity Search

Georgia Tech(佐治亚理工学院);Coactive AI;Desjardins(德萨日丹)

Stephen Mussmann, Mehul Smriti Raje, Kavya Tumkur, Oumayma Messoussi, Cyprien Hachem, Seby Jacob

AI总结:

本文提出了一种通过向量相似性搜索进行求和估计的新算法,仅需O(log(n))个最相似向量,提高了求和估计的效率和精度。

摘要:

语义嵌入被广泛用于表示图像、文本和音频等对象,在机器学习中推动了向量相似性搜索方法的发展,用于检索语义相关对象。在本工作中,我们研究了估计集合中所有对象总和的兄弟任务,例如核密度估计(KDE)和softmax分布的归一化常数。尽管现有解决方案可以证明将求和估计任务减少到获取O(√n)个最相似的向量,其中n是对象的数量,我们引入了一种新的算法,仅需要O(log(n))个最相似的向量。我们的方法随机将对象分配到具有指数衰减概率的级别,并为每个级别构建一个向量相似性搜索数据结构。通过每个级别的前k个对象,我们提出了一种无偏的总和估计,并证明了一个高概率的相对误差界。我们在OpenImages和Amazon Reviews上运行实验,使用向量相似性搜索实现来展示我们的方法可以在更少的计算时间内实现更低的误差。我们展示了在估计密度、计算softmax分母和计算球内向量数量方面的应用结果。

英文摘要:

Semantic embeddings to represent objects such as image, text and audio are widely used in machine learning and have spurred the development of vector similarity search methods for retrieving semantically related objects. In this work, we study the sibling task of estimating a sum over all objects in a set, such as the kernel density estimate (KDE) and the normalizing constant for softmax distributions. While existing solutions provably reduce the sum estimation task to acquiring $\mathcal{O}(\sqrt{n})$ most similar vectors, where $n$ is the number of objects, we introduce a novel algorithm that only requires $\mathcal{O}(\log(n))$ most similar vectors. Our approach randomly assigns objects to levels with exponentially-decaying probabilities and constructs a vector similarity search data structure for each level. With the top-$k$ objects from each level, we propose an unbiased estimate of the sum and prove a high-probability relative error bound. We run experiments on OpenImages and Amazon Reviews with a vector similar search implementation to show that our method can achieve lower error using less computational time than existing reductions. We show results on applications in estimating densities, computing softmax denominators, and counting the number of vectors within a ball.

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

↑