arXiv:2608.27422cs.IRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.27422

misi: a Metric Inverted Sample Index

Edgar Chavez

Abstract

We present misi, an inverted index for approximate nearest-neighbor search over general metric spaces whose vocabulary is a random sample of the database itself, of size proportional to n. Each object is represented by its kbk_b nearest sample points, found by a pluggable inner index over the sample; queries are answered by an idf-weighted shared-neighbor vote followed by exact verification of C candidates. The construction generalizes the neighborhood-approximation (NAPP) index of Tellez, Chávez and Navarro from a constant number of pivots to a linear-size vocabulary, which keeps posting lists at a constant expected length ρ=kb/α\rho = k_b/\alpha as n grows and turns the index into a combinator: any high-recall index on αn\alpha n points yields an index on n points, for any metric. A probabilistic model of the vote gives a recall guarantee — kbk_b logarithmic in n over the overlap gap suffices, with a verification budget equal to a per-query confusable count that the index itself estimates — and a matching limit: no processing of the vote resolves overlap differences below order 1/kb1/\sqrt{k_b}. The design’s strengths are structural: construction is n independent searches — embarrassingly parallel, deterministic at any thread count, 5,250s for 10810^8 vectors on 64 cores, 3.7×3.7\times faster than a matched-recall graph build — it streams under an enforced 3 GiB memory cap, and the artifact is a portable directory of flat arrays that serves 10810^8 vectors from NVMe within an enforced 8 GB budget, below the working floor of the SSD-graph baseline. Its cost is query-time work: at matched recall in RAM, saturated graph baselines answer 6−16×6-16\times faster at 10610^6 and reach marginally higher recall at 10810^8, and the verification budget for 0.99 recall grows as n0.30n^{0.30}. All results carry seeds, saturation sweeps and full configurations, are generated from run manifests, and include a catalogue of measured negative results delimiting what query-time processing of the stored evidence can add. The intended applications are those where construction cost, determinism, memory footprint, or a black-box metric dominate the requirements — frequently rebuilt corpora, batch similarity workloads, and constrained-memory serving — rather than peak query throughput.

1 Introduction

Metric indexes classically summarize each object by its distances to a small, fixed set of reference points. The permutation-index family [1, 2, 4] replaced distances by the order of references, and its most scalable member, the neighborhood-approximation index (NAPP) of Tellez, Chávez and Navarro [5, 6], kept only each object's K nearest references out of m, stored them inverted, and answered queries by counting shared references and verifying candidates. Naidan, Boytsov and Nyberg [7] later showed this family competitive with the indexes of its day.

This paper asks what happens when NAPP’s vocabulary stops being a design constant and becomes a sample of the database itself, of size m=αnm = \alpha n for a fixed rate α\alpha. The resulting index is misi.1misi.^1 Two consequences are immediate. First, the reference search can no longer be brute force — at m=2⋅106m = 2 \cdot 10^6 references, computing each object’s nearest references requires an approximate-nearest-neighbor structure of its own, so the design becomes a combinator: it turns any high-recall index on αn\alpha n points into an index on nn points, for any metric, since the core consumes only neighbor identities. Second, the posting lists stop growing with nn: at fixed dials their mean length is pinned at ρ=kb/α\rho = k_b / \alpha, whereas a fixed vocabulary’s lists grow linearly. The experiments in §8 quantify both effects; the comparison against NAPP itself, run under one protocol on one machine, is reported first.

1^{1}The repository name expands MISIFU as Metric Inverted Sample-Index For Ultrascale; misi is also how Spanish speakers call a cat, and Misifú the archetypal cat so called. Both etymologies are correct.

The resulting structure has properties that graph indexes do not offer: construction is nn independent searches against a frozen sample index (embarrassingly parallel, deterministic at any thread count, and streamable under a measured 3 GiB memory cap); the artifact is a directory of flat arrays that can be built on one machine and served on another; and the resident set for serving is governed by the sample, not the database. It also has a cost that graph indexes do not pay: every query streams ∼ksρ\sim k_s \rho postings through an accumulator, and at matched recall on data that fits in RAM, saturated beam search is 6−16×6-16 \times faster (§8). Both facts are measured and reported with their configurations.

Where these trade-offs pay. Several deployment patterns weight the axes the way this design does. Frequently rebuilt corpora: when a collection changes enough that the index is rebuilt nightly or hourly (catalogues, feeds, logs), construction cost dominates the total cost of ownership, and an 87-minute deterministic build of 10810^{8} vectors — streamable on a small machine — substitutes for update machinery entirely. Batch similarity workloads: similarity joins, deduplication sweeps, and kNN-graph construction for downstream learning issue all their queries at once; throughput at batch scale is the relevant metric, latency is not, and the eager build amortizes after one block of queries. Constrained-memory serving: personal or on-device corpora served from flash within a few GB of RAM, at tens of queries per second, in the budget window measured in §8 where the SSD-graph baseline does not run. Black-box metrics: the core consumes neighbor identities only, so any dissimilarity with a high-recall inner index indexes without modification — a design property, evaluated here on vectors only. Reproducible pipelines: bit-identical artifacts across thread counts and build modes simplify auditing and regression testing in settings where an index is a versioned artifact. None of these scenarios requires winning the in-RAM QPS comparison, and this paper does not claim to.