Manuscript Offprint

arXiv:2609.38053

VADER: Filtered Vector Search with Declarative Recall

Manos Chatzakis, Duo Lu, Helena Caminal, Yannis Chronis, Fatma Özcan, Yannis Papakonstantinou, Timofey Asyrkin, Sebastian Infante Murguia, Itai Rosenblatt, Themis Palpanas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Approximate filtered vector search (FVS), a core operation in many data management tasks that combine structured data with vector embeddings, exhibits increased complexity due to the characteristics of filtering predicates. Each predicate is defined by selectivity (i.e., the fraction of vectors that satisfy the predicate) and correlation (i.e., the relationship between the filter and the vector space), which can significantly affect search difficulty even for the same query vector. This poses a key challenge for users aiming to integrate vector search with structured data, as efficient execution often requires extensive manual tuning of algorithm parameters. In this paper, we present VADER, the first approach that eliminates hyperparameter tuning by introducing declarative recall for approximate filtered vector search. With declarative recall, users specify a desired recall target, and VADER executes FVS queries to meet this target without requiring manual configuration. VADER achieves this by employing a filter-aware recall predictor that generalizes across varying selectivities and correlations without explicit tuning, and by performing early termination once the predicted recall reaches the user-defined target. Through extensive experimental evaluation, we show that VADER achieves near-optimal early termination, while providing significant speedups of up to 53% faster and improved result quality of 28% compared to the best-performing baseline.

1 INTRODUCTION

Approximate nearest neighbor vector search is a core operation in many data science tasks [14, 18, 26, 33, 40, 52]. Recently, filtered approximate vector search (FVS) has gained traction, as combining structured attributes with vector embeddings is common in retrieval applications [19, 42, 43]. In this type of vector search, vector data are combined with structured attribute metadata, and the goal is to retrieve the top-k most similar vectors for a given query vector while ensuring that the returned results satisfy a specified predicate.

FVS can be performed by pre-filtering (applying the filter before a brute-force search), post-filtering (filtering the results of a vector search), iterative scans (repeated post-filtering until enough results are found), or inline filtering, which blends the two. Inline filtering stands out because it retains the efficiency of vector search indexes while incorporating filtering into the search rather than decoupling the two. Among inline methods, filter-agnostic ones make minimal assumptions about predicate characteristics and require only limited modifications to the underlying index, thereby supporting a wide range of filtering operations and enabling practical adoption in large-scale systems [51, 59].

The Complexity of FVS. Since queries process both vectors with predicates in structured columns, each query is characterized by a specific selectivity (i.e., the fraction of rows/vectors that satisfy the predicate) and correlation between the filter selectivity and the distance from the query vector. These predicate characteristics significantly increase the difficulty of achieving the desired result quality (measured as Recall, the fraction of ground-truth vectors retrieved by the search) and latency.

As a motivating example, Figure 1 shows the number of vectors we need to search for a query to reach recall 0.9 on GLOVE1M [3, 50], under varying selectivity and correlation. The required search effort varies by orders of magnitude: fixing selectivity at 0.01 by only varying correlation we need to search up to 30×30\times more vectors to achieve the same recall. Similarly for fixed no correlation, varying selectivity from 0.01 to 1.0 we need to search up to 8×8\times more vectors. Practical Implications. The task of tuning FVS hyperparameters to achieve a desired recall without excessive resource consumption is very challenging for end users. One option could be to tune parameters (e.g., ef_search in k-NN graphs) per selectivity and correlation combination, which is impractical: correlation is not known in advance, and selectivity estimates, when available, may be inaccurate [39]. The alternative, reusing values that generalize across selectivities (e.g., tuned on unfiltered workloads), depends heavily on the generalization of the underlying algorithm and typically yields configurations that are either too conservative or too aggressive for the given filter.

Moreover, the tuning procedures underlying both approaches introduce additional challenges [15, 62]. Existing methods apply the same hyperparameter values across all queries in a workload. As a result, easy queries that require minimal effort to reach the target recall oversearch the index, leading to wasted computation and increased latency. Conversely, difficult queries may undersearch, producing results that fail to meet the desired recall target.

Iterative scan [1] does not provide a universal solution either. Iterative scan resumes the search if fewer than k results remain after filtering, by using a resumable post-filtering strategy. However, this approach does not fully address the complexity of achieving a target recall in filtered vector search, as there may exist other vectors that satisfy the predicate and are closer to the query, but the hard-stop policy prevents the search from discovering them. We discuss iterative scan in details in Section 2.2.

Declarative Recall for Unfiltered Vector Search. Recent work addresses the same tuning burden for unfiltered vector search through declarative recall with early termination [15, 46, 58, 62]: users specify a target recall and the system terminates each query once that target is reached, eliminating manual tuning. The increased complexity of FVS, however, has so far prevented the development of declarative recall methods tailored to this setting. Contributions. We summarize our contributions as follows.

Figure

Figure 1: Search effort of a query with different filter correlations in the GLOVE1M dataset for the same recall target. • We present VADER, the first declarative recall solution for filtered vector search based on early termination. VADER eliminates the need for hyperparameter tuning, and generalizes seamlessly across different filtering configurations.

• We introduce a filter-aware recall predictor along with a novel set of input features that enable highly accurate recall prediction with no prior knowledge of predicate selectivity or correlation.

• We introduce a novel asymmetric loss function for the recall predictor, specifically designed for declarative recall, which automatically penalizes more cases of overpredictions of recall, and ensures that VADER minimizes the number of queries that fall below the target recall, without significantly affecting prediction quality or requiring additional tuning.

• We implement VADER on top of popular filter-agnostic FVS algorithms of different families, including (without loss of generality) k-NN graphs (on top of Sweeping [59] and ACORN [49]) and IVF (on top of Filtered-ScaNN [29, 31]), demonstrating its versatility.

• We evaluate VADER through an extensive experimental study spanning multiple datasets and filtering configurations. VADER can be trained within a few minutes and delivers accurate performance independent of selectivity, correlation, and target recall. VADER terminates search within 4% of the optimal termination point, meets the desired recall targets across selectivities and correlations without introducing overhead, and achieves up to 25×25\times speedup over search without early termination. Against the best-performing baseline, which (unlike VADER) is tuned for each selectivity and recall target, VADER is simultaneously up to 28% better in quality and 53% faster, establishing the state of the art for FVS declarative recall.

References (54)