Skip to main content
QUICK REVIEW

[논문 리뷰] High-Throughput Vector Similarity Search in Knowledge Graphs

Jason Mohoney, Anil Pacaci|arXiv (Cornell University)|2023. 04. 04.
Advanced Image and Video Retrieval TechniquesComputer Science인용 수 3
한 줄 요약

이 논문은 지식 그래프에서 하이브리드 벡터 유사도 쿼리의 고속 스트리밍 배치 처리를 위한 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% 감소시킨다.
  • 정확도를 유지하면서도 종단 간 쿼리 처리 시간을 크게 단축시킨다.
  • 추천 및 지식 그래프 내 엔티티 검색 작업을 포함한 다양한 워크로드에서 성능 향상이 일관되게 유지된다.
  • 제안된 기법들은 지식 그래프를 초월해 다른 하이브리드 벡터-관계형 쿼리 워크로드에도 잘 일반화된다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.