SURF: Substring Filtered Approximate Nearest Neighbor Search
Jiadong Xie, Hao Jiang, Yingfan Liu, Jeffrey Xu Yu, Hui Li, Jiangtao Cui
Abstract
Given a collection of objects 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 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.
Create a lesson
Related papers
Dynamic Graph Indexing for Label-Filtered Approximate Nearest Neighbor Search
Shared title terminologycs.DBMengxu Jiang, Zhi Yang, Fangyuan Zhang et al.
Beyond Standalone Indexes: A Pairing Paradigm for Approximate Nearest Neighbor Search
Shared title terminologycs.DBAhmed Samin Yeaser Kabir, Xiao Luo, Dimitris Dimitropoulos et al.
Ledger: Learned Budget Allocation For Approximate Nearest Neighbor Search
Shared title terminologycs.DBRaghav Mittal, Minghao Li, Nick Koudas et al.
SJG: A Skyline Joint Graph for Multi-Component Approximate Nearest Neighbor Search
Shared title terminologycs.DBLinyun Ma, Rui Mao
Authenticated Approximate Nearest Neighbor Search in Outsourced Vector Databases
Shared title terminologycs.DBYuanhang Zhou, Xinyi Zhang, Cheng Xu et al.
Per-Query Recall Guarantees for Approximate Nearest Neighbor Search in Dynamic Vector Databases
Shared title terminologycs.DBWoong-Kee Loh, Suan Lee