arXiv:2610.03651cs.AIOct 2026

Manuscript Offprint

arXiv:2610.03651

MRVQ: One Resident Index for Dimension- and Rate-Elastic Vector Search

Sean Culatana, Shang-En Huang, Kang Li

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

Abstract

Dense-retrieval services must switch among embedding-prefix dimensions and index bit rates as latency, quality, and memory budgets change. Tuning a quantizer separately for each rate gives the best quality, but the retrieval tier then holds several code streams and quantizer states at once. We introduce Matryoshka Residual Vector Quantization (MRVQ), a post-hoc residual quantizer for frozen embeddings. Its maximum-rate code can be truncated two ways: dropping residual stages lowers the rate, and dropping embedding coordinates lowers the dimension. One resident artifact therefore serves every (dimension, rate) pair we evaluate. Across FiQA and NFCorpus, four embedding families, and {4,8,16}\{4, 8, 16\}-byte codes, MRVQ is the lowest-RAM design we evaluate. It uses 17.8–22.0×17.8–22.0\times less memory than three separately trained QINCo2 indices, and 1.89–2.02×1.89–2.02\times less than a lean shared-model steelman. The saving is not free: per-rate QINCo2 is 0.026–0.107 nDCG@10 better on FiQA. But MRVQ beats PQ, OPQ, and AdANNS-OPQ at matched code size. We also evaluate a low-build-cost PCA-scalar design that attains quality comparable to RaBitQ and its extension while fitting 420×420\times faster at the median. Finally, we report two negative results: QINCo2 collapses when trained at high rates, and a ranking-bound hypothesis misses its pre-specified acceptance criteria. MRVQ is therefore a low-memory operating point for elastic retrieval, not a universal quality winner.

1 Introduction

Dense retrieval is a first-class component of retrieval-augmented generation and agentic systems. For large corpora, the document embeddings and index state—rather than the query encoder—often dominate resident memory: a 768–1024 dimensional fp32 vector occupies 3–4 KB before indexing. That state must also support more than one operating point. Dimension elasticity uses prefixes of Matryoshka representations to trade retrieval quality for query compute and bandwidth [Kusupati et al., 2022, Rege et al., 2023]; rate elasticity changes the document code size to trade quality for storage. A high-quality deployment can tune a quantizer independently for each rate, but then the retrieval tier retains several code streams and model states at once.

We ask whether a single resident document code can cover both axes. MRVQ fits a residual vector quantizer post-hoc on frozen embeddings, weighting reconstruction error across the served prefix dimensions. Residual stages provide nested rates, and coordinate prefixes provide nested dimensions, so the same stored code supports every (m,b)∈M×B(m, b) \in \mathcal{M} \times \mathcal{B} (Figure 1). This differs from AdANNS, which targets dimension-adaptive search, and from MatQuant, which nests model-weight precision rather than document-index codes [Nair et al., 2025]; Appendix E places MRVQ among quantizers for approximate search.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: NeurIPS 2026 Workshop on Machine Learning for Systems (MLForSys).

Rate-specialized deployment

one quantizer state and one code stream per rate

Figure

each rate-specific index still serves every prefix dimension

Resident: P4+P8+P16+28nP_{4} + P_{8} + P_{16} + 28n bytes

=228.9 MiB= 228.9\ \mathrm{MiB}

MRVQ

one maximum-rate code, truncated along two axes

  1. stage prefix ⇒\Rightarrow rate

Figure

  1. coordinate prefix ⇒\Rightarrow dimension

Figure

Resident: 4LKD+16n4LKD + 16n bytes

=12.88 MiB17.8×= 12.88\ \mathrm{MiB}\quad 17.8\times less

Figure 1: Amortizing a rate-and-dimension menu. A rate-specialized deployment keeps one quantizer state and one code stream per rate; each stream may still expose every embedding-prefix dimension. MRVQ stores one maximum-rate residual code: stage prefixes select 4/8/16 B/vector, and coordinate prefixes select the embedding dimension. The document-code term falls from 28n to 16n bytes, and sharing the quantizer state produces the larger measured saving (Table 1). Quoted totals are FiQA at D=768D=768.

Our contribution is a systems trade-off, not a claim of universal quality dominance. First, we formalize resident-memory accounting for a full rate menu and show that one MRVQ artifact is the lowest-RAM configuration evaluated. Second, we measure the corresponding quality cost against QINCo2 and the gains over standard ANN quantizers. Third, we evaluate a separate, inexpensive PCA-scalar design for hosts on which iterative quantizer training is undesirable. Finally, we report two negative results—high-rate QINCo2 training failures and a ranking-preservation predictor that does not meet our pre-specified bar.

References (23)