arXiv:2609.09854cs.DBSep 2026

Manuscript Offprint

arXiv:2609.09854

When Does Low-Bit Quantization Preserve the Decisions of Vector Search?

Wenxuan Xiao, Xu Cao

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

Abstract

The same two-bit coordinate code that recovers 95% of exact nearest neighbours on Cohere text embeddings recovers 2% on GIST image descriptors. Average distortion does not explain the gap. A graph-based search algorithm never consumes a distance estimate on its own; it consumes comparisons, and a comparison fails only when quantization noise crosses the specific decision boundary that the comparison sits on. We develop a theory of low-bit vector search at this level.

The first result is a distribution-free decomposition: the probability that a comparison flips is at most the probability mass of exact margins near zero plus the tail probability of the calibrated residual. Global fidelity metrics average over both quantities and therefore cannot separate them. The second result treats residual dependence induced by shared structure. In the inspected Cohere selected-pair population, residuals sharing a query have strong pooled correlation, and the measured variance of their difference is 7.4 times smaller than the sum of their marginal variances. The third result is a deterministic coupling theorem for the neighbour-selection call of Vamana: for a frozen candidate permutation, the approximate replay produces the same neighbour list exactly when every candidate-level pruning action agrees with the exact one, and the first disagreement identifies the edge at which the outputs diverge.

We connect these decision-level results to representation geometry through an exact Gaussian oracle. Stein's lemma gives a closed-form sign-linear covariance identity and shows how off-diagonal covariance enters the ranking signal; an aligned bilinear model yields a strict correlation gain from a deterministic magnitude bit; and a rare-contamination construction proves that marginal Gaussianity, thin-shell concentration, and regular spectra cannot by themselves imply the exponential tails the bounds require. For representations outside the analytical regime, a held-out block certificate bounds the selective failure risk of a frozen quantized rule from data alone.

On learned, classical, and synthetic embeddings, standardized exact margins predict held-out flip rates with Spearman correlation 0.97 for ranking and 0.99 for pruning, against 0.74 and 0.05 for global rank correlation. The coupling identity holds in all 960 sampled selection calls. Direct-ratio selective certificates at 512 blocks average 16.7% for ranking and 18.7% for pruning; no selected empirical validation risk exceeds its certificate. A random rotation raises Cohere's global rank fidelity from 0.58 to 0.93 while leaving one held-out flip rate unchanged and raising another by half, so fidelity does not determine the sign of the change in decision risk. The framework covers coordinate binary codes, RaBitQ, Lucene BBQ, and product quantizers through a common decision interface.

Keywords: vector search, binary quantization, decision stability, concentration inequalities, contrastive representations

©2026 Wenxuan Xiao and Xu Cao.

License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.

1 Introduction

Binary quantization compresses a 768-dimensional float vector to 96 bytes and replaces most floating-point distance arithmetic with packed integer operations. Two recent systems exploit low-bit codes with opposite strategies. QuIVer (Xiao et al., 2026) keeps the coordinate axes of the encoder and builds and searches a proximity graph directly on two-bit scores; RaBitQ (Gao and Long, 2024) applies a random rotation before one-bit coding and corrects the estimate. Both reach competitive recall on their benchmarks. Yet the two-bit coordinate index of QuIVer reaches 95% recall at ten neighbours on Cohere-768 embeddings and 2% on GIST-960 descriptors (Xiao et al., 2026), and the classical analysis of sign codes does not predict either number: the SimHash collision law (Charikar, 2002) describes random projection directions, not the fixed coordinate axes of a trained encoder, and it says nothing about how the training objective shapes those axes.

The right level of analysis. Prior work measures score fidelity: how well approximate distances track exact ones, summarized by mean squared error, Spearman correlation, or end-to-end recall. A graph algorithm does not consume scores in this form. It executes a sequence of binary comparisons (sort these candidates, prune that edge, advance along this path), and a comparison has consequences only when it crosses its decision boundary. Two features of this setting are invisible to fidelity metrics. First, the comparisons that matter have small margins, because candidate sets are selected to be close to the query. Second, the two residuals entering a comparison can be dependent because the corresponding distances share a query or graph node, so the variance of their difference includes a covariance term.

Example 1 (Shared error cancels in a comparison) On Cohere embeddings with two-bit codes, the calibrated errors of the two distances in a nearest-neighbour comparison have standard deviations 0.024 and 0.027 in cosine-distance units. Their measured difference has standard deviation 0.013, compared with 0.036 after omitting the empirical covariance term; the pooled residual correlation is 0.87. A metric that averages individual distance errors does not expose this difference residual.

This paper develops the theory at the level of individual comparisons: their exact margins, their correlated residuals, and the way they compose inside a graph algorithm.

Contributions. The results form four layers.

  1. A decision-level risk decomposition (§3). For any comparison with exact value Ψ\Psi and calibrated residual RR,
P(flip)≤P(0<∣Ψ∣≤τ)⏟boundary mass+P(∣R∣≥cτ)⏟residual tail\mathbb{P}(\mathrm{flip}) \leq \underbrace{\mathbb{P}(0 < |\Psi| \leq \tau)}_{\text{boundary mass}} + \underbrace{\mathbb{P}(|R| \geq c\tau)}_{\text{residual tail}}

for every τ>0\tau > 0, with no distributional assumption. Instantiated for ranking and for Vamana pruning, the difference residual has an exact covariance-aware second-moment identity and admits a tail bound under a joint MGF proxy. On the inspected Cohere selected pairs, omitting empirical covariance overstates the measured difference variance by a factor of 7.4.

  1. Frozen-trace composition (§4). A Vamana selection call is a deterministic state machine: a candidate ordering, a sequence of pruning actions, and a neighbour list. For a frozen ordering, the approximate replay returns the exact list if and only if every candidate-level action evaluated on the frozen exact state agrees, and the first disagreement is the exact point of divergence. Local bounds therefore compose into trace-, edge-, and path-level certificates.

  2. The representation bridge and its limits (§5). Under an exact Gaussian oracle, Stein's lemma gives a sign-linear covariance identity, and an aligned bilinear model gives a strict correlation gain from a magnitude bit. A rare-contamination construction proves that fixed-dimensional Gaussianity, thin-shell concentration, and an isotropic spectrum are jointly insufficient for useful exponential tails; concentration needs one of three additional ingredients, which we supply.

  3. Operational certificates and quantizer scope (§6, §7). A held-out block certificate bounds the selective risk of a frozen quantized rule with finite-sample validity and no analytical assumption. RaBitQ, Lucene BBQ, and product quantizers enter the same decision interface through family-specific residual mechanisms.

Scope. The theory covers fixed candidate sets and frozen execution traces. End-to-end recall additionally depends on candidate coverage, which requires separate graph-expansion arguments and is outside this paper.

Notation. Throughout, d(⋅,⋅)d(\cdot,\cdot) is an exact distance or dissimilarity and d^Q\hat{d}_Q its quantized approximation; Ψ\Psi is a signed decision functional whose sign selects an action; Γ=∣Ψ∣\Gamma = |\Psi| is the exact margin; RR is the calibrated residual; cQ>0c_Q > 0 is the calibration scale; and vv is a residual-tail parameter. For G∼N(μ,Σ)G \sim \mathcal{N}(\mu, \Sigma) we write σi2=Σii\sigma_i^2 = \Sigma_{ii}, ρij=Σij/(σiσj)\rho_{ij} = \Sigma_{ij}/(\sigma_i \sigma_j), and φ\varphi for the standard normal density.