arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01283cs.LGcs.AI
收藏

高维空间中基于网格的近似最近邻搜索的缩放定律

Scaling Laws for Grid-Based Approximate Nearest Neighbor Search in High Dimensions

University of California, Berkeley(加州大学伯克利分校);University of Toronto, St. George(多伦多大学圣乔治校区);Independent Researcher(独立研究员);University of Waterloo(滑铁卢大学)

Matthew J Liu, Wei Hang Zheng, Vidhan Purohit, Siqi Xie, Chieh-En Li, Jerry Li, Noah Flynn

AI总结:

本研究系统刻画了多探针网格算法在数据集大小N和维度d上的缩放行为,发现其在GloVe嵌入上具有恒定的维度缩放指数,优于图、树和分区方法,且索引成本更低。

摘要:

基于网格的近似最近邻(ANN)搜索方法在现代缩放分析中一直缺席。我们系统地表征了多探针网格算法在数据集大小$N$和维度$d$上的性能。我们的实验揭示了在GloVe嵌入族上先前未报告的$d$缩放交叉,其中多探针网格搜索保持近似恒定的维度缩放指数,而其他基于图、树和分区的方法则表现出吞吐量下降。该优势带来了接近线性的$N$查询缩放,但索引成本低于竞争性的ANN方法。我们的结果表明,在索引成本和维度鲁棒性决定性能的重建密集型或高维设置中,基于网格的方法(如多探针网格)可能具有竞争力。更广泛地说,最近的工作已将自注意力形式化为ANN操作。因此,ANN算法的$N$和$d$缩放特性可能指导高效Transformer架构的成本分析。代码可在以下网址获取:this https URL。

英文摘要:

Grid-based approaches to approximate nearest neighbor (ANN) search have been absent from modern scaling analyses. We present a systematic characterization of a multiprobe grid algorithm with respect to dataset size $N$ and dimensionality $d$. Our experiments reveal a previously unreported $d$-scaling crossover on the GloVe embedding family, in which multiprobe grid search maintains an approximately constant dimensional scaling exponent while other graph-, tree-, and partitioning-based methods exhibit degrading throughput. The advantage comes with near-linear query scaling in $N$, but also with lower indexing cost than competing ANN methods. Our results suggest that grid-based methods such as multiprobe grid may be competitive in rebuild-heavy or high-dimensional settings where indexing cost and dimensional robustness dictate performance. More broadly, recent work has formalized self-attention as an ANN operation. Thus, the $N$- and $d$-scaling properties of ANN algorithms may guide cost analysis of efficient transformer architectures. Code is available at: https://github.com/weiz345/MultiProbeANN.

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

↑