Skip to main content
QUICK REVIEW

[论文解读] High-Throughput Vector Similarity Search in Knowledge Graphs

Jason Mohoney, Anil Pacaci|arXiv (Cornell University)|Apr 4, 2023
Advanced Image and Video Retrieval TechniquesComputer Science被引用 3
一句话总结

该论文提出了HQI,一种用于知识图谱中混合向量相似性查询的高吞吐量批处理系统,结合了基于向量的相似性匹配与关系谓词过滤。通过采用工作负载感知的向量分区和多查询优化技术,HQI在工业工作负载上相比现有方法实现了31倍的吞吐量提升。

ABSTRACT

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.

研究动机与目标

  • 解决在推荐和搜索工作负载中高效重用历史混合查询的挑战。
  • 支持结合向量相似性与关系谓词条件的混合查询的可扩展批处理。
  • 优化向量索引布局并减少相似性搜索的计算开销,以适应历史查询工作负载的特点。
  • 在不牺牲准确性的前提下,提升知识图谱中查找相关实体和查询的系统吞吐量。
  • 开发一种通用解决方案,可扩展应用于知识图谱之外的任何混合向量-关系型查询工作负载。

提出的方法

  • 提出一种工作负载感知的向量数据分区方案,根据历史查询模式组织向量索引,以提升缓存局部性并减少I/O开销。
  • 设计一种多查询优化技术,通过在相似的混合查询之间共享中间结果,最小化冗余的向量相似性计算。
  • 使用混合执行计划将向量相似性搜索与关系谓词评估相结合,优先进行早期过滤和剪枝。
  • 利用历史查询工作负载的统计分析,指导索引布局和查询执行策略,以实现最佳性能。
  • 实现一个批处理引擎,支持并行处理多个混合查询,同时最小化每个查询的开销。
  • 利用数据聚类和向量量化技术降低维度,加速相似性搜索,同时保持较小的准确率损失。

实验结果

研究问题

  • RQ1如何在知识图谱中高效地批处理向量相似性搜索,以提升混合查询的吞吐量?
  • RQ2哪些工作负载感知的索引策略能够减少历史查询工作负载下向量相似性搜索的I/O和计算开销?
  • RQ3如何利用多个混合查询之间的共享计算,以最小化冗余的向量相似性评估?
  • RQ4多查询优化技术在基于向量的知识图谱查询处理中能多大程度上提升性能?
  • RQ5能否设计一种系统,使其在保持低延迟和高吞吐量的同时,可扩展至工业规模的工作负载?

主要发现

  • HQI在工业工作负载上相比现有混合查询处理方法,实现了31倍的吞吐量提升,用于查找相关知识图谱查询。
  • 工作负载感知的向量分区减少了I/O开销并提升了缓存效率,从而加快了批处理混合查询的响应时间。
  • 多查询优化技术在代表性工作负载中将冗余的向量相似性计算减少了高达45%。
  • 该系统在显著减少端到端查询处理时间的同时,保持了高相似性搜索的准确性。
  • 性能提升在多种工作负载中保持一致,包括知识图谱中的推荐和实体检索任务。
  • 所提出的技术方法在知识图谱之外的其他混合向量-关系型查询工作负载中也具有良好的可扩展性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。