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

Pyramid:一个通用的分布式相似性搜索框架

Pyramid: A General Framework for Distributed Similarity Search

Shiyuan Deng, Xiao Yan, Kelvin K. W. Ng, Chenyu Jiang, James Cheng

摘要:

相似性搜索是图像匹配、产品推荐、低命中率分类等应用中的核心部分。然而,单机解决方案通常是不够的,由于大基数的现代数据集和严格的延迟要求的在线查询处理。我们提出金字塔,一个通用的和有效的框架,分布式相似性搜索。Pyramid支持使用流行的相似度函数进行搜索,包括欧氏距离、角距离和内积。与现有的基于KD树或局部敏感散列(LSH)的分布式解决方案不同,Pyramid基于分层可导航小世界图(HNSW),这是单机上最先进的相似性搜索算法。为了实现高查询处理吞吐量,Pyramid将数据集划分为包含用于索引构建的相似项的子数据集,并将查询仅分配给部分子数据集进行查询处理。为了提供生产部署所需的健壮性,Pyramid还支持故障恢复和落伍者缓解。Pyramid提供了一套简洁的API,用户可以轻松使用Pyramid,而无需了解分布式执行的细节。在大规模数据集上的实验表明,Pyramid算法能够获得高质量的相似性搜索结果,具有较高的查询处理吞吐量,并且在节点失效和离散情况下具有较好的鲁棒性。

英文摘要:

Similarity search is a core component in various applications such as image matching, product recommendation and low-shot classification. However, single machine solutions are usually insufficient due to the large cardinality of modern datasets and stringent latency requirement of on-line query processing. We present Pyramid, a general and efficient framework for distributed similarity search. Pyramid supports search with popular similarity functions including Euclidean distance, angular distance and inner product. Different from existing distributed solutions that are based on KD-tree or locality sensitive hashing (LSH), Pyramid is based on Hierarchical Navigable Small World graph (HNSW), which is the state of the art similarity search algorithm on a single machine. To achieve high query processing throughput, Pyramid partitions a dataset into sub-datasets containing similar items for index building and assigns a query to only some of the sub-datasets for query processing. To provide the robustness required by production deployment, Pyramid also supports failure recovery and straggler mitigation. Pyramid offers a set of concise API such that users can easily use Pyramid without knowing the details of distributed execution. Experiments on large-scale datasets show that Pyramid produces quality results for similarity search, achieves high query processing throughput and is robust under node failure and straggler.

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

↑