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

基于图的多样性相似性搜索算法

Graph-Based Algorithms for Diverse Similarity Search

Piyush Anand, Piotr Indyk, Ravishankar Krishnaswamy, Sepideh Mahabadi, Vikas C. Raykar, Kirankumar Shiragur, Haike Xu

AI总结:

针对最近邻搜索结果冗余问题,提出首个基于图方法的带多样性约束的近似最近邻搜索算法,绕过两阶段流程,低维数据集下时间仅依赖k和logΔ,实验显示搜索时间显著优于标准两阶段方法。

摘要:

最近邻搜索是机器学习、计算机视觉、推荐系统等领域的基础数据结构问题,其主要目标是快速返回与给定查询最接近的数据点。但长期以来人们发现(Carbonell和Goldstein,1998),若无额外约束,返回结果可能冗余或重复。该问题通常分两阶段解决:第一阶段检索大量(r个)与查询最接近的点;第二阶段对r个点进行后处理,选择小子集以最大化所需多样性目标。尽管该方法流行,但存在根本效率瓶颈——第一阶段检索的点集通常远大于最终输出。本文提出带多样性约束的近似最近邻搜索的可证明高效算法,绕过两阶段流程。算法基于流行的图方法,可“搭载”现有高效实现,是首个带多样性约束的图基最近邻搜索算法。对于低内在维度数据集,数据结构返回k个近似最接近查询的多样点,时间仅依赖k和logΔ(Δ为数据集直径与最近点对距离的比值),该界与标准(非多样性)图基算法的已知最优界定性相似。实验表明,算法搜索时间显著低于标准两阶段方法。

英文摘要:

Nearest neighbor search is a fundamental data structure problem with many applications in machine learning, computer vision, recommendation systems and other fields. Although the main objective of the data structure is to quickly report data points that are closest to a given query, it has long been noted (Carbonell and Goldstein, 1998) that without additional constraints the reported answers can be redundant and/or duplicative. This issue is typically addressed in two stages: in the first stage, the algorithm retrieves a (large) number $r$ of points closest to the query, while in the second stage, the $r$ points are post-processed and a small subset is selected to maximize the desired diversity objective. Although popular, this method suffers from a fundamental efficiency bottleneck, as the set of points retrieved in the first stage often needs to be much larger than the final output. In this paper we present provably efficient algorithms for approximate nearest neighbor search with diversity constraints that bypass this two stage process. Our algorithms are based on popular graph-based methods, which allows us to "piggy-back" on the existing efficient implementations. These are the first graph-based algorithms for nearest neighbor search with diversity constraints. For data sets with low intrinsic dimension, our data structures report a diverse set of $k$ points approximately closest to the query, in time that only depends on $k$ and $\log Δ$, where $Δ$ is the ratio of the diameter to the closest pair distance in the data set. This bound is qualitatively similar to the best known bounds for standard (non-diverse) graph-based algorithms. Our experiments show that the search time of our algorithms is substantially lower than that using the standard two-stage approach.

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

↑