arXiv · 2611.36963
SURF: Substring Filtered Approximate Nearest Neighbor Search
Abstract
Given a collection of objects ${O}$ with high-dimensional vectors and associated strings, such as product images and their textual descriptions, filtered approximate nearest neighbor (ANN) search retrieves vectors similar to a query vector $q$ while satisfying a user-specified predicate. We study substring filtered ANN search, where eligible objects are those whose string attributes contain a query string as a substring. Existing methods are sensitive to query selectivity: they either enumerate large qualifying sets or traverse many non-qualifying objects, incurring redundant distance computations. Although VectorMaton introduces a dedicated index for this problem, its fine-grained automaton states and heuristic index reuse strategy without global optimality guarantees lead to substantial indexing overhead. We propose SURF, an index featuring a provably minimal suffix automaton that confines graph traversal to objects satisfying the substring predicate. To further reduce its index cost, we develop ComSURF, which introduces path and ancestor compression and optimally combines them through a dynamic programming algorithm. We also extend our approach to support SQL LIKE predicate queries with two wildcards. We conduct extensive performance studies and confirm the accuracy and efficiency of our approach in comparison with the state-of-the-art approaches.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jiadong Xie, Hao Jiang, Yingfan Liu, Jeffrey Xu Yu, Hui Li, Jiangtao Cui. 2026-11-27. SURF: Substring Filtered Approximate Nearest Neighbor Search. https://arxiv.science/abs/2611.36963
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.