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が論文の原文をもとに作成しました。引用する前に原文をご確認ください。