arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.17813cs.IR
收藏

数据、排序和本征维度对分层可导航小世界(HNSW)召回率的影响

The Impacts of Data, Ordering, and Intrinsic Dimensionality on Recall in Hierarchical Navigable Small Worlds

Owen Pendrigh Elliott, Jesse Clark

AI总结:

本文研究HNSW在深度学习嵌入与真实数据上的召回表现,发现本征维度和插入顺序显著影响召回,并指出现有ANN基准需更贴近实际。

摘要:

向量搜索系统在AI应用中至关重要,通常依赖分层可导航小世界(Hierarchical Navigable Small Worlds,HNSW)算法。然而,在使用深度学习模型生成向量的真实场景下,HNSW的行为仍未得到充分研究。现有的近似最近邻(Approximate Nearest Neighbours,ANN)基准和研究通常过度依赖MNIST或SIFT1M等简单数据集,未能反映当前用例的复杂性。我们的调查聚焦于HNSW在一系列数据集上的效能,包括为模拟特定本征维度而定制的合成向量、使用常用嵌入模型的广泛检索基准,以及使用CLIP模型的专有电商图像数据。我们调研了最流行的HNSW向量数据库,并整理其默认参数,以为全文提供一个现实的固定参数设置。我们发现,与精确K近邻(K Nearest Neighbours,KNN)搜索相比,近似HNSW搜索的召回率与向量空间的本征维度相关,并显著受到数据插入顺序的影响。我们的方法强调,由可测量属性(如逐点局部本征维度(Local Intrinsic Dimensionality,LID)或已知类别)指导的插入顺序,可使召回率变化至多12个百分点。我们还观察到,对部分模型而言,使用HNSW而非KNN运行流行基准数据集,可使排名变化至多三个位置。本工作强调,在使用近似向量搜索算法开发稳健的向量搜索系统时,需要更细致的基准和设计考量。本研究提出了若干具有不同真实世界适用性的场景,旨在更好地增进对ANN算法和嵌入的理解及未来发展。

英文摘要:

Vector search systems, pivotal in AI applications, often rely on the Hierarchical Navigable Small Worlds (HNSW) algorithm. However, the behaviour of HNSW under real-world scenarios using vectors generated with deep learning models remains under-explored. Existing Approximate Nearest Neighbours (ANN) benchmarks and research typically has an over-reliance on simplistic datasets like MNIST or SIFT1M and fail to reflect the complexity of current use-cases. Our investigation focuses on HNSW's efficacy across a spectrum of datasets, including synthetic vectors tailored to mimic specific intrinsic dimensionalities, widely-used retrieval benchmarks with popular embedding models, and proprietary e-commerce image data with CLIP models. We survey the most popular HNSW vector databases and collate their default parameters to provide a realistic fixed parameterisation for the duration of the paper. We discover that the recall of approximate HNSW search, in comparison to exact K Nearest Neighbours (KNN) search, is linked to the vector space's intrinsic dimensionality and significantly influenced by the data insertion sequence. Our methodology highlights how insertion order, informed by measurable properties such as the pointwise Local Intrinsic Dimensionality (LID) or known categories, can shift recall by up to 12 percentage points. We also observe that running popular benchmark datasets with HNSW instead of KNN can shift rankings by up to three positions for some models. This work underscores the need for more nuanced benchmarks and design considerations in developing robust vector search systems using approximate vector search algorithms. This study presents a number of scenarios with varying real world applicability which aim to better increase understanding and future development of ANN algorithms and embedding

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

↑