Predicting Vector Search Fidelity Before You Query
The price of one fixed configuration is set by your hardest query. Turning fidelity into an offline lookup lets each query pay for its own difficulty, provided you accept a small estimation error.
On this page
A 5.8M-item benchmark, four embedding models, 16 combinations — but how much of your index bill is really decided by your hardest query? Most people assume the answer is all of it, so they tune once for the worst case and pay that price on every request. The paper prices the habit: running each query on the cheapest configuration that still suffices would roughly halve cost in a typical setting.[1] Halving is not the interesting part. The interesting part is that the saving can be estimated per query, before the query runs, from a table built offline.
One configuration, billed at the hardest query
Vector search is an operator now, not a function call. Index families differ, build-time parameters differ, search-time parameters differ, and the data may be compressed or live on disk, so every implementation trades cost against fidelity: of a query's exact top-k nearest neighbors, the fraction a configuration returns. Nine of ten is 0.9. Ten of ten is 1.0. The number measures correctness, not speed.
The trouble sits in deployment. One configuration is chosen offline and reused for everything, so capacity is sized for the hardest query and the easy ones pay the same bill.
Most teams read that as prudence — tune once, keep headroom, sleep at night. The claim worth attacking is narrower: a single configuration is not merely conservative, it cannot express the difference between a query that needs 0.99 fidelity and one that would be fine at 0.90.
It stores hit rates, not vectors
The hard part is circular. Fidelity is defined by the exact search that an approximate index exists to avoid, so to learn whether a configuration is good enough you would have to run the thing you are skipping. That loop is why the decision migrated offline, and why the fix looks like a database optimizer rather than a faster index.
Relational optimizers hit the same wall with cardinality: they cannot count rows before executing, so they keep synopses and read them at plan time. The paper ports the move to embeddings and calls it a fidelity synopsis.
Three steps. Pick landmarks and cut the space into cells around them; for every cell and configuration, record how often it met a fidelity target on a sample of queries; at query time, do one nearest-landmark lookup and read a calibrated estimate for all configurations at once. An optimizer then takes the cheapest one, subject to the workload missing its target no more often than the requirement allows. What gets stored is a frequency, not a distance, and that is what keeps the lookup cheap.
Two premises carry the design: fidelity varies smoothly across the embedding space, and its loss is specific to each configuration. The paper tests both. If either fails, interpolation between cells means nothing.
Three numbers: 0.72, 21 to 32 microseconds, 16
Held to the same requirement a static deployment is built for, synopsis-guided selection cut cost in all 16 combinations of model and query direction, to a median of 0.72x the static deployment, with a batched lookup of 21 to 32 microseconds per query.[1] All sixteen. Not on average. A median means half the combinations did better than 0.72x and half did worse.
| Measure | Static | Per-query | Gap |
|---|---|---|---|
| Cost per query | 1.00 | 0.72 | -0.28 |
| Per 1M queries | 100 units | 72 units | -28 units |
| Ideal ceiling | 1.00 | 0.50 | -0.50 |
| Headroom captured | - | 56% | 44% left |
| Lookup, batched | 0 | 21-32 us | 21-32 s / 1M |
The first two rows say one number twice: 1 minus 0.72 is 0.28. The 0.50 ceiling comes from the abstract's “roughly halve”, and 56% is 0.28 divided by 0.50, so a little over half the available saving is captured and 44% stays on the table. Those conversions are mine, not the paper's report, which gives 0.72 and the halving.
One million queries at 25 microseconds each is 25 seconds of lookup in total, or 0.000025 seconds per query: negligible, if you batch. The abstract specifies a batched lookup and gives no figure for a single-query path, so do not spend 32 microseconds as an interactive latency budget.
Two qualifiers are easy to lose: the saving holds against the best static choice among the same indexes, and it holds inside a single index at no extra memory.
The first rules out a straw-man baseline, the second rules out the suspicion that you simply bought more RAM.
Five steps, in this order
- Make fidelity measurable. Fix top-k and a target fraction, label sample queries with exact search, then count what each configuration returns.
- Sweep the candidates offline, once, and record hit rates per cell and per configuration.
- Choose landmarks and cell size by experiment: coarse cells average away the differences you care about, while fine cells leave too few samples and the frequencies wobble.
- Add one lookup at serving time. Find the nearest landmark, read the per-cell estimates, take the cheapest configuration that fits your miss budget.
- Recheck weekly. If the observed hit rate drops below the requirement, add samples and rebuild landmarks; if it runs high for weeks, tighten the budget.
Order beats tooling. Target first, labels second, sweep third; sweep before you fix a target and the numbers cannot be compared to anything.
Reverse it and the whole table is wasted.
Where it doesn't apply
The first limit is the query distribution. If your sample does not represent production, the frequencies in the cells are wrong. A new image category, a new language, a swapped embedding model: each one forces a resample. Swap the model and the cells stay where they were while the estimates drift.
The second limit is the premises. If one configuration's fidelity drops off a cliff — fine up to some nprobe, then collapsing — smoothness does not hold and interpolating inside a cell is meaningless. The paper demonstrates smoothness on its benchmark; it does not promise smoothness on yours.
The third limit is 0.72 itself. It is a median, not a commitment, and your combination can land at 0.9. That is still a cut, just not one worth re-architecting for.
The fourth limit is scope: 5.8M items, LAION, four embedding models, image-style queries. Text embeddings, multimodal stacks, billion-item collections, indexes under constant insert and delete — none of it was tested. Untested is untested.
The saving does not come from a faster index. It comes from admitting that different queries deserve different configurations.
