Survey of Filtered Approximate Nearest Neighbor Search over the Vector-Scalar Hybrid Data
Yanjun Lin, Kai Zhang, Zhenying He, Yinan Jing, X. Sean Wang
TL;DR
The paper addresses filtered approximate nearest neighbor search (FANNS) over vector-scalar hybrid data by formalizing hybrid datasets and queries, and by introducing a pruning-focused four-way framework (VSP, VJP, SSP, SJP) to classify FANNS algorithms. It comprehensively reviews 17 FANNS methods across vector- and scalar-pruning paradigms, mapping them to the framework and highlighting their design principles and trade-offs. The work also analyzes hybrid datasets and introduces the distribution factor as a new dimension of query difficulty, supported by qualitative visualizations and quantitative measures on real and synthetic data. Together, these contributions enable more meaningful comparisons, better benchmark design, and practical guidance for practitioners deploying FANNS in constrained retrieval tasks. The survey thereby lays a foundation for workload-aware indexing, hybrid-query benchmarks, and system-level algorithm selection in large-scale, real-world applications.
Abstract
Filtered approximate nearest neighbor search (FANNS), an extension of approximate nearest neighbor search (ANNS) that incorporates scalar filters, has been widely applied to constrained retrieval of vector data. Despite its growing importance, no dedicated survey on FANNS over the vector-scalar hybrid data currently exists, and the field has several problems, including inconsistent definitions of the search problem, insufficient framework for algorithm classification, and incomplete analysis of query difficulty. This survey paper formally defines the concepts of hybrid dataset and hybrid query, as well as the corresponding evaluation metrics. Based on these, a pruning-focused framework is proposed to classify and summarize existing algorithms, providing a broader and finer-grained classification framework compared to the existing ones. In addition, a review is conducted on representative hybrid datasets, followed by an analysis on the difficulty of hybrid queries from the perspective of distribution relationships between data and queries. This paper aims to establish a structured foundation for FANNS over the vector-scalar hybrid data, facilitate more meaningful comparisons between FANNS algorithms, and offer practical recommendations for practitioners. The code used for downloading hybrid datasets and analyzing query difficulty is available at https://github.com/lyj-fdu/FANNS
