New method · Artificial intelligence
A new way to divide vectors makes product quantization more efficient
The paper develops EZPQ, a vector-compression method guided by a new distortion estimate and a packing rule. On the paper’s benchmarks, it reduces reconstruction error versus ordinary product quantization and nearly matches OPQ-P.
In brief
- The paper proves that, for its exact Gaussian model, rotating data into covariance eigenvector directions is optimal.
- EZPQ assigns bit budgets to coordinates, then packs them into variable-width groups for compression.
- On real embedding spectra, EZPQ and OPQ-P are both close to the paper’s model-based lower bound.
- On the end-to-end benchmark, EZPQ usually has lower reconstruction error than non-PQ methods, but it does not win every recall comparison.
- The certificate is for the paper’s Gaussian distortion model, and the end-to-end results come from one run.
The background
Product quantization compresses a vector by splitting it into smaller groups, then replacing each group with the closest stored representative. A vector can then be represented by the identifiers of its representatives instead of all its original values. Jégou, Douze, and Schmid describe this approach for approximate nearest-neighbor search. (s1)1
A quantizer can be judged by how closely it reconstructs the original vector, or by how well it preserves search scores. VQ-bench is a framework for comparing quantizers on such tasks and other measures, using shared datasets and procedures. (s2)2
This paper focuses on reconstruction error when the data are modeled as Gaussian: a distribution described by an average and a covariance, which captures how values vary and relate. It uses this model to reason about which rotation and grouping of coordinates should reduce compression error.
What the researchers did
First, the authors prove that rotating data into the directions given by the covariance eigenvectors is optimal for their exact Gaussian version of product quantization. They then introduce Extended Zador, or EZ, an estimate of the error from compressing a group of coordinates. The estimate is designed for short groups and uneven coordinate variances, where the paper says older estimates are less accurate.
Next, EZPQ assigns a bit budget to each coordinate, giving more capacity where it is useful, and packs those budgets into groups with a fixed codebook size. The groups can have different widths, and coordinates assigned no bits can be left out. The method also calculates a lower bound and reports how its estimated cost compares with that bound.
What they found
In tests against measured k-means costs on synthetic Gaussian data, EZ’s estimate was closer overall than reverse water-filling and Zador-Gersho, especially for uneven spectra. The paper also tests the estimate across different dimensions, spectrum shapes, and degrees of unevenness.
On six real embedding spectra, EZPQ’s mean excess over its model-based lower bound was 0.04% at 1 bit per dimension; OPQ-P was 0.06%, while PCA-PQ was 202%. At 4 bits per dimension, the reported mean excess was 1.61% for EZPQ and 1.64% for OPQ-P. These comparisons concern the EZ model, not measured reconstruction error.
In the VQ-bench reconstruction tests, the paper reports that EZPQ’s error was 25–78% lower than ordinary PQ across the tested datasets and rates. It also reports lower reconstruction error than the non-PQ methods at every tested dataset and rate, even though those methods could use up to 0.75 more bits per dimension for per-vector norms. OPQ and OPQ-P were close to EZPQ, and OPQ sometimes had lower error.
Recall results were not a clean sweep for EZPQ. On Yahoo at 0.5 bits per dimension, its Recall@10 was 0.454, compared with 0.459 for QJL; on MS MARCO at 4 bits per dimension, EZPQ and the best other method both reported 0.965. The recall measure reranks a pool of 100 candidates, so it is not a full-corpus retrieval test.
Of 12 head-to-head comparisons the paper prints, 7 favour its own contribution, 3 go against it and 2 are level.
- Compared with OPQ-P, 4 results: 3 favour the paper, 0 go against it and 1 is level.
- Compared with Best other, 2 results: 1 favours the paper, 0 go against it and 1 is level.
- Compared with lpt, 2 results: 2 favour the paper, 0 go against it.
- Compared with Best other (QJL), 1 result: 0 favour the paper, 1 goes against it.
| What was measured | Result | Compared with | Difference |
|---|---|---|---|
| EZPQ | |||
| certified excess from the optimum on typical real embedding spectra at 2 bits per coordinate under the Gaussian EZ cost modelTypical real embedding spectra; Gaussian EZ cost model. | 1 % | optimum | |
| mean excess over LB across six embedding datasets at 1 bit/dim under the EZ modelSix PCA embedding spectra; C = 8. | 0.04 % | OPQ-P: 0.06 | -0.02 |
| EZ | |||
| mean absolute percentage error against empirical k-means for non-isotropic configurationsNon-isotropic synthetic Gaussian configurations; k = 256 and C = 8. | 0.51 % MAPE | RWF | |
| non-isotropic mean absolute percentage error against empirical k-means distortion128 non-isotropic configurations. | 0.51 % MAPE | ZG: 1.87 | -1.36 |
| RWF | |||
| underestimation of empirical k-means distortion across the tested configurationsSynthetic Gaussian estimator validation. | 6 % | empirical k-means distortion | Goes against the paper |
| MAPE against empirical k-means distortion over non-isotropic configurationsNon-isotropic synthetic Gaussian configurations. | 18.41 % MAPE | empirical k-means distortion | Goes against the paper |
| ZG | |||
| maximum overestimate of empirical k-means distortion at dimension 4d = 4; tested synthetic spectra. | 14.22 % | empirical k-means distortion | Goes against the paper |
| lpt_ls | |||
| mean excess ALG/LB − 1 over synthetic instances at bit rates ≤ 2 b/dim21 synthetic instances at b̄ ≤ 2; C = 8. | 0.05 % | lpt: 0.28 | -0.23 |
| maximum excess ALG/LB − 1 over synthetic instances at bit rates ≤ 2 b/dim21 synthetic instances at b̄ ≤ 2; C = 8. | 0.94 % | lpt: 2.52 | -1.58 |
| in_order | |||
| mean excess ALG/LB − 1 over synthetic instances at 4 b/dimSix synthetic instances at b̄ = 4; C = 8. | 43.6 % | in_order_ls: 6.91 | +36.69Goes against the paper |
| EZPQ on Llama | |||
| excess ALG/LB − 1 under the EZ model on the Llama embedding spectrum at 2 bits/dimPCA spectrum from the sampled VIBE dataset; C = 8. | 0.45 % | OPQ-P: 0.50 | -0.05 |
| PCA-PQ | |||
| mean excess over LB across six embedding datasets at 1 bit/dim under the EZ modelSix PCA embedding spectra; C = 8. | 202 % | EZPQ: 0.04 | +201.96Goes against the paper |
Show 10 more results
| What was measured | Result | Compared with | Difference |
|---|---|---|---|
| EZPQ on Llama | |||
| reconstruction MSE at 2 code bits per dimensionVQ-bench; one run with one seed; MSE table values for Llama are not on the ×10³ scale. | 4.16 ×10³ scale is not applied to Llama | OPQ-P: 4.16 | 0.00 (0.0%) |
| EZPQ on COCO | |||
| reconstruction MSE at 1 code bit per dimensionVQ-bench; one run with one seed; COCO is a unit-norm dataset. | 18.2 ×10³ | Best other: 68.9 | -50.7 (-73.6%) |
| EZPQ on Yahoo | |||
| reconstruction MSE at 0.5 code bits per dimensionVQ-bench; one run with one seed; Yahoo is a unit-norm dataset. | 359 ×10³ | OPQ-P: 360 | -1 (-0.3%) |
| Recall@10 under candidate-pool re-ranking at 0.5 code bits per dimensionRe-ranking the top 10 of 100 candidates; one run. | 0.454 | Best other (QJL): 0.459 | -0.005 (-1.1%)Goes against the paper |
| EZPQ relative to OPQ | |||
| number of datasets where OPQ has lower MSE at 0.5 bits/dimVQ-bench reconstruction MSE at b̄ = 0.5. | 5 datasets | OPQ | Goes against the paper |
| datasets where EZPQ does not have lower MSE at each rate of at least 2 bits/dimVQ-bench reconstruction MSE at rates b̄ ≥ 2. | 1 dataset per rate | OPQ | Goes against the paper |
| EZPQ on MS MARCO | |||
| Recall@10 under candidate-pool re-ranking at 4 code bits per dimensionRe-ranking the top 10 of 100 candidates; one run. | 0.965 | Best other: 0.965 | 0.000 (0.0%) |
| EZPQ relative to OPQ and OPQ-P | |||
| datasets where the better of OPQ and OPQ-P exceeds EZPQ in Recall@10 at 0.5 bits/dimVQ-bench recall at b̄ = 0.5. | 8 datasets out of 10 | OPQ and OPQ-P | Goes against the paper |
| EZPQ model size | |||
| model size as a proportion of OPQ-P model size at 0.5 bits/dimVQ-bench at b̄ = 0.5. | 39 % | OPQ-P | |
| EZPQ scoring time | |||
| dataset-rate pairs where EZPQ scoring time is between PQ and OPQTen VQ-bench datasets and four code rates. | 39 pairs | PQ and OPQ | |
What to be careful about
The lower bound and certificate describe segmentation loss under the paper’s Gaussian EZ model. The authors explicitly say they do not bound the exact Gaussian k-means cost or empirical distortion on non-Gaussian data. Real embeddings may not follow the assumed distribution.
The end-to-end benchmark used one run with one seed, and the authors did not measure variation between seeds. They caution that small differences among EZPQ, OPQ-P, and OPQ should not be treated as significant. The reported recall is limited to reranking a candidate pool rather than searching the full dataset.
The paper did not benchmark PCA-based variable-rate methods such as transform coding or VAQ. It also conjectures that small-dimension effects from having a finite number of codebook levels may not be captured by its smooth, coordinate-by-coordinate estimate.
How it fits with other research
Product quantization’s basic idea is to split a vector into smaller groups and quantize each group separately. Jégou, Douze, and Schmid present it as a way to build short vector codes for approximate nearest-neighbor search; this paper studies how to choose the rotation and group boundaries for that kind of compression. (s1)1
VQ-bench aims to compare quantizers using a shared framework, rather than relying on results measured under different procedures. The paper uses it for reconstruction and recall tests, and reports that its recall comparison is based on reranking a fixed candidate pool. (s2)2
Who can use it
The method is aimed at people compressing vectors for search systems, or other settings where fixed-size codebooks for groups are useful. Its reported certificate can help assess the cost of a particular segmentation before fitting the group codebooks, but only under the paper’s Gaussian EZ model.
Terms explained
- Product quantization (PQ)
- A compression method that splits a vector into groups and replaces each group with a representative chosen from a codebook.
- Codebook
- A stored set of possible representatives; encoding picks the representative closest to a group of values.
- Covariance
- A description of how values vary and how pairs of values change together.
- Principal component analysis (PCA)
- A way to rotate data into directions that capture its patterns of variation, ordered by how much variation they contain.
- K-means
- A clustering method that groups data around a chosen set of representative points.
- Bit allocation
- Deciding how much of a limited storage budget to spend on each coordinate or group.
- Reverse water-filling
- A rate-distortion rule that allocates bits to coordinates according to their variance, leaving sufficiently weak coordinates unencoded.
- Zador-Gersho
- A high-rate estimate of quantization error that includes a penalty for how efficiently a finite-dimensional codebook fills space.
- Distortion
- The error introduced when an original vector is represented by a compressed version.
- Recall@10
- A search measure that checks whether the ten most relevant items appear among the ten items returned; here it is computed within a candidate pool.
Explained in full on this site: Recall@10.
Questions this paper answers
What is EZPQ in product quantization?
EZPQ is a method that assigns bit budgets to individual coordinates and packs them into variable-width groups. It uses PCA rotation and fixed-size k-means codebooks for those groups.
Why does the paper use the SVD rotation for Gaussian product quantization?
The paper proves that the covariance eigenvector rotation globally minimizes its exact Gaussian k-means product-quantization objective over rotations.
How does EZPQ compare with OPQ-P and ordinary PQ?
On the paper’s real-spectrum tests, EZPQ and OPQ-P have similarly low excess over the EZ-model lower bound. In VQ-bench reconstruction tests, the authors report 25–78% lower error than ordinary PQ; OPQ and OPQ-P are close, and OPQ sometimes does better.
Does the EZPQ certificate bound actual reconstruction error?
No. It certifies the segmentation cost relative to a lower bound under the Gaussian EZ model, not exact k-means distortion or empirical distortion on non-Gaussian data.
The paper in detail
Everything below is recorded from the paper and matched against its text.
What the paper claims, in its own terms
- Proven
The SVD eigenbasis is the globally optimal preconditioning rotation for exact Gaussian k-means PQ.
Holds when: Exact Gaussian k-means objective.
- Shown
The paper provides a mathematical and algorithmic analysis of PQ through an optimal rotation result, the EZ model, and a packing-based algorithm with a lower bound and approximation guarantee.
Holds when: Gaussian EZ surrogate for the bounds and certificates.
- Shown
EZPQ is within 0.7% of LB on real embedding spectra at rates up to 2 bits per coordinate.
Holds when: Under the EZ model; real embedding PCA spectra.
- Shown
EZPQ has 25–78% lower MSE than PQ and lower reconstruction MSE than the non-PQ baselines in VQ-bench.
Holds when: The paper's end-to-end VQ-bench evaluation.
Theorems and stated results
- reconstruction error relative to random-rotation-based algorithms. EZPQ consistently achieves lower reconstruction error than the random-rotation-based algorithms named in the abstract.
- global optimality for exact Gaussian k-means PQ cost over rotations. min_R min_G cost(R,G) = min_G cost(Uᵀ,G) (Exact Gaussian k-means objective.)
- lower bound on optimal partition cost under the EZ model. OPT ≥ LB under the EZ model. (The coordinate distortion is D_j(b_j) = σ_j² 2^-2φ(b_j) and the allocation constraints in the lemma apply.)
- upper bound on packed cost relative to LB. ALG/LB ≤ 1 + (16/d′) Σ_g δ_g²/d_g. (Locally optimal packing and C ≤ 8.)
- reconstruction MSE compared with non-PQ-family baselines at every reported dataset and rate. EZPQ has lower reconstruction MSE than the non-PQ-family baselines at every dataset and rate, despite those baselines being allowed up to 0.75 more code bits per dimension for norms. (VQ-bench; nominal bit-width configurations; baseline code rates may include extra bits for per-vector norms.)
- statistical reliability of small differences among EZPQ, OPQ-P, and OPQ. The paper cautions that fractional-percent differences among these methods should not be interpreted as significant because results are from a single run and seed-to-seed variance was not measured. (One run with one seed; seed-to-seed variance not measured.)
- maximizer of minimum diagonal PQ cost on the covariance majorization polytope. The uniform diagonal maximizes min_G f_G(s²) over s² in the majorization polytope. (Covariance eigenvalues as in the theorem; diagonal cost f_G from the SVD-rotation proof.)
The method, step by step
- Estimate the empirical mean and covariance and compute its eigenvectors and eigenvalues.
- Compute the global LB bit allocation for the eigenvalue spectrum and identify active coordinates.
- Pack active coordinate bit allocations into m segments and permute/truncate the eigenbasis accordingly.
- Compute the EZ-model algorithm cost and LB and report their ratio as a certificate.
- Project centered data into the retained PCA coordinates and fit k-means centers for each segment.
- Encode by assigning each segment to its nearest center; reconstruct by combining segment centers and reversing the projection.
New in this paper
- The Extended Zador coordinate-wise distortion estimator for finite-rate, low-dimensional, non-isotropic Gaussian segments.
- A global equal-slope bit allocation yielding a per-instance lower bound under the EZ cost model.
- Variable-width segmentation by one-dimensional packing of global coordinate bit allocations, with a second-order packing-error analysis.
Taken from earlier work
- The PCA/SVD eigenbasis as a transform, building on transform coding and OPQ.
- k-means segment codebooks and encode/decode operations from Product Quantization.
- A quadratic spline representation and fitting to empirical isotropic k-means measurements.
Assumptions
- The analytical model treats data as Gaussian with covariance Σ.
- The EZ distortion model uses φ with the stated monotonicity, convexity, and curvature conditions.
- The explicit second-order packing bound assumes a locally optimal packing and C ≤ 8.
- The certificate measures loss under the Gaussian EZ surrogate, not exact Gaussian or empirical non-Gaussian distortion.
Terms as the paper defines them
- Admissible segment
- A segment whose coordinates all receive positive bits under reverse water-filling.
- Packing discrepancy
- The segment's bit load minus C; it is positive for over-packed bins and negative for under-packed bins.
- Certificate
- The computed EZ cost divided by the lower bound, measuring segmentation loss under the Gaussian EZ model rather than exact or empirical distortion.
Methods, datasets and ideas it names
- Product Quantization (PQ) Optimization with Gaussian dataObject of study · Studied
The paper studies PQ optimization when data are modeled as Gaussian.
- SVD rotationMethod · Studied
The covariance eigenbasis rotation is established as optimal for the exact Gaussian k-means PQ objective.
- Extended Zador (EZ)Method · Introduced here
A separable distortion model intended to estimate finite-rate k-means costs for short Gaussian segments.
- EZPQMethod · Introduced here
A PQ method that packs globally allocated coordinate bit budgets into variable-width segments.
- Reverse Water-Filling (RWF)Method · Compared against
A rate-distortion bit-allocation rule used as a baseline and limiting estimator.
- Non-Parametric OPQMethod · Compared against
An OPQ variant that alternates Procrustes SVD updates and k-means reclustering.
- Parametric OPQ (OPQ-P)Method · Compared against
An OPQ variant using one-shot SVD preconditioning and greedy equal-width segment allocation.
- VIBE embedding spectraDataset · Used
PCA spectra from six VIBE embedding datasets are used for the certificate comparison.
- VQ-benchDataset · Used
The benchmark framework used for end-to-end reconstruction and recall evaluation.
- Gaussian estimator-validation samplesDataset · Used
Random Gaussian training and held-out samples are used to compare estimators with measured k-means costs.
- Space-filling constant z(d)Measure · Used
A dimension-dependent penalty in the Zador-Gersho distortion formula.
- Instance-specific certificateMeasure · Introduced here
The ratio of EZPQ cost to the computed EZ-model lower bound, certifying segmentation loss within that model.
- Reconstruction MSEMeasure · Used
The average squared distance from a vector to its reconstruction.
- Recall@10Measure · Used
A retrieval measure based on the top ten items among each query's candidate pool.
- Encode timeMeasure · Used
Wall-clock time to read and encode the entire database.
- Scoring timeMeasure · Used
Median time to score one query against its candidate set.
Limits the authors state
- The EZ-model objective and certificate are not bounds on empirical distortion for non-Gaussian data.
- The end-to-end benchmark reports a single run with one seed and does not measure seed-to-seed variance.
- Recall is re-ranking within a pool of 100 candidates; items outside the pool are not scored.
- PCA-based variable-rate quantizers such as transform coding and VAQ were not benchmarked.
- The authors conjecture that finite-codebook discrete-level effects at small dimensions are not captured by a separable continuous φ.
How the evidence was gathered
- Samples or repeats
- Estimator validation: 160 configurations (128 non-isotropic), dimensions 4, 8, 16, and 32; 1,000,000 Gaussian training samples and 200,000 held-out samples; 5 runs with the median reported. VQ-bench: 10 datasets, 25,000 fitting vectors, 1,000 evaluation queries and 1,000 sampled database vectors; one run with one seed. Embedding spectra: each computed from a sample of 25,000 base vectors.
- Uncertainty reported
- For some results
- Significance tested
- No
- Notes
- Estimator-validation error bars are reported across runs in the figure caption, but VQ-bench seed-to-seed variance was not measured. The authors explicitly caution against treating fractional-percent differences among EZPQ, OPQ-P, and OPQ as significant.
Code and data
- Data: no link printed
- Resource: no link printed
Questions the paper leaves open
- Can the discrete quantization-level effects at small dimensions be modeled by a method beyond a separable continuous φ?
- How would EZPQ compare with transform coding or VAQ when separating multi-dimensional fixed-k segment gains from PCA decorrelation and variable bit allocation?
Sources
Paper details
- Title
- Provably Near-Optimal PQ in the Extended Zador Model
- Authors
- Edo Liberty, Ashwin Padaki, Amir Ingber
- Published
- 23 November 2026
- Version read
- v1
- Field
- Artificial intelligence
- arXiv
- 2611.31579
This explanation was written for this site from the paper's own source. 68 passages and figures recorded from the paper were matched against its own text; 14 that could not be matched were left off this page. It does not judge whether the paper is right, and most papers on arXiv have not been peer reviewed. Read the paper before relying on a result.