arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01528cs.DCcs.DB
收藏

SQUASH:无服务器与分布式基于量化的带属性向量相似性搜索

SQUASH: Serverless and Distributed Quantization-based Attributed Vector Similarity Search

Joe Oakley, Hakan Ferhatosmanoglu

AI总结:

提出首个完全无服务器的向量搜索解决方案SQUASH,通过优化的量化方法OSQ、基于段的存储机制、单次分布式遍历及多级搜索工作流,在保证高准确率的同时显著降低了成本并提升了性能。

摘要:

向量相似性搜索在大型和高维数据集的可扩展性方面,以及在提供对混合查询的原生支持方面,面临着重大挑战。无服务器计算和云函数提供了弹性和成本效益等吸引人的优势,但难以应用于数据密集型工作负载。为共同应对这两大主要挑战,我们提出了SQUASH,这是首个完全无服务器的向量搜索解决方案,对混合查询提供丰富支持。它具有OSQ特性,这是一种针对向量和属性的优化且高度可并行化的基于量化的方法。其基于段的存储机制在资源受限的环境中实现了显著压缩,并提供了高效的维度提取操作。SQUASH执行单次分布式遍历,以保证返回足够多满足过滤谓词的向量,从而实现高准确率并避免对未通过谓词的向量进行冗余计算。引入了多级搜索工作流,以尽早修剪大多数向量,从而最小化对函数即服务(FaaS)实例的负载。SQUASH旨在识别并利用重用运行时容器中相关数据的保留,从而消除冗余I/O并降低成本。最后,我们展示了一种新的基于树的方法,用于快速调用FaaS,通过请求/响应负载实现数据的双向流动。将SQUASH与最先进的无服务器向量搜索解决方案及基于服务器的基线在向量搜索基准上进行比较的实验证实,其在更低成本下取得了显著的性能提升。

英文摘要:

Vector similarity search presents significant challenges in terms of scalability for large and high-dimensional datasets, as well as in providing native support for hybrid queries. Serverless computing and cloud functions offer attractive benefits such as elasticity and cost-effectiveness, but are difficult to apply to data-intensive workloads. Jointly addressing these two main challenges, we present SQUASH, the first fully serverless vector search solution with rich support for hybrid queries. It features OSQ, an optimized and highly parallelizable quantization-based approach for vectors and attributes. Its segment-based storage mechanism enables significant compression in resource-constrained settings and offers efficient dimensional extraction operations. SQUASH performs a single distributed pass to guarantee the return of sufficiently many vectors satisfying the filter predicate, achieving high accuracy and avoiding redundant computation for vectors which fail the predicate. A multi-level search workflow is introduced to prune most vectors early to minimize the load on Function-as-a-Service (FaaS) instances. SQUASH is designed to identify and utilize retention of relevant data in re-used runtime containers, which eliminates redundant I/O and reduces costs. Finally, we demonstrate a new tree-based method for rapid FaaS invocation, enabling the bi-directional flow of data via request/response payloads. Experiments comparing SQUASH with state-of-the-art serverless vector search solutions and server-based baselines on vector search benchmarks confirm significant performance improvements at a lower cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑