arXiv:2609.00364cs.IRAug 2026

Manuscript Offprint

arXiv:2609.00364

Closed Forms and Synthetic Twins: Predicting Approximate Nearest Neighbor Recall from Embedding Statistics

Shmuel Herman

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

Samuel Herman

Independent Researcher

sherman8915@gmail.com

https://sam-herman.github.io/

Abstract. Embedding models are trained and evaluated as if retrieval were exact; in production they serve behind approximate indexes — HNSW, IVF, product quantization, or the fixed-dimensional encodings (FDEs) of late-interaction models — whose behavior the encoder's benchmarks never see: one modern encoder recovers just 14% of its exact top-10 through its raw FDE index. Such failures surface only after an index is built, and the standard patches — corpus-fitted transforms such as whitening — must be fitted, stored, and refit as the corpus changes, and can silently rewrite what the encoder returns. This paper shows that index behavior is predictable before anything is built, from label-free statistics of the raw embeddings, through a ladder of instruments matched to what each index family consumes: (1) closed-form moment statistics for the fixed-grid quantizers (PQ, FDE); (2) simulation on a synthetic twin corpus — cluster statistics made generative, on which any index, composed production systems included, can be built and tested — for partition indexes; (3) size-extrapolated, lightly calibrated twins for graph indexes at million-document scale. Predictions land within 0.03 of measured recall on an unseen million-document corpus. The same geometry is trainable: targeting the one statistic no post-hoc transform can move — the score margin — lifts recall for every index family at once, at a small measured task cost. The result: index choice, correction pricing, and production recall forecast from one cheap measurement pass, on new corpora and new indexes alike; serving without per-corpus transform machinery, suited to continuously changing corpora; and a recall-compute frontier pushed by adapting encoders to geometry rather than coupling them to any single index.

Keywords: approximate nearest neighbor search · vector databases · embedding geometry · synthetic twin corpora · anisotropy · product quantization · MUVERA · fixed-dimensional encodings · HNSW · whitening · exact-neighborhood preservation · recall-compute trade-off

1 Introduction

Embedding models are trained and evaluated as if retrieval were exact: the quality bar is computed on the top-kk of a brute-force nearest-neighbor search, and

Samuel Herman

nothing in mainstream encoder development — training, evaluation, or model selection — asks what the serving index will do to that top-kk (a specialized co-design literature exists, Sect. 2; the encoders practitioners download are not trained that way). Consider a concrete case: GTE-ModernColBERT, a modern late-interaction encoder, reaches strong exact MaxSim quality on MS MARCO. At production scale, however, retrieval runs behind an approximation layer — HNSW graphs [24], IVF partitions, product quantization [18], or the MUVERA-style fixed-dimensional encodings (FDEs) [5] used to index multi-vector models — and how faithfully that layer recovers the exact top-kk at a fixed compute budget depends strongly on measurable geometric properties of the embedding distribution. The same encoder's raw FDE recall@100 is 0.136: the index recovers just 14% of what the exact scorer would return, and nothing in a standard benchmark reveals it. Late-interaction FDEs are where the failure is most extreme, but it runs through every family of the approximation layer — quantizers, IVF partitions, HNSW graphs — and Sect. 4 develops a predictive, quantitative account of each: closed forms where they hold, synthetic twins where they provably cannot.

Practitioners compensate with post-hoc, corpus-fitted transforms — centering, whitening, learned rotations (OPQ [10]; RaBitQ [8], now shipped in production systems) — and they do make the space easier to index: centering more than triples GTE-ModernColBERT's FDE recall. But outside of pure rotations, which preserve every inner product and hence every exact ranking, the correction rewrites the exact neighbor structure itself — after whitening BGE-large embeddings, 62% of the true top-10 has changed (averaged over queries) before any index is built. Every corrective transform therefore trades two effects in direct tension: a semantic shift, paid up front, against the approximation error the index no longer makes; whether the trade pays depends on the index's tax — the recall it loses to approximation (Sect. 5; Fig. 1, left). Index benchmarks cannot see the trade at all: they measure recall inside the transformed space, where the semantic shift is invisible by construction.

Neither effect is arbitrary. How much an index misses is set by the geometry of the point set it operates on; how much truth a transform rewrites is set by how far it moves points relative to one another. Both are mathematical consequences of measurable properties of the embedding distribution, so both should be predictable from measurements of it — and prediction pays twice. It lets a practitioner reason about index choice, correction, and expected recall before building anything (Fig. 1, right). And once the governing properties are known and predictive, they become levers: the encoder can be trained to shape them at the source — better served recall and, because no corpus-fitted correction remains in the serving path, indexes that absorb continuously changing corpora with no offline refitting step.

This paper therefore treats the geometry-index relationship as something to be predicted, not narrated, and asks three questions:

  1. Prediction — which measurable properties of an embedding distribution determine each index family's behavior?

  2. Pricing — when does a corrective transform pay for its semantic cost?

  3. Learning — can the correction be learned with the model rather than fitted to the corpus?

The prediction question's answer is a statistic-to-behavior map — the object the other two questions' payoffs depend on — and it resolves at the level of index families: each family — not each individual index — reads its own statistic of the embedding distribution. The FDE hashing grid reads the strength of the mean direction (the mean cosine similarity, MCS), product quantization the covariance's cross-block alignment (the misalignment factor), partitions the routing margin, and graph search the score margins over the corpus's cluster structure. These levers barely overlap, so geometry can be adapted for one family without disturbing another (Sects. 4 and 6). For the navigation families — partitions and graphs — the governing cluster statistics stop short of a closed form; there, simulation on a cluster-matched twin carries the prediction. The paper adopts the simpler, cheaper instrument — cluster-level statistics, nothing finer, parameter-free — over a richer, scale-aware twin that would preserve fine-grained local structure as well, leaving the scale-aware construction beyond this paper's scope (Sect. 9); Sect. 7.6 measures where the simple instrument reaches its limit and how to predict within it.

Throughout, the paper measures in two reference frames: fidelity to the base embedding's exact neighbors — label-free, and sufficient on its own for judging indexes and corpus-fitted transforms — and task relevance where labels exist, needed only where the correction is trained into the encoder itself and the label-free reference frame becomes the training target (Sect. 3.1). Within the label-free frame, the paper develops a predictive, end-to-end calculus: every transform is priced by the semantic cost it pays against the approximation gain it buys — two effects no prior framework predicts jointly (Sects. 3.2 and 5) — and the per-family map identifies which side dominates for which index.

Contributions. Each contribution answers one of the three questions, in order: prediction, pricing, learning.

  1. A predictive geometric analysis (Sects. 3, 4 and 7). A small set of label-free statistics — the embedding mean and covariance read at the resolution each index consumes, plus cluster and margin statistics the moments provably do not determine — explains and forecasts, per family, how geometry moves recall: a proven anisotropy-degeneration theorem for MUVERA-style FDEs exposing a hidden (1−MCS)−1(1-\text{MCS})^{-1} factor in its data-oblivious guarantee (Theorem 1, Corollary 1); a derived misalignment factor that attributes an encoder's PQ tax to its cause from the covariance alone; and a cluster-matched synthetic twin that predicts navigation recall by zero-parameter simulation, extending to million-document corpora with a single calibration measurement. Notably, on a held-out corpus of one million documents, the twin predicts index recall to within 0.03. Every claim carries an explicit proved/derived/measured label (Sect. 3.5).

Samuel Herman

Figure

Fig. 1. The paper's two headline facts, from measured data. Left pair: the fidelity/efficiency trade drawn as a before→after move — each panel starts at its corpus's native baseline (open square). On the dense corpus the correction is free: the OPQ rotation gains 0.16 efficiency with fidelity kept. On the late-interaction corpus the correction costs fidelity and pays: centering spends 0.08 for 0.42 efficiency; whitening (dashed) buys the same gain for 0.15, dominated by centering. Which trade is right depends on the index's tax (Sect. 5 prices every measured transform; Fig. 8 plots the full plane). Right: recall simulated on a cluster-matched synthetic twin — built purely from label-free statistics — predicts measured recall for both navigation families across 17 encoders with zero fitted parameters (25-50k corpora; Sect. 7.6 reports the million-document extension).

  1. A trade-off calculus for corrective transforms (Sects. 3.2 and 5). Any transform's end-to-end effect decomposes into index efficiency gained versus exact-neighbor fidelity lost, with an exact lower bound on end-to-end recall in terms of the two; rotations pay zero fidelity and dominate whenever they suffice. The calculus predicts both observed real-data regimes: distortion is worth its price where the index tax is enormous (centering, on GTE-ModernColBERT's FDE), and silently loses where the tax is modest (on BGE-large, every whitening level trails raw PQ while the zero-cost OPQ rotation wins outright).

  2. Where the correction can be learned (Sects. 6 and 7). Controlled probes on a frozen encoder answer the learning question in both directions. Geometry corrections belong post-hoc: no learned variant beats the specialized solvers, and each probe's outcome lands on the map's own curves. The one correction that belongs in the encoder is score margins — a statistic no post-hoc transform can sharpen: a single trainable final layer nearly triples them, lifting every index family's recall at fixed budget for a measured 3-5-point task price. For the navigation families, which serve changing corpora and have almost no post-hoc lever, this is the one demonstrated lever — it ships with the model, nothing to refit per corpus; training it jointly with the task objective is the open next step (Sect. 8).

References (38)