arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.08734cs.CVcs.DBcs.DScs.IR
收藏

使用GPU进行十亿级相似性搜索

Billion-scale similarity search with GPUs

Facebook AI Research(Facebook人工智能研究院)

Jeff Johnson, Matthijs Douze, Hervé Jégou

摘要:

相似性搜索在处理复杂数据(例如图像或视频)的专用数据库系统中找到应用,这些数据通常由高维特征表示并需要特定的索引结构。本文解决了更好地利用GPU完成这项任务的问题。虽然GPU擅长数据并行任务,但先前的方法被暴露较少并行性的算法所验证,例如k-min选择,或者对存储层次结构的利用不佳。我们提出了一种k-选择的设计,其运行速度高达理论峰值性能的55%,实现了比现有GPU最先进技术快8.5倍的最近邻实现。我们将其应用于不同的相似性搜索场景,通过提出基于乘积量化的蛮力,近似和压缩域搜索的优化设计。在所有这些设置中,我们的表现都远远超过了最先进的水平。我们的实现可以在35分钟内在Yfcc 100 M数据集的9500万张图像上构建高精度k-NN图,并在不到12小时的时间内在4个Maxwell Titan X GPU上构建连接10亿个向量的图。为了比较和可重复性,我们开放了我们的方法。

英文摘要:

Similarity search finds application in specialized database systems handling complex data such as images or videos, which are typically represented by high-dimensional features and require specific indexing structures. This paper tackles the problem of better utilizing GPUs for this task. While GPUs excel at data-parallel tasks, prior approaches are bottlenecked by algorithms that expose less parallelism, such as k-min selection, or make poor use of the memory hierarchy. We propose a design for k-selection that operates at up to 55% of theoretical peak performance, enabling a nearest neighbor implementation that is 8.5x faster than prior GPU state of the art. We apply it in different similarity search scenarios, by proposing optimized design for brute-force, approximate and compressed-domain search based on product quantization. In all these setups, we outperform the state of the art by large margins. Our implementation enables the construction of a high accuracy k-NN graph on 95 million images from the Yfcc100M dataset in 35 minutes, and of a graph connecting 1 billion vectors in less than 12 hours on 4 Maxwell Titan X GPUs. We have open-sourced our approach for the sake of comparison and reproducibility.

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

↑