arXiv:2610.41407cs.DBOct 2026

Manuscript Offprint

arXiv:2610.41407

Fidelity Synopses: Pre-Execution Plan Selection for Approximate Vector Search

Adithya Ramanatha, Sanskar S. Singh, Maya Ramanath

ABSTRACT

Vector search has become a database operator with many physical implementations: different index families, build-time and search-time parameters, and compressed or disk-resident variants. Each trades cost against fidelity, the fraction of a query's exact top-kk nearest neighbors that a configuration returns. Deployments nevertheless choose one configuration offline and use it for every query, so they are sized for their hardest queries and overpay for the rest. On a 5.8M-item LAION benchmark with four embedding models, running each query on the cheapest configuration that suffices for it would roughly halve the cost in a typical setting. Exploiting this requires predicting each configuration's fidelity before running it, which is hard because fidelity is defined by the very exact search that approximate indexes avoid. Relational optimizers solve the analogous problem for cardinality with offline synopses; we propose one for vector search. A fidelity synopsis divides the embedding space into cells around a set of landmarks and records, for every cell and configuration, how often that configuration met a fidelity target on a sample of queries. At query time, one nearest-landmark lookup yields a calibrated estimate for every configuration, and an optimizer chooses configurations so that the workload misses the target no more often than its requirement allows. We test the two premises the synopsis relies on, that fidelity varies smoothly across the embedding space and that its loss is specific to each configuration. Held to the same requirement a static deployment is built to meet, synopsis-guided selection lowers cost in all 16 combinations of model and query direction, to a median of 0.72×0.72\times the static deployment, with a batched lookup of 21∼3221\sim32 μ\mus per query. The saving persists against the best static choice among the same indexes, and within a single index at no extra memory.

1 INTRODUCTION

Dense vector representations have become the common currency of search. Text retrievers such as DPR [21] and ColBERT [22] map queries and documents into a shared embedding space, and contrastive vision-language models such as CLIP [38] and SigLIP [49], together with more recent multimodal embedders [28, 47], do the same across images, text, and visually rich documents, so that a text query can retrieve images and vice versa. In all of these settings, answering a query means finding its nearest neighbors in a large collection of vectors. Exact search compares the query with every vector and quickly becomes too slow; approximate nearest-neighbor (ANN) indexes such as HNSW [32], IVFPQ [9, 17], and O-IVFPQ [11] return most of the true neighbors at a fraction of the cost. The same indexes underpin retrieval-augmented generation [26].

Model (text→image)Queries whose cheapest sufficient plan costsOptimum cost
≤ 0.33×0.33-1×1×> 1×none
Jina-v458.3%25.7%10.1%1.2%4.7%0.41×
Qwen3-VL76.8%0.0%18.2%3.6%1.4%0.39×
SigLIP289.7%0.0%7.7%1.6%1.0%0.21×
OpenCLIP88.8%0.0%9.6%1.5%0.1%0.20×

Table 1: Text-to-image search at a fidelity target of 0.7 on 5.8M LAION items, with all costs relative to the static plan. Left: held-out queries by the cost of their cheapest sufficient configuration (bold: at most a third of the static plan; none: no configuration meets the target). Right: the mean cost if every query ran on its cheapest sufficient configuration.

Vector search has consequently moved into database systems. Purpose-built vector databases such as Milvus [43], analytical engines such as AnalyticDB-V [46], and extensions such as pgvector [1] for PostgreSQL treat similarity search as a query operator; VBase [50] and ACORN [37] study how it composes with relational predicates, and [35] surveys the landscape. These systems offer many physical implementations of the same operator: a collection can be indexed with different index families, each with build-time parameters (graph degree, number of partitions, code length) and search-time parameters (efSearch for HNSW, nprobe for IVF indexes), kept in memory or compressed and placed on disk [8, 24]. Each choice trades latency, memory, and energy against fidelity, the fraction of a query's exact top-kk nearest neighbors that the chosen configuration (an index family with its parameter values) actually returns.

Semantic query processing systems such as LOTUS [36] and Palimpzest [30] go further and compose retrieval with LLM-based filters, maps, and joins in declarative pipelines that are optimized for cost and quality; related systems process multimodal data under accuracy budgets [18] or optimize document-processing pipelines [41]. In these systems and in vector databases alike, however, the vector-search operator itself is executed in one fixed way. A configuration is chosen when the collection is indexed, typically by tuning for average recall on a sample workload, and every query then runs under it. The search-time parameters are exposed, but as session-or collection-level settings; no component chooses them per query. In relational terms, the operator has several access paths but no optimizer that chooses among them.

A fixed configuration is costly because queries differ in how hard they are to approximate. To measure this, we indexed 5.8M LAION image-caption pairs [39] under four embedding models and nine configurations of three index families, and recorded, for every held-out query, which configurations reach a given fidelity.

Figure

Figure 1: Overview of the fidelity synopsis. Offline (top), a sample of queries is labeled with the fidelity of every configuration, and the labels are summarized per cell and configuration. Online (bottom), a query is located in its cell, and the budget rule uses that cell's statistics to choose the configuration that runs it.

Table 1 shows text-to-image search at a fidelity target of 0.7. A static plan, the cheapest configuration that meets the target on at least 90% of queries, must be provisioned for the hardest of those queries. Yet for every model, most queries would meet the target on a configuration costing at most a third as much, and running each query on the cheapest configuration that suffices for it would cost less than half as much as the static plan.

Early-termination methods address part of this problem. LAET [27] learns to predict, per query, when a search can stop, and DARTH [5] terminates each search once a declared target recall is predicted to be met. Both adapt how long a search runs within an index that has already been chosen, and both can only stop a search early: they cannot help when the chosen index cannot reach the target at all, and DARTH explicitly assumes that it can. In our measurements this assumption often fails. Even the most accurate HNSW configuration in our catalog reaches a fidelity of 0.7 on only 69% of OpenCLIP image-to-text queries, and for some text-to-image queries no configuration reaches it at all (Table 1, column "none"), consistent with the observation that cross-modal queries fall outside the distribution an index is built over [7, 29]. Measures of query hardness, such as local intrinsic dimensionality [4] and Steiner-hardness [45], describe how difficult a query is, but they are not calibrated estimates of fidelity under a specific configuration and cannot tell an optimizer which configuration will suffice. What is missing is a way to predict, before running anything, how each candidate configuration will perform on a given query. This is hard for a basic reason: fidelity is defined relative to the exact top-k, which is precisely what approximate indexes exist to avoid computing.

Our approach. Relational optimizers face the same problem when choosing among access paths: they estimate each plan's output size from synopses, such as histograms, that are built offline and consulted at plan time. We propose such a synopsis for vector search, which we call a fidelity synopsis (Figure 1). It divides the embedding space into cells around a set of landmarks, representative points obtained by clustering the corpus. Offline, a sample of queries is run once through exact search and through every configuration in the catalog, and for every pair of cell and configuration the synopsis records the distribution of fidelity among the sample queries in that cell. At query time, the query's nearest landmark identifies its cell, and the synopsis gives, for every configuration at once, the estimated probability that it meets the fidelity target, before any configuration is run. An optimizer then runs each query on a cheap configuration where that probability is high and on a more reliable one where it is low, so that the workload as a whole misses the target no more often than its requirement allows. Exact search is paid once, offline, on the sample.

The synopsis rests on two premises, which we state and test rather than assume. The first is smoothness: fidelity varies slowly enough across the embedding space that a cell's statistics represent the queries that fall into it. The second is configuration specificity: how the local geometry of the data translates into lost fidelity differs between index families, since graph navigation and quantization fail in different ways, so the synopsis must keep separate statistics for every configuration.

Contributions. This paper makes the following contributions.

  • We identify per-query choice of ANN configuration as an optimization opportunity and quantify it across four embedding models, nine configurations, and four combinations of query and corpus modality: serving the same queries as a static plan, the per-query optimum costs a median of about half as much (Section 5.1).
  • We cast pre-execution fidelity estimation as the vector-search analogue of cardinality estimation and propose the fidelity synopsis, which stores O(K(d+mB))O(K(d + mB)) numbers for KK landmarks in dd dimensions, mm configurations, and BB histogram bins, together with a selection rule that holds the workload's violation rate to a requirement (Section 3).
  • We test the synopsis's two premises directly. A query's cell predicts its fidelity in every setting, the synopsis's estimate of how often a configuration meets the target is well calibrated, and keeping statistics per configuration beats a single difficulty value per cell for every model and index family (Sections 5.2 and 5.3).
  • We show that, under the same requirement a static plan is built to meet, synopsis-guided selection is cheaper in all 16 settings, at a median of 0.72× the static plan; that the saving persists against the best static choice among the same indexes and within a single index at no extra memory; and where its limits lie: variation within cells caps the saving, and a single-query lookup by exact landmark scan is too slow for 2,048-dimensional models (Sections 5.4 and 5.5).

Section 2 defines fidelity and the plan-selection problem, Section 3 presents the fidelity synopsis, Section 4 describes the evaluation setup, Section 5 answers five research questions, Section 6 discusses related work, and Section 7 concludes.

References (45)