Efficient Data Access Paths for Mixed Vector-Relational Search

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sanca, Viktor, Ailamaki, Anastasia
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910381361856512
author Sanca, Viktor
Ailamaki, Anastasia
author_facet Sanca, Viktor
Ailamaki, Anastasia
contents The rapid growth of machine learning capabilities and the adoption of data processing methods using vector embeddings sparked a great interest in creating systems for vector data management. While the predominant approach of vector data management is to use specialized index structures for fast search over the entirety of the vector embeddings, once combined with other (meta)data, the search queries can also become selective on relational attributes - typical for analytical queries. As using vector indexes differs from traditional relational data access, we revisit and analyze alternative access paths for efficient mixed vector-relational search. We first evaluate the accurate but exhaustive scan-based search and propose hardware optimizations and alternative tensor-based formulation and batching to offset the cost. We outline the complex access-path design space, primarily driven by relational selectivity, and the decisions to consider when selecting an exhaustive scan-based search against an approximate index-based approach. Since the vector index primarily avoids expensive computation across the entire dataset, contrary to the common relational knowledge, it is better to scan at lower selectivity and probe at higher, with a cross-point between the two approaches dictated by data dimensionality and the number of concurrent search queries.
format Preprint
id arxiv_https___arxiv_org_abs_2403_15807
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Data Access Paths for Mixed Vector-Relational Search
Sanca, Viktor
Ailamaki, Anastasia
Databases
Artificial Intelligence
Hardware Architecture
Machine Learning
The rapid growth of machine learning capabilities and the adoption of data processing methods using vector embeddings sparked a great interest in creating systems for vector data management. While the predominant approach of vector data management is to use specialized index structures for fast search over the entirety of the vector embeddings, once combined with other (meta)data, the search queries can also become selective on relational attributes - typical for analytical queries. As using vector indexes differs from traditional relational data access, we revisit and analyze alternative access paths for efficient mixed vector-relational search. We first evaluate the accurate but exhaustive scan-based search and propose hardware optimizations and alternative tensor-based formulation and batching to offset the cost. We outline the complex access-path design space, primarily driven by relational selectivity, and the decisions to consider when selecting an exhaustive scan-based search against an approximate index-based approach. Since the vector index primarily avoids expensive computation across the entire dataset, contrary to the common relational knowledge, it is better to scan at lower selectivity and probe at higher, with a cross-point between the two approaches dictated by data dimensionality and the number of concurrent search queries.
title Efficient Data Access Paths for Mixed Vector-Relational Search
topic Databases
Artificial Intelligence
Hardware Architecture
Machine Learning
url https://arxiv.org/abs/2403.15807