Dynamic Range-Filtering Approximate Nearest Neighbor Search
Zhencan Peng, Miao Qiao, Wenchao Zhou, Feifei Li, Dong Deng
Abstract
Range-filtering approximate nearest neighbor search (RFANNS) has gained significant attention recently. Consider a set D of high-dimensional vectors, each associated with a numeric attribute value, e.g., price or timestamp. An RFANNS query consists of a query vector q and a query range, reporting the approximate nearest neighbors of q among data vectors whose attributes fall in the query range. Existing work on RFANNS only considers a static set D of data vectors while in many real-world scenarios, vectors arrive in the system in an arbitrary order. This paper studies dynamic RFANNS where both data vectors and queries arrive in a mixed stream: a query is posed on all the data vectors that have already arrived in the system. Existing work on RFANNS is difficult to be extended to the streaming setting as they construct the index in the order of the attribute values while the vectors arrive in the system in an arbitrary order. The main challenge to the dynamic RFANNS lies in the difference between the two orders. A naive approach to RFANNS maintains multiple hierarchical navigable small-world (HNSW) graphs, one for each of the O (| D | 2 ) possible query ranges - too expensive to construct and maintain. To design an index structure that can integrate new data vectors with a low index size increment for efficient and effective query processing, we propose a structure called dynamic segment graph. It compresses the set of HNSW graphs of the naive approach, proven to be lossless under certain conditions, with only a linear to log | D | new edges in expectation when inserting a new vector. This dramatically reduces the index size while largely preserving the search performance. We further propose heuristics to significantly reduce the index cost of our dynamic segment graph in practice. Extensive experimental results show that our approach outperforms existing methods for static RFANNS and is scalable in handling dynamic RFANNS.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments & Analysis] cites SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search
- An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments & Analysis] cites Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study
- An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments & Analysis] cites ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Data
- An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments & Analysis] cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- E2E: Efficient Filtered AKNN Search via Adaptive Termination cites SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search
- E2E: Efficient Filtered AKNN Search via Adaptive Termination cites Approximate Nearest Neighbor Search with Window Filters
- E2E: Efficient Filtered AKNN Search via Adaptive Termination cites Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study
- E2E: Efficient Filtered AKNN Search via Adaptive Termination cites ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Data
- E2E: Efficient Filtered AKNN Search via Adaptive Termination cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search cites DeltaPQ: Lossless Product Quantization Code Compression for High Dimensional Similarity Search
- An Experimental Evaluation of Hybrid Querying on Vectors cites SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search
- An Experimental Evaluation of Hybrid Querying on Vectors cites Approximate Nearest Neighbor Search with Window Filters
- An Experimental Evaluation of Hybrid Querying on Vectors cites ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Data
- RNSG: A Range-Aware Graph Index for Efficient Range-Filtered Approximate Nearest Neighbor Search cites SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search
- RNSG: A Range-Aware Graph Index for Efficient Range-Filtered Approximate Nearest Neighbor Search cites Approximate Nearest Neighbor Search with Window Filters
- RNSG: A Range-Aware Graph Index for Efficient Range-Filtered Approximate Nearest Neighbor Search cites Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study
- RNSG: A Range-Aware Graph Index for Efficient Range-Filtered Approximate Nearest Neighbor Search cites ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Data
- Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study cites SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor Search
- Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study cites Approximate Nearest Neighbor Search with Window Filters
- Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study cites ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Data
Cited by top-tier papers10
- An In-Depth Study of Filter-Agnostic Vector Search on a PostgreSQL Database System: [Experiments & Analysis]Duo Lu, Helena Caminal, Manos Chatzakis, Yannis Papakonstantinou et al.SIGMOD 2026 · 8 citations
- Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental StudyMocheng Li, Xiao Yan, Baotong Lu, Yue Zhang et al.SIGMOD 2026 · 8 citations
- An Experimental Evaluation of Hybrid Querying on VectorsJiaxu Zhu, Jiayu Yuan, Kaiwen Yang, Xiaobao Chen et al.VLDB 2026 · 2 citations
- E2E: Efficient Filtered AKNN Search via Adaptive TerminationWenxuan Xia, Mingyu Yang, Wentao Li, Wei WangKDD 2026 · 1 citation
- RNSG: A Range-Aware Graph Index for Efficient Range-Filtered Approximate Nearest Neighbor SearchZhiqiu Zou, Ziqi Yin, Rong-Hua Li, Hongchao Qin et al.VLDB 2026 · 1 citation
Builds on7
- Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
- ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured DataLiana Patel, Peter Kraft, Carlos Guestrin, Matei ZahariaSIGMOD 2024 · 58 citations
- SeRF: Segment Graph for Range-Filtering Approximate Nearest Neighbor SearchChaoji Zuo, Miao Qiao, Wenchao Zhou, Feifei Li et al.SIGMOD 2024 · 41 citations
- DeltaPQ: Lossless Product Quantization Code Compression for High Dimensional Similarity SearchRunhui Wang, Dong DengVLDB 2020 · 31 citations
- Approximate Nearest Neighbor Search with Window FiltersJoshua Engels, Benjamin Landrum, Shangdi Yu, Laxman Dhulipala et al.ICML 2024 · 30 citations
Related papers
- WoW: A Window-to-Window Incremental Index for Range-Filtering Approximate Nearest Neighbor SearchZiqi Wang, Jingzhe Zhang, Wei HuSIGMOD 2026 · 3 citations
- UNIFY: Unified Index for Range Filtered Approximate Nearest Neighbors SearchAnqi Liang, Pengcheng Zhang, Bin Yao, Zhongpu Chen et al.VLDB 2025 · 27 citations
- iRangeGraph: Improvising Range-dedicated Graphs for Range-filtering Nearest Neighbor SearchYuexuan Xu, Jianyang Gao, Yutong Gou, Cheng Long et al.SIGMOD 2025 · 17 citations
- DIGRA: A Dynamic Graph Indexing for Approximate Nearest Neighbor Search with Range FilterMengxu Jiang, Zhi Yang, Fangyuan Zhang, Guanhao Hou et al.SIGMOD 2025 · 12 citations
- Generalized Range Filtering Approximate Nearest Neighbor Search: Containment and OverlapYingfan Liu, Tong Wu, Jiadong Xie, Yang Zhao et al.KDD 2026 · 1 citation
