arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.23710cs.DBcs.AIcs.IR
收藏

对PostgreSQL数据库系统中滤波无关向量搜索的深入研究:[实验与分析]

An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments and Analysis]

Brown University Providence Rhode Island USA;Google Sunnyvale California USA;Google San Diego California USA;ETH Zurich \& Google Zurich Switzerland;Google Bangalore India;Brown University;Google;ETH Zurich \& Google

Duo Lu, Helena Caminal, Manos Chatzakis, Yannis Papakonstantinou, Yannis Chronis, Vaibhav Jain, Fatma Özcan

AI总结:

本文研究滤波无关向量搜索在生产级PostgreSQL系统中的性能,发现距离计算成本并非唯一决定因素,系统级开销和过滤操作影响更大,指出图算法在实际中表现不如聚类索引。

摘要:

Filtered Vector Search (FVS) 是支持语义搜索和 GenAI 应用在现代数据库系统中的关键。然而,现有研究大多在专用库中评估算法,做出乐观假设,与企业级数据库系统不一致。本文挑战这一前提,证明在生产级数据库系统中,常见假设不成立,导致性能特征和算法权衡与孤立库环境不同。本文首次深入分析滤波无关 FVS 算法在生产 PostgreSQL 兼容系统中的情况。我们系统评估了后过滤和内联过滤策略,覆盖广泛的选择性和相关性。我们的核心发现是,最优算法不仅由距离计算成本决定,系统级开销(包括距离计算和过滤操作,如页面访问和数据检索)起重要作用。我们证明图方法(如 NaviX/ACORN)会带来大量过滤检查和系统级开销,相比聚类索引如 ScaNN,往往在实际数据库环境中抵消其理论优势。最终,本文为数据库社区提供关键见解和实用指南,表明滤波无关 FVS 算法的最佳选择并非绝对,而是取决于工作负载特征和底层数据访问成本的交互作用。

英文摘要:

Filtered Vector Search (FVS) is critical for supporting semantic search and GenAI applications in modern database systems. However, existing research most often evaluates algorithms in specialized libraries, making optimistic assumptions that do not align with enterprise-grade database systems. Our work challenges this premise by demonstrating that in a production-grade database system, commonly made assumptions do not hold, leading to performance characteristics and algorithmic trade-offs that are fundamentally different from those observed in isolated library settings. This paper presents the first in-depth analysis of filter-agnostic FVS algorithms within a production PostgreSQL-compatible system. We systematically evaluate post-filtering and inline-filtering strategies across a wide range of selectivities and correlations. Our central finding is that the optimal algorithm is not dictated by the cost of distance computations alone, but that system-level overheads that come from both distance computations and filter operations (like page accesses and data retrieval) play a significant role. We demonstrate that graph-based approaches (such as NaviX/ACORN) can incur prohibitive numbers of filter checks and system-level overheads, compared with clustering-based indexes such as ScaNN, often canceling out their theoretical benefits in real-world database environments. Ultimately, our findings provide the database community with crucial insights and practical guidelines, demonstrating that the optimal choice for a filter-agnostic FVS algorithm is not absolute, but rather a system-aware decision contingent on the interplay between workload characteristics and the underlying costs of data access in a real-world database architecture.

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

↑