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

知识图谱中的高吞吐量向量相似度搜索

High-Throughput Vector Similarity Search in Knowledge Graphs

Apple(苹果公司);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Jason Mohoney, Anil Pacaci, Shihabur Rahman Chowdhury, Ali Mousavi, Ihab F. Ilyas, Umar Farooq Minhas, Jeffrey Pound, Theodoros Rekatsinas

AI总结:

本文研究知识图谱中的混合向量相似度搜索,提出系统HQI通过工作负载感知的向量数据分区和多查询优化技术,实现高效批处理,在工业工作负载上相比现有方法吞吐量提升31倍。

摘要:

将数据编码为向量以服务于在线推荐和搜索用例的机器学习应用日益增多。因此,最近的数据管理系统提出用在线向量相似度搜索来增强查询处理。在这项工作中,我们探索了知识图谱(Knowledge Graphs, KGs)背景下的向量相似度搜索。受寻找与过去KG查询工作负载相关的KG查询和实体等任务的启发,我们专注于混合向量相似度搜索(简称混合查询),其中查询的一部分对应于向量相似度搜索,另一部分对应于与底层数据向量关联的关系属性上的谓词。例如,给定过去针对歌曲实体的KG查询,我们希望为新的歌曲实体构建新查询,这些新实体的向量表示与过去KG查询中实体的向量表示相近。但KG中的实体也具有非向量属性,例如与歌曲关联的艺术家、流派和发行日期。因此,建议的实体除了满足基于向量的相似度谓词外,还必须满足非向量属性上的查询谓词。虽然这些任务是KG的核心,但我们的贡献普遍适用于混合查询。与优化在线查询的先前工作不同,我们专注于实现对过去混合查询工作负载的高效批处理。我们提出了我们的系统HQI,用于混合查询的高吞吐量批处理。我们引入了一种工作负载感知的向量数据分区方案,以根据给定的工作负载定制向量索引布局,并描述了一种多查询优化技术,以减少向量相似度计算的开销。我们在工业工作负载上评估了我们的方法,并证明与现有的混合查询处理方法相比,HQI在寻找相关KG查询方面实现了31倍的吞吐量提升。

英文摘要:

There is an increasing adoption of machine learning for encoding data into vectors to serve online recommendation and search use cases. As a result, recent data management systems propose augmenting query processing with online vector similarity search. In this work, we explore vector similarity search in the context of Knowledge Graphs (KGs). Motivated by the tasks of finding related KG queries and entities for past KG query workloads, we focus on hybrid vector similarity search (hybrid queries for short) where part of the query corresponds to vector similarity search and part of the query corresponds to predicates over relational attributes associated with the underlying data vectors. For example, given past KG queries for a song entity, we want to construct new queries for new song entities whose vector representations are close to the vector representation of the entity in the past KG query. But entities in a KG also have non-vector attributes such as a song associated with an artist, a genre, and a release date. Therefore, suggested entities must also satisfy query predicates over non-vector attributes beyond a vector-based similarity predicate. While these tasks are central to KGs, our contributions are generally applicable to hybrid queries. In contrast to prior works that optimize online queries, we focus on enabling efficient batch processing of past hybrid query workloads. We present our system, HQI, for high-throughput batch processing of hybrid queries. We introduce a workload-aware vector data partitioning scheme to tailor the vector index layout to the given workload and describe a multi-query optimization technique to reduce the overhead of vector similarity computations. We evaluate our methods on industrial workloads and demonstrate that HQI yields a 31x improvement in throughput for finding related KG queries compared to existing hybrid query processing approaches.

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

↑