Graph-based algorithms for nearest neighbor search with multiple filters
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
We study nearest neighbor search with filter constraints (MultiFilterANN): given a query vector with a discrete set of labels $S$, retrieve the (approximately) closest vector from a dataset under the constraint that $S$ must be a subset of the labels of the retrieved vector. There has been a burgeoning interest in this problem on the practical side, due to its strong motivation from search and recommendation applications where vector labels correspond to real world attributes such as date, price, or color. On the theoretical side, this problem generalizes the subset query problem, which asks us to only determine if $S$ is a subset of some set in the dataset, without retrieving the closest vector. In this work, we present a systematic study of MultiFilterANN,. Theoretically, we demonstrate the power of graph-based algorithms in two ways: - We design provable algorithms with the best known space-time tradeoffs for \mfann in the large filter regime by carefully incorporating ANN algorithms into known subset query algorithms.% to incorporate nearest neighbor search using graph-based algorithms. - We demonstrate lower bounds for popular algorithms for MultiFilterANN, showing that they can catastrophically fail even on simple data/label sets. Our theoretical results inspire our empirical approach, where we extend practical graph indices for standard nearest neighbor search to MultiFilterANN by augmenting the (greedy) search procedure with a penalized distance function that captures filter constraints. Our empirical algorithm is competitive with existing state of the art solutions which are tailored for one or two filters, while also seamlessly generalizing to any number of filters without any modifications. Lastly we release multiple novel datasets for MultiFilterANN, filling in a noticeable gap in literature.
BibTeX
@misc{bernstein2025graph,
author = {Philip A. Bernstein and Siddharth Gollapudi and Suryansh Gupta and Ravishankar Krishnaswamy and Sepideh Mahabadi and Sandeep Silwal and Harsha Vardhan simhadri and Gopal R Srinivasa and Varun Suriyanarayana and Jakub Tarnawski and Haiyang Xu},
title = {{Graph-based algorithms for nearest neighbor search with multiple filters}},
year = {2025},
url = {https://openreview.net/forum?id=a2eBgp4sjH},
howpublished = {OpenReview},
note = {Submitted to ICLR 2025},
}Ask Althea to put this paper to the test.
Loading related content...