打倒层级结构:HNSW 中的“H”代表“枢纽(Hubs)”
Down with the Hierarchy: The 'H' in HNSW Stands for "Hubs"
AI总结:
本文通过大规模基准测试证明扁平可导航小世界图在高维 ANN 搜索中可达到与 HNSW 相同的延迟和召回率且内存更少,并提出“枢纽高速公路假说”解释层级结构在高维中无益的原因。
摘要:
受近期神经表示学习突破性进展的推动,对向量嵌入的近似近邻(ANN)搜索已成为一项关键的计算工作负载。随着具有开创性的分层可导航小世界(HNSW)算法的提出,基于图的索引已确立其作为高效且可扩展的 ANN 搜索中占绝对主导地位的范式。顾名思义,HNSW 搜索一个分层的层次图,以快速识别与给定查询向量相似的点所在的邻域。但这种层级结构真的必要吗?对这一问题进行严格的实验分析,将为 ANN 搜索的算法设计本质提供有价值的见解,并为这一日益关键的领域的未来工作指明方向。我们开展了一项广泛的基准测试研究,覆盖了比先前针对该问题的研究更多的大规模数据集。我们最终发现,在高维数据集上,扁平的可导航小世界图保留了 HNSW 的全部优势,其延迟和召回率表现与原算法本质上完全相同,但内存开销更小。此外,我们更进一步,研究了为什么 HNSW 的层级结构在高维中不带来收益,并提出假设:可导航小世界图包含一个连接良好、被频繁遍历的由枢纽节点构成的“高速公路”,它维持着与层级各层相同的所谓功能。我们提供了令人信服的经验证据,表明“枢纽高速公路假说”在真实数据集上成立,并研究了该高速公路形成的机制。这一假说的意义也可能为开发基于图的 ANN 搜索的增强方法提供未来的研究方向。
英文摘要:
Driven by recent breakthrough advances in neural representation learning, approximate near-neighbor (ANN) search over vector embeddings has emerged as a critical computational workload. With the introduction of the seminal Hierarchical Navigable Small World (HNSW) algorithm, graph-based indexes have established themselves as the overwhelmingly dominant paradigm for efficient and scalable ANN search. As the name suggests, HNSW searches a layered hierarchical graph to quickly identify neighborhoods of similar points to a given query vector. But is this hierarchy even necessary? A rigorous experimental analysis to answer this question would provide valuable insights into the nature of algorithm design for ANN search and motivate directions for future work in this increasingly crucial domain. We conduct an extensive benchmarking study covering more large-scale datasets than prior investigations of this question. We ultimately find that a flat navigable small world graph graph retains all of the benefits of HNSW on high-dimensional datasets, with latency and recall performance essentially \emph{identical} to the original algorithm but with less memory overhead. Furthermore, we go a step further and study \emph{why} the hierarchy of HNSW provides no benefit in high dimensions, hypothesizing that navigable small world graphs contain a well-connected, frequently traversed ``highway" of hub nodes that maintain the same purported function as the hierarchical layers. We present compelling empirical evidence that the \emph{Hub Highway Hypothesis} holds for real datasets and investigate the mechanisms by which the highway forms. The implications of this hypothesis may also provide future research directions in developing enhancements to graph-based ANN search.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。