Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

This paper introduces HQI, a system for high-throughput batch processing of hybrid vector similarity queries in knowledge graphs, combining vector-based similarity with relational predicate filtering. By employing workload-aware vector partitioning and multi-query optimization, HQI achieves a 31x throughput improvement over existing methods on industrial workloads.

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.

Motivation & Objective

  • Address the challenge of efficiently reusing past hybrid queries in knowledge graphs for recommendation and search workloads.
  • Enable scalable batch processing of hybrid queries that combine vector similarity and relational predicate conditions.
  • Optimize vector index layout and reduce computational overhead for similarity searches tailored to historical query workloads.
  • Improve system throughput for finding related entities and queries in knowledge graphs without compromising accuracy.
  • Develop a general-purpose solution applicable beyond knowledge graphs to any hybrid vector-relational query workload.

Proposed method

  • Propose a workload-aware vector data partitioning scheme that organizes vector indexes based on historical query patterns to improve cache locality and reduce I/O.
  • Design a multi-query optimization technique that shares intermediate results across similar hybrid queries to minimize redundant vector similarity computations.
  • Integrate vector similarity search with relational predicate evaluation using a hybrid execution plan that prioritizes filtering and pruning early.
  • Use statistical profiling of past query workloads to guide index layout and query execution strategies for optimal performance.
  • Implement a batch processing engine that processes multiple hybrid queries in parallel while minimizing per-query overhead.
  • Leverage data clustering and vector quantization to reduce dimensionality and accelerate similarity search without significant accuracy loss.

Experimental results

Research questions

  • RQ1How can vector similarity search be efficiently batch-processed in knowledge graphs to improve throughput for hybrid queries?
  • RQ2What workload-aware indexing strategies can reduce I/O and computation overhead in vector similarity search for historical query workloads?
  • RQ3How can shared computation across multiple hybrid queries be exploited to minimize redundant vector similarity evaluations?
  • RQ4To what extent can multi-query optimization techniques improve performance in vector-based knowledge graph query processing?
  • RQ5Can a system be designed to scale to industrial workloads while maintaining low latency and high throughput for hybrid queries?

Key findings

  • HQI achieves a 31x improvement in throughput for finding related knowledge graph queries compared to existing hybrid query processing approaches on industrial workloads.
  • Workload-aware vector partitioning reduces I/O and improves cache efficiency, leading to faster response times for batched hybrid queries.
  • Multi-query optimization reduces redundant vector similarity computations by up to 45% in representative workloads.
  • The system maintains high accuracy in similarity search while significantly reducing end-to-end query processing time.
  • The performance gains are consistent across diverse workloads, including recommendation and entity retrieval tasks in knowledge graphs.
  • The proposed techniques generalize well beyond knowledge graphs to other hybrid vector-relational query workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.