ParlayANN:可扩展且确定性的并行基于图的近似最近邻搜索算法
ParlayANN: Scalable and Deterministic Parallel Graph-Based Approximate Nearest Neighbor Search Algorithms
AI总结:
针对现有并行图ANNS算法扩展性差和不确定性问题,提出ParlayANN库,包含四种确定性并行算法,可扩展至十亿级数据集,并通过实验验证其高效性和全面比较。
摘要:
近似最近邻搜索(ANNS)算法是现代深度学习栈的关键组成部分,因为它能够对数据的高维向量空间表示(即嵌入)进行高效相似性搜索。在各种ANNS算法中,基于图的算法被认为能实现最佳的吞吐量-召回率权衡。尽管现代ANNS数据集规模庞大,现有的并行基于图的实现由于大量使用锁和其他顺序瓶颈,在扩展到大规模数据集时面临重大挑战,这1)阻碍了它们高效扩展到大量处理器,2)导致不确定性,这在某些应用中是不希望的。在本文中,我们介绍了ParlayANN,一个确定性和并行基于图的近似最近邻搜索算法库,以及一套用于开发此类算法的有用工具。在该库中,我们为四种最先进的基于图的ANNS算法开发了新颖的并行实现,这些算法可扩展到十亿级数据集。我们的算法是确定性的,并在各种具有挑战性的数据集上实现了高可扩展性。除了新的算法思想外,我们还对我们的新算法以及两种现有的非图方法进行了详细的实验研究。我们的实验结果既验证了我们新技术的有效性,也促成了在大规模数据集上对ANNS算法的全面比较,并得出一系列有趣的发现。
英文摘要:
Approximate nearest-neighbor search (ANNS) algorithms are a key part of the modern deep learning stack due to enabling efficient similarity search over high-dimensional vector space representations (i.e., embeddings) of data. Among various ANNS algorithms, graph-based algorithms are known to achieve the best throughput-recall tradeoffs. Despite the large scale of modern ANNS datasets, existing parallel graph based implementations suffer from significant challenges to scale to large datasets due to heavy use of locks and other sequential bottlenecks, which 1) prevents them from efficiently scaling to a large number of processors, and 2) results in nondeterminism that is undesirable in certain applications. In this paper, we introduce ParlayANN, a library of deterministic and parallel graph-based approximate nearest neighbor search algorithms, along with a set of useful tools for developing such algorithms. In this library, we develop novel parallel implementations for four state-of-the-art graph-based ANNS algorithms that scale to billion-scale datasets. Our algorithms are deterministic and achieve high scalability across a diverse set of challenging datasets. In addition to the new algorithmic ideas, we also conduct a detailed experimental study of our new algorithms as well as two existing non-graph approaches. Our experimental results both validate the effectiveness of our new techniques, and lead to a comprehensive comparison among ANNS algorithms on large scale datasets with a list of interesting findings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。