arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.15807cs.DBcs.AIcs.ARcs.LG
收藏

面向混合向量-关系搜索的高效数据访问路径

Efficient Data Access Paths for Mixed Vector-Relational Search

EPFL(洛桑联邦理工学院)

Viktor Sanca, Anastasia Ailamaki

AI总结:

本文针对混合向量-关系搜索,重新评估了基于扫描和基于近似索引的访问路径,发现低选择性时扫描更优、高选择性时探测更佳,并提出硬件优化与张量化批处理以降低扫描成本。

摘要:

机器学习能力的快速增长以及使用向量嵌入的数据处理方法的采用,激发了对创建向量数据管理系统极大的兴趣。虽然向量数据管理的主要方法是使用专门的索引结构对全部向量嵌入进行快速搜索,但一旦与其他(元)数据结合,搜索查询也可能对关系属性具有选择性——这在分析查询中很典型。由于使用向量索引不同于传统的关系数据访问,我们重新审视并分析了用于高效混合向量-关系搜索的替代访问路径。我们首先评估了准确但详尽的基于扫描的搜索,并提出了硬件优化、替代的基于张量的公式化和批处理以抵消其成本。我们勾勒了主要由关系选择性驱动的复杂访问路径设计空间,以及在基于详尽扫描的搜索与基于近似索引的方法之间进行选择时需要考虑的决策。由于向量索引主要避免了在整个数据集上进行昂贵的计算,与常见的关系知识相反,在较低选择性时进行扫描、在较高选择性时进行探测会更好,这两种方法之间的交叉点由数据维度和并发搜索查询的数量决定。

英文摘要:

The rapid growth of machine learning capabilities and the adoption of data processing methods using vector embeddings sparked a great interest in creating systems for vector data management. While the predominant approach of vector data management is to use specialized index structures for fast search over the entirety of the vector embeddings, once combined with other (meta)data, the search queries can also become selective on relational attributes - typical for analytical queries. As using vector indexes differs from traditional relational data access, we revisit and analyze alternative access paths for efficient mixed vector-relational search. We first evaluate the accurate but exhaustive scan-based search and propose hardware optimizations and alternative tensor-based formulation and batching to offset the cost. We outline the complex access-path design space, primarily driven by relational selectivity, and the decisions to consider when selecting an exhaustive scan-based search against an approximate index-based approach. Since the vector index primarily avoids expensive computation across the entire dataset, contrary to the common relational knowledge, it is better to scan at lower selectivity and probe at higher, with a cross-point between the two approaches dictated by data dimensionality and the number of concurrent search queries.

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

↑