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

GTS:用于快速相似性搜索的基于 GPU 的树索引

GTS: GPU-based Tree Index for Fast Similarity Search

Yifan Zhu, Ruiyao Ma, Baihua Zheng, Xiangyu Ke, Lu Chen, Yunjun Gao

AI总结:

本文提出 GPU 树索引 GTS,通过枢轴树、列表表、两阶段搜索与更新策略支持一般度量空间的高吞吐相似性搜索,实验显示其较 CPU 方法快两个数量级、较 GPU 方法最高快 20 倍。

摘要:

相似性搜索是在特定度量下识别与给定查询对象最相似对象的任务,由于其实际应用而受到广泛关注。然而,缺乏用于加速相似性搜索的坐标信息,以及度量对象相似性的高昂计算成本,阻碍了现有基于 CPU 的方法的效率。此外,这些方法难以满足高吞吐量数据管理的需求。为应对这些挑战,我们提出了 GTS,这是一种基于 GPU 的树索引,专为一般度量空间中相似性搜索的并行处理而设计,在该空间中仅知道用于度量对象相似性的距离度量。GTS 索引利用基于枢轴的树结构高效剪枝对象,并采用列表表来促进 GPU 计算。为了在有限的 GPU 显存下高效管理并发相似性查询,我们开发了一种结合批处理和顺序策略的两阶段搜索方法,以优化显存使用。本文还为所提出的基于 GPU 的索引引入了有效的更新策略,包括流式数据更新和批量数据更新。此外,我们提出了一个代价模型来评估搜索性能。在五个真实数据集上的大量实验表明,与现有 CPU 基线相比,GTS 实现了高达两个数量级的效率提升,而与最先进的基于 GPU 的方法相比,其效率提升高达 20 倍。

英文摘要:

Similarity search, the task of identifying objects most similar to a given query object under a specific metric, has gathered significant attention due to its practical applications. However, the absence of coordinate information to accelerate similarity search and the high computational cost of measuring object similarity hinder the efficiency of existing CPU-based methods. Additionally, these methods struggle to meet the demand for high throughput data management. To address these challenges, we propose GTS, a GPU-based tree index designed for the parallel processing of similarity search in general metric spaces, where only the distance metric for measuring object similarity is known. The GTS index utilizes a pivot-based tree structure to efficiently prune objects and employs list tables to facilitate GPU computing. To efficiently manage concurrent similarity queries with limited GPU memory, we have developed a two-stage search method that combines batch processing and sequential strategies to optimize memory usage. The paper also introduces an effective update strategy for the proposed GPU-based index, encompassing streaming data updates and batch data updates. Additionally, we present a cost model to evaluate search performance. Extensive experiments on five real-life datasets demonstrate that GTS achieves efficiency gains of up to two orders of magnitude over existing CPU baselines and up to 20x efficiency improvements compared to state-of-the-art GPU-based methods.

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

↑